Class JwksUriSignatureFactory

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

@Factory @Internal public class JwksUriSignatureFactory extends Object
Factory to create ReactiveJwksSignature beans for the OpenIdProviderMetadata.getJwksUri() of OpenID clients.

The beans are only created for the AuthenticationMode.IDTOKEN authentication mode, where the ID token issued by the provider is the request credential. In any other authentication mode, tokens signed by the provider's keys, such as ID tokens issued to other clients, must not authenticate requests. The ID token obtained during the authorization code flow is validated against the provider's JWKS independently of these beans.

The key set of a provider is bound to the issuer of that provider (see JwksSignatureConfiguration.getIssuer()), so that a token whose iss claim names one provider cannot be verified with the keys of another provider.

Since:
1.3.0
Author:
Sergio del Amo
  • Constructor Details

    • JwksUriSignatureFactory

      public JwksUriSignatureFactory()
  • Method Details