public interface IFormAuthContext extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
authorize()
Starts the authorization flow of the current context
|
void |
authorize(javax.servlet.FilterChain chain)
Starts the authorization flow of the current context
|
void |
callback()
Starts the callback handling of the current context
|
boolean |
checkAuthorisation(org.pac4j.core.profile.CommonProfile profile)
Checks the authorization of the given profiles against the current context
|
org.pac4j.core.config.Config |
getAuthConfig()
Returns the current configuration of the authentication context.
|
String |
getAuthenticatorToken()
Get the token of the current
IAuthenticator or the name of an internal authenticator |
String |
getBaseUrl()
Get the current base URL
|
Mandant |
getClient()
Get the client to which the form belongs.
|
FRQSession |
getFRQSession()
Get the current form request session to authenticate with
|
Locale |
getLocale()
Returns the locale of the auth context
|
Map<String,ProjectAuthenticatorConfig> |
getProjectAuthConfig()
Get the
Map of project specific authenticator configurations. |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the HTTP servlet request
|
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the HTTP servlet response
|
void |
logout()
Starts the logout from the given authorizations
|
void |
logout(javax.servlet.FilterChain chain)
Starts the logout from the given authorizations
|
void |
setAuthenticatorToken(String token)
Set the token of the current
IAuthenticator |
String getAuthenticatorToken()
IAuthenticator
or the name of an internal authenticatorString
token or namevoid setAuthenticatorToken(String token)
IAuthenticator
token
- The token of the current IAuthenticator
or the name of an internal authenticator.Map<String,ProjectAuthenticatorConfig> getProjectAuthConfig()
Map
of project specific authenticator configurations.Map
that maps the name (if it is a system authenticator) or callback UUID (if it is a client
authenticator) to the corresponding ProjectAuthenticatorConfig
.Mandant getClient()
Mandant
to which the form belongs.FRQSession getFRQSession()
FRQSession
to authenticateorg.pac4j.core.config.Config getAuthConfig()
Config
.javax.servlet.http.HttpServletRequest getRequest()
HttpServletRequest
javax.servlet.http.HttpServletResponse getResponse()
boolean checkAuthorisation(org.pac4j.core.profile.CommonProfile profile)
profile
- A CommonProfile
to checktrue
if authorized, or false
otherwise.void authorize()
void authorize(javax.servlet.FilterChain chain)
chain
- FilterChain
to process after the authorizationvoid logout()
void logout(javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
chain
- FilterChain
to process after the logoutIOException
- IO-errors while processing the chainjavax.servlet.ServletException
- Servlet-errors while processing the chainvoid callback()
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.