Package com.ibm.wsspi.security.oauth20
Interface TokenIntrospectProvider
public interface TokenIntrospectProvider
Implement this API and use it within the SPI to customize the json response for the userinfo endpoint.
-
Method Summary
Modifier and TypeMethodDescriptiongetUserInfo
(com.ibm.websphere.security.oauth20.AuthnContext authnContext) This method should return the userinfo as a JSON format string.
-
Method Details
-
getUserInfo
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 and could be in errors- 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
-