C
- The Credentials
typeU
- The UserProfile
typepublic final class Pac4jModule<C extends Credentials,U extends UserProfile>
extends ratpack.pac4j.internal.AbstractPac4jModule<C,U>
If you need/want to perform dependency injection on either the Client
or Authorizer
, use InjectedPac4jModule
instead.
To use this module, you simply need to register it.
Constructor and Description |
---|
Pac4jModule(Client<C,U> client,
Authorizer authorizer)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
protected Authorizer |
getAuthorizer(Injector injector) |
protected Client<C,U> |
getClient(Injector injector) |
configure, pac4JHandlerDecorator
configure, createConfig, defaultConfig, setConfig
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
public Pac4jModule(Client<C,U> client, Authorizer authorizer)
client
- The pac4j client to use for authenticationauthorizer
- The strategy to use for authorizationprotected Client<C,U> getClient(Injector injector)
getClient
in class ratpack.pac4j.internal.AbstractPac4jModule<C extends Credentials,U extends UserProfile>
protected Authorizer getAuthorizer(Injector injector)
getAuthorizer
in class ratpack.pac4j.internal.AbstractPac4jModule<C extends Credentials,U extends UserProfile>