Class JwksUriSignatureFactory
java.lang.Object
io.micronaut.security.oauth2.client.JwksUriSignatureFactory
Factory to create
ReactiveJwksSignature
beans for the OpenIdProviderMetadata.getJwksUri()
of OpenID clients.- Since:
- 1.3.0
- Author:
- Sergio del Amo
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateJwksSignatureConfiguration
(io.micronaut.context.BeanProvider<DefaultOpenIdProviderMetadata> openIdProviderMetadata) createJwksUriSignature
(JwksSignatureConfiguration jwksSignatureConfiguration, JwkValidator jwkValidator, JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet> jwkSetFetcher)
-
Constructor Details
-
JwksUriSignatureFactory
public JwksUriSignatureFactory()
-
-
Method Details
-
createJwksUriSignature
@EachBean(JwksSignatureConfiguration.class) public ReactiveJwksSignature createJwksUriSignature(@Parameter JwksSignatureConfiguration jwksSignatureConfiguration, JwkValidator jwkValidator, JwkSetFetcher<com.nimbusds.jose.jwk.JWKSet> jwkSetFetcher) - Parameters:
jwksSignatureConfiguration
- JWKS ConfigurationjwkValidator
- JWK ValidatorjwkSetFetcher
- Json Web Key Set Fetcher- Returns:
- a
ReactiveJwksSignature
for theJwksSignatureConfiguration
-
createJwksSignatureConfiguration
@EachBean(DefaultOpenIdProviderMetadata.class) public JwksSignatureConfiguration createJwksSignatureConfiguration(@Parameter io.micronaut.context.BeanProvider<DefaultOpenIdProviderMetadata> openIdProviderMetadata) - Parameters:
openIdProviderMetadata
- The open id provider metadata- Returns:
- a
JwksSignatureConfiguration
pointed to the jwks_uri exposed via OpenID configuration
-