Class AuthenticationRequestClaimsAuditExtractor

All Implemented Interfaces:
Function<ProfileRequestContext,String>, ContextDataLookupFunction<ProfileRequestContext,String>

public class AuthenticationRequestClaimsAuditExtractor extends AbstractAuthenticationRequestLookupFunction<String> implements Function<ProfileRequestContext,String>
A function that resolves a claim value from the authentication request. If request object was involved and contains a value for the claim, it will be returned. Otherwise it's fetched from the authentication request parameters.
  • Field Details

    • log

      @Nonnull private org.slf4j.Logger log
      Class logger.
    • key

      @Nonnull @NotEmpty private final String key
      The claim whose value is to be extracted.
  • Constructor Details

    • AuthenticationRequestClaimsAuditExtractor

      public AuthenticationRequestClaimsAuditExtractor(@Nonnull @NotEmpty String claim)
      Constructor.
      Parameters:
      claim - The claim whose value is to be resolved from the id_token claims set.
  • Method Details

    • doLookup

      protected String doLookup(@Nonnull com.nimbusds.openid.connect.sdk.AuthenticationRequest request)
      Implemented to perform the actual lookup from OIDC authentication request.
      Specified by:
      doLookup in class AbstractAuthenticationRequestLookupFunction<String>
      Parameters:
      request - authentication request to perform the lookup from.
      Returns:
      lookup value.