mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +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