Class WebauthnJacksonModuleContributor

java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.passkeys.WebauthnJacksonModuleContributor
All Implemented Interfaces:
AuthorizationJacksonModuleContributor

@Component public class WebauthnJacksonModuleContributor extends Object implements AuthorizationJacksonModuleContributor
Adds the module of the passkeys to the mapper of the stored authorizations. SecurityJacksonModules leaves it out on purpose, but the principal of an authorization started with a passkey is a WebAuthnAuthentication holding a user entity, and without the module (which allows exactly those two types) the authorization could be written but never read back, so no token would be issued after a passkey sign-in.
  • Constructor Details

    • WebauthnJacksonModuleContributor

      public WebauthnJacksonModuleContributor()
  • Method Details

    • module

      public tools.jackson.databind.JacksonModule module(tools.jackson.databind.jsontype.BasicPolymorphicTypeValidator.Builder validator)
      Creates the module of the passkeys and allows its types in the validator.
      Specified by:
      module in interface AuthorizationJacksonModuleContributor
      Parameters:
      validator - builder of the polymorphic type validator of the authorization mapper.
      Returns:
      the configured module.