java.lang.Object
fr.paris.lutece.plugins.mylutece.modules.oauth2.service.Oauth2Service

public final class Oauth2Service extends Object
France Connect Service.
  • Method Details

    • 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 request
      mapUserInfo - the map user info
      token - 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 IOException
      redirect after login or logout.
      Parameters:
      request - The HTTP request
      response - The HTTP response
      Throws:
      IOException - if an error occurs