mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-24 08:20:31 +08:00
feat: fix name format in application login: GetClientCredentialsToken() (#1639)
This commit is contained in:
parent
daf3d374b5
commit
117ee509cf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user