public class ClientRegistrationFilter extends Object implements Filter
All OpenID metadata must be included in the OAuth2ClientFilter
configuration,
in the "metadata" attribute. Note that for dynamic client registration,
only the "redirect_uris" attribute is mandatory.
Constructor and Description |
---|
ClientRegistrationFilter(org.forgerock.openig.filter.oauth2.client.ClientRegistrationRepository repository,
Handler registrationHandler,
JsonValue config,
TimeService time)
Creates a new dynamic registration filter.
|
Modifier and Type | Method and Description |
---|---|
Promise<Response,NeverThrowsException> |
filter(Context context,
Request request,
Handler next)
Filters the request and/or response of an exchange.
|
public ClientRegistrationFilter(org.forgerock.openig.filter.oauth2.client.ClientRegistrationRepository repository, Handler registrationHandler, JsonValue config, TimeService time)
repository
- The ClientRegistrationRepository
holding the
registrations values.registrationHandler
- The handler to perform the dynamic registration to the
Authorization Server(AS).config
- Can contain any client metadata attributes that the client
chooses to specify for itself during the registration. Must
contains the 'redirect_uris' attributes.time
- The time service to use for private_key_jwt authentication.public Promise<Response,NeverThrowsException> filter(Context context, Request request, Handler next)
Filter
next.handle(context, request)
.
This method may elect not to pass the request to the next filter or
handler, and instead handle the request itself. It can achieve this by
merely avoiding a call to next.handle(context, request)
and creating its own response object. The filter is also at liberty to
replace a response with another of its own by intercepting the response
returned by the next handler.
Copyright 2011-2017 ForgeRock AS.