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.
OAuth2ClientFilter
, this name is IssuerName + OAuth2ClientFilterName
This is required in order to retrieve the Client Registration when performing
dynamic client registration.Constructor and Description |
---|
ClientRegistrationFilter(Handler registrationHandler,
JsonValue config,
Heap heap,
String suffix)
Creates a new dynamic registration filter.
|
public ClientRegistrationFilter(Handler registrationHandler, JsonValue config, Heap heap, String suffix)
registrationHandler
- The handler to perform the dynamic registration to the 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.heap
- A reference to the current heap.suffix
- The name of the client registration in the heap will be
IssuerName + suffix. Must not be null
.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-2015 ForgeRock AS.