From bf2ac37488e99cd2cb20fda9259df6cf68d1edff Mon Sep 17 00:00:00 2001 From: Rohan Date: Sun, 3 Aug 2025 20:03:07 +0530 Subject: [PATCH] fix: make offline_access scope conditional for ionic clients --- .../templates/src/main/resources/config/application.yml.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generators/spring-boot/templates/src/main/resources/config/application.yml.ejs b/generators/spring-boot/templates/src/main/resources/config/application.yml.ejs index c844f773c138..723bb5944866 100644 --- a/generators/spring-boot/templates/src/main/resources/config/application.yml.ejs +++ b/generators/spring-boot/templates/src/main/resources/config/application.yml.ejs @@ -373,7 +373,7 @@ spring: client-id: web_app client-secret: web_app <%_ } _%> - scope: openid, profile, email, offline_access # last one for refresh tokens + scope: openid, profile, email<% if (typeof jhipsterConfig !== 'undefined' && jhipsterConfig.clientFramework === 'ionic') { %>, offline_access<% } %> # refresh tokens work without offline_access for regular web apps <%_ } _%> <%_ if (authenticationTypeJwt) { _%> oauth2: