Skip to content

Commit 8bbcf1e

Browse files
committed
fix: remove offline_access from default OAuth2 scope
- Remove offline_access from default OAuth2 client scope configuration - offline_access should only be used for long-running processes, not regular web apps - This prevents creation of unnecessary offline sessions in Keycloak - Regular refresh tokens work fine without offline_access for web applications Fixes #30206
1 parent 5971b96 commit 8bbcf1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generators/spring-boot/templates/src/main/resources/config/application.yml.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ spring:
373373
client-id: web_app
374374
client-secret: web_app
375375
<%_ } _%>
376-
scope: openid, profile, email, offline_access # last one for refresh tokens
376+
scope: openid, profile, email # refresh tokens work without offline_access for regular web apps
377377
<%_ } _%>
378378
<%_ if (authenticationTypeJwt) { _%>
379379
oauth2:

0 commit comments

Comments
 (0)