feat: fix JWT generate issue cause by shared application (#3113)

* fix: fix jwt generate cause by shared application

* fix: fix built-in org will not add -org-
This commit is contained in:
DacongDA
2024-08-09 22:48:44 +08:00
committed by GitHub
parent 97dcf24a91
commit 45e25acc80
2 changed files with 5 additions and 1 deletions

View File

@ -365,6 +365,10 @@ func generateJwtToken(application *Application, user *User, nonce string, scope
},
}
if application.IsShared {
claims.Audience = []string{application.ClientId + "-org-" + user.Owner}
}
var token *jwt.Token
var refreshToken *jwt.Token