Class SubFromIDTokenLookupFunction

java.lang.Object
net.shibboleth.idp.plugin.authn.oidc.rp.context.navigate.AbstractTokenResponseLookupStrategy
net.shibboleth.idp.plugin.authn.oidc.rp.context.navigate.SubFromIDTokenLookupFunction
All Implemented Interfaces:
BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>

@ThreadSafe public class SubFromIDTokenLookupFunction extends AbstractTokenResponseLookupStrategy implements BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>
A function that pulls the subject 'sub' out of the id_token in the AccessTokenResponseContext.
  • Field Details

    • log

      @Nonnull private final org.slf4j.Logger log
      Class logger.
  • Constructor Details

    • SubFromIDTokenLookupFunction

      public SubFromIDTokenLookupFunction()
      Constructor.
    • SubFromIDTokenLookupFunction

      public SubFromIDTokenLookupFunction(@Nonnull @ParameterName(name="accessTokenContextLookupStrategy") Function<ProfileRequestContext,AccessTokenResponseContext> strategy)
      Constructor.
      Parameters:
      strategy - the AccessTokenResponseContext lookup strategy to use.
  • Method Details

    • apply

      @Nullable public String apply(@Nullable ProfileRequestContext prc, @Nullable com.nimbusds.jwt.JWTClaimsSet claimsSet)
      The input claims set is ignored because it belongs to the JWT that is being tested. Here we lookup the 'sub' claim from the id_token in a different context.
      Specified by:
      apply in interface BiFunction<ProfileRequestContext,com.nimbusds.jwt.JWTClaimsSet,String>