feat: fix name format in application login: GetClientCredentialsToken() (#1639)

This commit is contained in:
hsluoyz 2023-03-25 23:02:08 +08:00 committed by GitHub
parent daf3d374b5
commit 117ee509cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -613,7 +613,8 @@ func GetClientCredentialsToken(application *Application, clientSecret string, sc
nullUser := &User{
Owner: application.Owner,
Id: application.GetId(),
Name: fmt.Sprintf("app/%s", application.Name),
Name: application.Name,
Type: "application",
}
accessToken, _, tokenName, err := generateJwtToken(application, nullUser, "", scope, host)