Class ManipulateClaimsForIDToken

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction, Aware, MessageSource, MessageSourceAware, Action

public class ManipulateClaimsForIDToken extends AbstractOIDCAuthenticationResponseAction
An action that can be used for manipulating id_token claims via configurable strategy (bi-function). If the function exists, its result (a Map) is used as-is for building new contents for the upcoming id_token, i.e. the previously built claims set is replaced. If the function returns null, the existing id_token contents are not replaced.
Event:
EventIds.INVALID_MSG_CTX If the id_token does not exist., IdPEventIds.INVALID_PROFILE_CONFIG If the new claims set is not compatible with the id_token requirements (e.g. due to missing mandatory claims, or claims having unexpected syntax).