From 771c52ede5014a4dc3f1a75d3835e7a074170ca4 Mon Sep 17 00:00:00 2001 From: Nick Holloway Date: Tue, 28 May 2024 12:17:15 +0100 Subject: [PATCH] Fix AOT hints for OAuth 2.0 Token Exchange --- ...OAuth2AuthorizationServerBeanRegistrationAotProcessor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/aot/hint/OAuth2AuthorizationServerBeanRegistrationAotProcessor.java b/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/aot/hint/OAuth2AuthorizationServerBeanRegistrationAotProcessor.java index ffe143428..8a33170f6 100644 --- a/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/aot/hint/OAuth2AuthorizationServerBeanRegistrationAotProcessor.java +++ b/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/aot/hint/OAuth2AuthorizationServerBeanRegistrationAotProcessor.java @@ -151,11 +151,11 @@ private void registerHints(RuntimeHints hints) { this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), loadClass("org.springframework.security.jackson2.SimpleGrantedAuthorityMixin")); this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), loadClass( - "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2ActorAuthenticationTokenMixin")); + "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2TokenExchangeActorMixin")); this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), loadClass( "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2AuthorizationRequestMixin")); this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), loadClass( - "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2CompositeAuthenticationTokenMixin")); + "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2TokenExchangeCompositeAuthenticationTokenMixin")); this.reflectionHintsRegistrar.registerReflectionHints(hints.reflection(), loadClass( "org.springframework.security.oauth2.server.authorization.jackson2.OAuth2TokenFormatMixin"));