Class OidcProvider.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • config

        public OidcProvider.Builder config​(Config config)
        Update this builder with configuration. Only updates information that was not explicitly set. The following configuration options are used:
        Optional configuration parameters
        key default value description
            The current config node is used to construct OidcConfig.
        propagate false Whether to propagate token (overall configuration). If set to false, propagation will not be done at all.
        outbound   Configuration of OutboundConfig. In addition you can use propagate to disable propagation for an outbound target, and token to configure outbound TokenHandler for an outbound target. Default token handler uses Authorization header with a bearer prefix
        Parameters:
        config - OIDC provider configuration
        Returns:
        updated builder instance
      • propagate

        public OidcProvider.Builder propagate​(boolean propagate)
        Whether to propagate identity.
        Parameters:
        propagate - whether to propagate identity (true) or not (false)
        Returns:
        updated builder instance
      • outboundConfig

        public OidcProvider.Builder outboundConfig​(OutboundConfig config)
        Configuration of outbound rules.
        Parameters:
        config - outbound configuration
        Returns:
        updated builder instance
      • oidcConfig

        public OidcProvider.Builder oidcConfig​(OidcConfig config)
        Configuration of OIDC (Open ID Connect).
        Parameters:
        config - OIDC configuration for this provider
        Returns:
        updated builder instance
      • useJwtGroups

        public OidcProvider.Builder useJwtGroups​(boolean useJwtGroups)
        Claim groups from JWT will be used to automatically add groups to current subject (may be used with RolesAllowed annotation).
        Parameters:
        useJwtGroups - whether to use groups claim from JWT to retrieve roles
        Returns:
        updated builder instance