Class OpenIdProviderMetadataFetcherFactory

java.lang.Object
io.micronaut.security.oauth2.client.OpenIdProviderMetadataFetcherFactory

@Factory @Internal public class OpenIdProviderMetadataFetcherFactory extends Object
Since:
3.9.0
Author:
Sergio del Amo
  • Constructor Details

    • OpenIdProviderMetadataFetcherFactory

      public OpenIdProviderMetadataFetcherFactory()
  • Method Details

    • createOpenIdProviderMetadataFetcher

      @EachBean(OpenIdClientConfiguration.class) @Singleton @NonNull public @NonNull OpenIdProviderMetadataFetcher createOpenIdProviderMetadataFetcher(@Parameter OpenIdClientConfiguration openIdClientConfiguration, @Client io.micronaut.http.client.HttpClient issuerClient)
      Retrieves OpenID configuration from the provided issuer.
      Parameters:
      openIdClientConfiguration - The openid client configuration
      issuerClient - The client to request the metadata
      Returns:
      The OpenID Provider Metadata Fetcher