File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ NEXTAUTH_CLIENT_SECRET="KEYCLOAK_SECRET"
1414NEXTAUTH_SECRET = " NEXTAUTH_SECRET"
1515NEXTAUTH_ISSUER = " http://localhost:8085/realms/orchestrator"
1616NEXTAUTH_WELL_KNOWN_OVERRIDE = " http://localhost:8085/auth/.well-known/openid-configuration"
17+ NEXTATHU_AUTHORIZATION_SCOPE = " openid profile"
1718NEXTAUTH_URL = http://localhost:3000/api/auth
1819
1920# docker-compose variables
Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ const wfoProvider: OAuthConfig<WfoUserProfile> = {
2121 wellKnown :
2222 process . env . NEXTAUTH_WELL_KNOWN_OVERRIDE ??
2323 `${ process . env . NEXTAUTH_ISSUER || '' } /.well-known/openid-configuration` ,
24- authorization : { params : { scope : 'openid profile' } } ,
24+ authorization : {
25+ params : {
26+ scope : process . env . NEXTAUTH_AUTHORIZATION_SCOPE ?? 'openid profile' ,
27+ } ,
28+ } ,
2529 idToken : true ,
2630 checks : [ 'pkce' , 'state' ] ,
2731 userinfo : {
You can’t perform that action at this time.
0 commit comments