session correction sidebar items 5
This commit is contained in:
parent
1440eae3a2
commit
136627f226
@ -87,6 +87,11 @@ export const authOptions: NextAuthOptions = {
|
|||||||
clientId: getRequiredEnvVar("KEYCLOAK_CLIENT_ID"),
|
clientId: getRequiredEnvVar("KEYCLOAK_CLIENT_ID"),
|
||||||
clientSecret: getRequiredEnvVar("KEYCLOAK_CLIENT_SECRET"),
|
clientSecret: getRequiredEnvVar("KEYCLOAK_CLIENT_SECRET"),
|
||||||
issuer: getRequiredEnvVar("KEYCLOAK_ISSUER"),
|
issuer: getRequiredEnvVar("KEYCLOAK_ISSUER"),
|
||||||
|
authorization: {
|
||||||
|
params: {
|
||||||
|
scope: "openid profile email roles"
|
||||||
|
}
|
||||||
|
},
|
||||||
profile(profile) {
|
profile(profile) {
|
||||||
console.log('Keycloak profile:', {
|
console.log('Keycloak profile:', {
|
||||||
rawRoles: profile.roles,
|
rawRoles: profile.roles,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user