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