java.lang.Object
fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient
fr.paris.lutece.plugins.adminauthenticationoauth2.business.authentication.AuthDataClient
All Implemented Interfaces:
fr.paris.lutece.plugins.oauth2.dataclient.DataClient

public class AuthDataClient extends fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient
UserInfoDataClient
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    handleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String strError)
     
    void
    handleToken(fr.paris.lutece.plugins.oauth2.business.Token token, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    parse(String strJson)
    parse the JSON for a token

    Methods inherited from class fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient

    getAcrValues, getAcrValuesSet, getData, getDataServerUri, getName, getPostLogoutRedirectUri, getRedirectUri, getScope, getScopes, getTokenMethod, isDefault, setAcrValuesSet, setDataServerUri, setDefault, setName, setPostLogoutRedirectUri, setRedirectUri, setScope, setTokenMethod

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AuthDataClient

      public AuthDataClient()
  • Method Details

    • handleToken

      public void handleToken(fr.paris.lutece.plugins.oauth2.business.Token token, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
    • parse

      public Map<String,Object> parse(String strJson) throws IOException
      parse the JSON for a token
      Parameters:
      strJson - The JSON
      Returns:
      The UserInfo
      Throws:
      IOException - if an error occurs
    • handleError

      public void handleError(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String strError)
      Specified by:
      handleError in interface fr.paris.lutece.plugins.oauth2.dataclient.DataClient
      Overrides:
      handleError in class fr.paris.lutece.plugins.oauth2.dataclient.AbstractDataClient