Class OAuthCallbackAction
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.acting.AbstractAction
org.ametys.workspaces.extrausermgt.authentication.oauth.OAuthCallbackAction
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,ThreadSafe
,Action
Action intended to manage result of an authorize request.
This action will check the response, retrieve the authorization code
use it to request an access token and finally store it in session before
redirecting to the original request that redirected to the authorize request
-
Field Summary
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionact
(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) protected void
checkResponseIntegrity
(com.nimbusds.oauth2.sdk.AuthorizationResponse response, Session session) Check the response integrityvoid
service
(ServiceManager manager) Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
OAuthCallbackAction
public OAuthCallbackAction()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception -
checkResponseIntegrity
protected void checkResponseIntegrity(com.nimbusds.oauth2.sdk.AuthorizationResponse response, Session session) Check the response integrity- Parameters:
response
- the authorize request responsesession
- the current session
-