Interface IDTokenMediator


public interface IDTokenMediator
Implement this API and use it within the SPI to customize the claims for the ID token. The IDTokenMediator has to be implemented as a single Liberty Service or User Feature in the Liberty Server and multiple IDTokenMediator services or features will result in unpredictable behavior.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method should return the claims as a JSON format string.
  • Method Details

    • mediateToken

      String mediateToken(Map<String,String[]> tokenMap)
      This method should return the claims as a JSON format string. If this method returns null then default ID token will be created.
      Parameters:
      tokenMap - The ID token context for this request, including client_id, user name, scopes, and other properties.
      Returns:
      The string content with the claims to be included in ID token, which can be parsed into a JSONObject.