Class AuthProviderParameters
java.lang.Object
com.linecorp.centraldogma.server.auth.AuthProviderParameters
Parameters which are used to create a new
AuthProvider
instance.-
Constructor Summary
ConstructorDescriptionAuthProviderParameters
(Authorizer<HttpRequest> authorizer, CentralDogmaConfig config, Supplier<String> sessionIdGenerator, Function<Session, CompletableFuture<Void>> loginSessionPropagator, Function<String, CompletableFuture<Void>> logoutSessionPropagator) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the authentication configuration.Returns anAuthorizer
which is used to authenticate a session token.config()
Returns the configuration for the Central Dogma server.Returns a function which propagates theSession
to the other replicas.Returns a function which propagates the logged out session ID to the other replicas.Returns the session ID generator which must be used when generating a new session ID.
-
Constructor Details
-
AuthProviderParameters
public AuthProviderParameters(Authorizer<HttpRequest> authorizer, CentralDogmaConfig config, Supplier<String> sessionIdGenerator, Function<Session, CompletableFuture<Void>> loginSessionPropagator, Function<String, CompletableFuture<Void>> logoutSessionPropagator) Creates a new instance.- Parameters:
authorizer
- theAuthorizer
which is used to authenticate a session tokenconfig
- the configuration for the Central Dogma serversessionIdGenerator
- the session ID generator which must be used when generating a new session IDloginSessionPropagator
- the function which propagates theSession
to the other replicaslogoutSessionPropagator
- a function which propagates the logged out session ID to the other replicas
-
-
Method Details
-
authorizer
Returns anAuthorizer
which is used to authenticate a session token. -
config
Returns the configuration for the Central Dogma server. -
authConfig
Returns the authentication configuration. -
sessionIdGenerator
Returns the session ID generator which must be used when generating a new session ID. The default session manager relies on the session ID format, so if theAuthProvider
does not use this generator the session might be rejected from the session manager. -
loginSessionPropagator
Returns a function which propagates theSession
to the other replicas. It would be invoked after a login process is successfully completed. -
logoutSessionPropagator
Returns a function which propagates the logged out session ID to the other replicas. It would be invoked after a logout process is successfully completed.
-