Class Oauth2Service
java.lang.Object
fr.paris.lutece.plugins.adminauthenticationoauth2.service.Oauth2Service
Oauth2 Service.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Oauth2ServiceGets the instance.voidinit()Inits the serviceprocessAuthentication(javax.servlet.http.HttpServletRequest request, Map<String, Object> mapUserInfo, fr.paris.lutece.plugins.oauth2.business.Token token) Process the authentication.static voidprocessLogout(javax.servlet.http.HttpServletRequest request) Process the logout.static voidredirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) redirect after login or logout.
-
Method Details
-
getInstance
Gets the instance.- Returns:
- the instance
-
processAuthentication
public AdminOauth2User processAuthentication(javax.servlet.http.HttpServletRequest request, Map<String, Object> mapUserInfo, fr.paris.lutece.plugins.oauth2.business.Token token) throws fr.paris.lutece.portal.service.admin.AccessDeniedException, fr.paris.lutece.portal.service.security.UserNotSignedExceptionProcess the authentication.- Parameters:
request- The HTTP requestmapUserInfo- the map user infotoken- the token- Returns:
- the oauth 2 user
- Throws:
fr.paris.lutece.portal.service.admin.AccessDeniedExceptionfr.paris.lutece.portal.service.security.UserNotSignedException
-
init
public void init()Inits the service -
processLogout
public static void processLogout(javax.servlet.http.HttpServletRequest request) Process the logout.- Parameters:
request- The HTTP request
-
redirect
public static void redirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException redirect after login or logout.- Parameters:
request- The HTTP requestresponse- The HTTP response- Throws:
IOException- if an error occurs
-