From fe9e38ec1b93334634035aac8fac48bccf486b7e Mon Sep 17 00:00:00 2001 From: Marcelo Shima Date: Mon, 15 Jul 2024 11:40:40 -0300 Subject: [PATCH] cleanup --- .../_package_/config/SecurityConfiguration_imperative.java.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs b/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs index 109cf2acaafc..5fa690b4919b 100644 --- a/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs +++ b/generators/server/templates/src/main/java/_package_/config/SecurityConfiguration_imperative.java.ejs @@ -323,6 +323,7 @@ public class SecurityConfiguration { jwtAuthenticationConverter.setPrincipalClaimName(PREFERRED_USERNAME); return jwtAuthenticationConverter; } + <%_ if (!applicationTypeMicroservice) { _%> OAuth2UserService oidcUserService() { final OidcUserService delegate = new OidcUserService(); @@ -332,7 +333,6 @@ public class SecurityConfiguration { return new DefaultOidcUser(oidcUser.getAuthorities(), oidcUser.getIdToken(), oidcUser.getUserInfo(), PREFERRED_USERNAME); }; } - <%_ if (!applicationTypeMicroservice) { _%> /** * Map authorities from "groups" or "roles" claim in ID Token.