Interface UserinfoProvider


public interface UserinfoProvider
Implement this API and use it within the SPI to customize the json response for the userinfo endpoint.
  • Method Summary

    Modifier and Type
    Method
    Description
    getUserInfo(com.ibm.websphere.security.oauth20.AuthnContext authnContext)
    This method should return the userinfo as a JSON format string.
  • Method Details

    • getUserInfo

      String getUserInfo(com.ibm.websphere.security.oauth20.AuthnContext authnContext)
      This method should return the userinfo as a JSON format string. If this method return null then it will be ignored. No further handling will happen
      Parameters:
      authnContext - The Authentication context for this invocation
      Returns:
      The string content with the userinfo, which can be parsed back to an JSONObject. This will be provided to anyone invoking the userinfo endpoint