| Modifier and Type | Method and Description |
|---|---|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Pac4j.client(Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> client)
Add a pac4j client and protected all the routes defined after the module:
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Pac4j.client(String pattern,
org.pac4j.core.authorization.authorizer.Authorizer<U> authorizer,
Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> client)
Add a pac4j client, protected all the routes defined after that matches the pattern and attach
an authorizer:
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Pac4j.client(String pattern,
Class<? extends org.pac4j.core.authorization.authorizer.Authorizer> authorizer,
Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> client)
Add a pac4j client, protected all the routes defined after that matches the pattern and attach
an authorizer:
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Pac4j.client(String pattern,
Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> client)
Add a pac4j client and protected all the routes defined after that matches the pattern:
|
Pac4j |
Pac4j.doWith(BiConsumer<org.pac4j.core.config.Config,com.typesafe.config.Config> configurer)
Configurer pa4j options, only necessary it you want to provide your own pac4j components.
|
Pac4j |
Pac4j.doWith(Consumer<org.pac4j.core.config.Config> configurer)
Configurer pa4j options, only necessary it you want to provide your own pac4j components.
|
Pac4j |
Pac4j.form()
Add a simple login form.
|
Pac4j |
Pac4j.form(String pattern)
Add a simple login form.
|
Pac4j |
Pac4j.multiProfile(boolean multiProfile)
Set pac4j option multiProfile.
|
Pac4j |
Pac4j.unauthenticated(Function<Request,org.pac4j.core.profile.UserProfile> provider)
Set a default action which is execute when no user is logged in.
|
Pac4j |
Pac4j.unauthenticated(Supplier<org.pac4j.core.profile.UserProfile> provider)
Set a default action which is execute when no user is logged in.
|
Copyright © 2018. All rights reserved.