Interface OAuth2IdentityProvider.CallbackContext
-
- All Superinterfaces:
OAuth2IdentityProvider.OAuth2Context
- Enclosing interface:
- OAuth2IdentityProvider
public static interface OAuth2IdentityProvider.CallbackContext extends OAuth2IdentityProvider.OAuth2Context
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
authenticate(UserIdentity userIdentity)
Authenticate and register the user into the platform.void
redirectToRequestedPage()
Redirect the request to the requested page.void
verifyCsrfState()
Check that the state is valid.void
verifyCsrfState(java.lang.String parameterName)
Check that the state is valid The state will be read from the given parameter name of the HTTP request It should only be called IfOAuth2IdentityProvider.InitContext.generateCsrfState()
was used in the init-
Methods inherited from interface org.sonar.api.server.authentication.OAuth2IdentityProvider.OAuth2Context
getCallbackUrl, getRequest, getResponse
-
-
-
-
Method Detail
-
verifyCsrfState
void verifyCsrfState()
Check that the state is valid. The state will be read from the 'state' parameter of the HTTP request It should only be called IfOAuth2IdentityProvider.InitContext.generateCsrfState()
was used in the init
-
verifyCsrfState
void verifyCsrfState(java.lang.String parameterName)
Check that the state is valid The state will be read from the given parameter name of the HTTP request It should only be called IfOAuth2IdentityProvider.InitContext.generateCsrfState()
was used in the init
-
redirectToRequestedPage
void redirectToRequestedPage()
Redirect the request to the requested page. Must be called at the end ofOAuth2IdentityProvider.callback(CallbackContext)
-
authenticate
void authenticate(UserIdentity userIdentity)
Authenticate and register the user into the platform.
-
-