| Package | Description |
|---|---|
| org.jooby.pac4j |
| Modifier and Type | Method and Description |
|---|---|
Auth |
Auth.authorizer(String name,
String pattern,
org.pac4j.core.authorization.authorizer.Authorizer<?> authorizer)
Protect one or more urls with an
Authorizer. |
Auth |
Auth.authorizer(String name,
String pattern,
Class<? extends org.pac4j.core.authorization.authorizer.Authorizer> authorizer)
Protect one or more urls with an
Authorizer. |
Auth |
Auth.basic()
Add a basic auth client, protecting all the urls
*. |
Auth |
Auth.basic(String pattern)
Add a basic auth client.
|
Auth |
Auth.basic(String pattern,
Class<? extends org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials>> authenticator)
Add a basic auth client.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(Class<? extends org.pac4j.core.client.Client<C,U>> client)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(org.pac4j.core.client.Client<C,U> client)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> provider)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(String pattern,
Class<? extends org.pac4j.core.client.Client<C,U>> client)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(String pattern,
org.pac4j.core.client.Client<C,U> client)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
<C extends org.pac4j.core.credentials.Credentials,U extends org.pac4j.core.profile.CommonProfile> |
Auth.client(String pattern,
Function<com.typesafe.config.Config,org.pac4j.core.client.Client<C,U>> provider)
Add an auth client, like facebook, twitter, github, etc...Please note the require dependency
must be in the classpath.
|
Auth |
Auth.form()
Add a form auth client, protecting all the urls
*. |
Auth |
Auth.form(String pattern)
Add a form auth client.
|
Auth |
Auth.form(String pattern,
Class<? extends org.pac4j.core.credentials.authenticator.Authenticator<org.pac4j.core.credentials.UsernamePasswordCredentials>> authenticator)
Add a form auth client.
|
Auth |
Auth.logout(String logoutUrl)
Set the logout and redirect URL patterns.
|
Auth |
Auth.logout(String logoutUrl,
String redirecTo)
Set the logout and redirect URL patterns.
|
<U extends org.pac4j.core.profile.CommonProfile> |
Auth.store(Class<? extends AuthStore<U>> store)
Setup the
AuthStore to use. |
Copyright © 2017. All rights reserved.