Interface WellKnownProviderFactory

All Superinterfaces:
ProviderFactory<WellKnownProvider>
All Known Implementing Classes:
JWTVCIssuerWellKnownProviderFactory, OAuth2WellKnownProviderFactory, OID4VCIssuerWellKnownProviderFactory, OIDCWellKnownProviderFactory, UmaWellKnownProviderFactory

public interface WellKnownProviderFactory extends ProviderFactory<WellKnownProvider>
Author:
Stian Thorgersen
  • Method Details

    • getAlias

      default String getAlias()
      Alias, which will be used as URL suffix of this well-known provider. For example if you use alias like "openid-configuration", then your WellKnown provider might be available under URL like "https://myhost/auth/realms/myrealm/.well-known/openid-configuration". If there are multiple provider factories with same alias, the one with lowest priority will be used.
      See Also:
    • getPriority

      default int getPriority()
      Use low priority, so custom implementation with alias "openid-configuration" will win over the default implementation with alias "openid-configuration", which is provided by Keycloak (OIDCWellKnownProviderFactory).
    • isAvailableViaServerMetadata

      default boolean isAvailableViaServerMetadata()
      Controls if the WellKnownProvider is available via server metadata endpoint. If this method returns true, then the provider will be available under /.well-known/{alias}/realms/{realm}, where {alias} is the well-known alias returned by getAlias(). Default implementation returns false.
      Returns:
      true if this provider may be exposed via ServerMetadataResource