Class Oauth2Service
- java.lang.Object
-
- fr.paris.lutece.plugins.mylutece.modules.oauth2.service.Oauth2Service
-
public final class Oauth2Service extends Object
France Connect Service.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Oauth2ServicegetInstance()Gets the instance.List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription>getLuteceUserAttributesProvided(Locale locale)voidinit()Inits the serviceOauth2UserprocessAuthentication(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 Detail
-
getInstance
public static Oauth2Service getInstance()
Gets the instance.- Returns:
- the instance
-
processAuthentication
public Oauth2User processAuthentication(javax.servlet.http.HttpServletRequest request, Map<String,Object> mapUserInfo, fr.paris.lutece.plugins.oauth2.business.Token token)
Process the authentication.- Parameters:
request- The HTTP requestmapUserInfo- the map user infotoken- the token- Returns:
- the oauth 2 user
-
init
public void init()
Inits the service
-
getLuteceUserAttributesProvided
public List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription> getLuteceUserAttributesProvided(Locale locale)
- Returns:
- the Lutece user Attribute provided by the authentication module
-
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 IOExceptionredirect after login or logout.- Parameters:
request- The HTTP requestresponse- The HTTP response- Throws:
IOException- if an error occurs
-
-