fix: validating id_token
This commit is contained in:
2
server/env/env.go
vendored
2
server/env/env.go
vendored
@@ -332,7 +332,7 @@ func InitAllEnv() error {
|
||||
envData[constants.EnvKeyJwtRoleClaim] = osJwtRoleClaim
|
||||
|
||||
if envData[constants.EnvKeyJwtRoleClaim] == "" {
|
||||
envData[constants.EnvKeyJwtRoleClaim] = "role"
|
||||
envData[constants.EnvKeyJwtRoleClaim] = "roles"
|
||||
}
|
||||
}
|
||||
if osJwtRoleClaim != "" && envData[constants.EnvKeyJwtRoleClaim] != osJwtRoleClaim {
|
||||
|
Reference in New Issue
Block a user