Interface OIDCIDTokenProducingProfileConfiguration

    • Method Detail

      • getIDTokenLifetime

        @Positive
        @Nonnull
        Duration getIDTokenLifetime​(@Nullable
                                    ProfileRequestContext profileRequestContext)
        Get ID token lifetime.

        Defaults to 1 hour.

        Parameters:
        profileRequestContext - profile request context
        Returns:
        ID token lifetime
      • getAlwaysIncludedAttributes

        @Nonnull
        @NonnullElements
        @NotLive
        Set<String> getAlwaysIncludedAttributes​(@Nullable
                                                ProfileRequestContext profileRequestContext)
        Get the set of attribute IDs which should be included in the ID token regardless of response_type.

        Default behavior is to include claims only with the implicit id_token type only, while any use of a back-channel relies on the user_info endpoint to get the claims. This setting forces certain attributes to be added to the ID token regardless of flow.

        Parameters:
        profileRequestContext - profile request context
        Returns:
        the attribute IDs to include in all cases
      • getAdditionalAudiencesForIdToken

        @Nonnull
        @NonnullElements
        @NotLive
        Set<String> getAdditionalAudiencesForIdToken​(@Nullable
                                                     ProfileRequestContext profileRequestContext)
        Get the set of audiences, in addition to the relying party(ies) to which the IdP is issuing the ID Token, with which the token may be shared.
        Parameters:
        profileRequestContext - profile request context
        Returns:
        the additional audiences