Class FederatedJacksonModuleContributor
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.persistence.social.FederatedJacksonModuleContributor
- All Implemented Interfaces:
AuthorizationJacksonModuleContributor
@Component
public class FederatedJacksonModuleContributor
extends Object
implements AuthorizationJacksonModuleContributor
Adds the module of the OAuth 2.0 client to the mapper of the stored authorizations. The principal of an authorization
started with an external provider is an
OAuth2AuthenticationToken holding an OAuth2User or an
OidcUser with its authorities and, for OpenID Connect, its ID token and user info. Without the module, which
allows exactly those types, the authorization could be written but never read back, so no token would be issued
after a social sign-in.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontools.jackson.databind.JacksonModulemodule(tools.jackson.databind.jsontype.BasicPolymorphicTypeValidator.Builder validator) Creates the module of the OAuth 2.0 client and allows its types in the validator.
-
Constructor Details
-
FederatedJacksonModuleContributor
public FederatedJacksonModuleContributor()
-
-
Method Details
-
module
public tools.jackson.databind.JacksonModule module(tools.jackson.databind.jsontype.BasicPolymorphicTypeValidator.Builder validator) Creates the module of the OAuth 2.0 client and allows its types in the validator.- Specified by:
modulein interfaceAuthorizationJacksonModuleContributor- Parameters:
validator- builder of the polymorphic type validator of the authorization mapper.- Returns:
- the configured module.
-