public final class Oauth2Service extends Object
Modifier and Type | Method and Description |
---|---|
static Oauth2Service |
getInstance()
Gets the instance.
|
List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription> |
getLuteceUserAttributesProvided(Locale locale) |
void |
init()
Inits the service
|
Oauth2User |
processAuthentication(javax.servlet.http.HttpServletRequest request,
Map<String,Object> mapUserInfo,
fr.paris.lutece.plugins.oauth2.business.Token token)
Process the authentication.
|
static void |
processLogout(javax.servlet.http.HttpServletRequest request)
Process the logout.
|
static void |
redirect(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
redirect after login or logout.
|
public static Oauth2Service getInstance()
public Oauth2User processAuthentication(javax.servlet.http.HttpServletRequest request, Map<String,Object> mapUserInfo, fr.paris.lutece.plugins.oauth2.business.Token token)
request
- The HTTP requestmapUserInfo
- the map user infotoken
- the tokenpublic void init()
public List<fr.paris.lutece.plugins.mylutece.business.LuteceUserAttributeDescription> getLuteceUserAttributesProvided(Locale locale)
public static void processLogout(javax.servlet.http.HttpServletRequest request)
request
- The HTTP requestpublic static void redirect(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
request
- The HTTP requestresponse
- The HTTP responseIOException
- if an error occursCopyright © 2022 City of Paris. All rights reserved.