mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-06 01:40:27 +08:00
feat: fix bug that custom JWT token no longer includes properties (#4124)
This commit is contained in:
@@ -342,7 +342,7 @@ func getClaimsCustom(claims Claims, tokenField []string) jwt.MapClaims {
|
||||
res["provider"] = claims.Provider
|
||||
|
||||
for _, field := range tokenField {
|
||||
if strings.HasPrefix(field, "Properties") {
|
||||
if strings.HasPrefix(field, "Properties.") {
|
||||
/*
|
||||
Use selected properties fields as custom claims.
|
||||
Converts `Properties.my_field` to custom claim with name `my_field`.
|
||||
|
Reference in New Issue
Block a user