Mask user in GenerateCasToken()

This commit is contained in:
Yang Luo 2023-09-06 18:36:55 +08:00
parent 3c2fd574a6
commit b7cd604e56

View File

@ -193,6 +193,8 @@ func GenerateCasToken(userId string, service string) (string, error) {
return "", fmt.Errorf("The user: %s doesn't exist", userId) return "", fmt.Errorf("The user: %s doesn't exist", userId)
} }
user, _ = GetMaskedUser(user, false)
authenticationSuccess := CasAuthenticationSuccess{ authenticationSuccess := CasAuthenticationSuccess{
User: user.Name, User: user.Name,
Attributes: &CasAttributes{ Attributes: &CasAttributes{