Skip to content

Commit bf2ac37

Browse files
committed
fix: make offline_access scope conditional for ionic clients
1 parent 5971b96 commit bf2ac37

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<% if (typeof jhipsterConfig !== 'undefined' && jhipsterConfig.clientFramework === 'ionic') { %>, offline_access<% } %> # refresh tokens work without offline_access for regular web apps
377377
<%_ } _%>
378378
<%_ if (authenticationTypeJwt) { _%>
379379
oauth2:

0 commit comments

Comments
 (0)