mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-06 01:40:27 +08:00
Add TokenFormat to application.
This commit is contained in:
@@ -55,6 +55,10 @@ func generateJwtToken(application *Application, user *User, nonce string) (strin
|
||||
},
|
||||
}
|
||||
|
||||
if application.TokenFormat == "JWT-Empty" {
|
||||
claims.User = User{}
|
||||
}
|
||||
|
||||
token := jwt.NewWithClaims(jwt.SigningMethodRS256, claims)
|
||||
|
||||
// Use "token_jwt_key.key" as RSA private key
|
||||
|
Reference in New Issue
Block a user