Skip to content

Commit ca2c750

Browse files
rename NEXTAUTH_AUTHORIZATION_SCOPE to NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE (#27)
Co-authored-by: Mohammad Torkashvand <mohammad.torkashvand@geant.org>
1 parent 5315b11 commit ca2c750

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ NEXTAUTH_CLIENT_SECRET="KEYCLOAK_SECRET"
1414
NEXTAUTH_SECRET="NEXTAUTH_SECRET"
1515
NEXTAUTH_ISSUER="http://localhost:8085/realms/orchestrator"
1616
NEXTAUTH_WELL_KNOWN_OVERRIDE="http://localhost:8085/auth/.well-known/openid-configuration"
17-
NEXTATHU_AUTHORIZATION_SCOPE="openid profile"
17+
NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE="openid profile"
1818
NEXTAUTH_URL=http://localhost:3000/api/auth
1919

2020
# docker-compose variables

pages/api/auth/[...nextauth].ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const wfoProvider: OAuthConfig<WfoUserProfile> = {
2323
`${process.env.NEXTAUTH_ISSUER || ''}/.well-known/openid-configuration`,
2424
authorization: {
2525
params: {
26-
scope: process.env.NEXTAUTH_AUTHORIZATION_SCOPE ?? 'openid profile',
26+
scope:
27+
process.env.NEXTAUTH_AUTHORIZATION_SCOPE_OVERRIDE ??
28+
'openid profile',
2729
},
2830
},
2931
idToken: true,

0 commit comments

Comments
 (0)