diff --git a/object/token.go b/object/token.go index 7a48f2b2..fd711491 100644 --- a/object/token.go +++ b/object/token.go @@ -556,7 +556,9 @@ func GetClientCredentialsToken(application *Application, clientSecret string, sc return nil, errors.New("error: invalid client_secret") } nullUser := &User{ - Name: fmt.Sprintf("app/%s", application.Name), + Owner: application.Owner, + Id: application.GetId(), + Name: fmt.Sprintf("app/%s", application.Name), } accessToken, _, err := generateJwtToken(application, nullUser, "", scope, host) if err != nil {