reducing scope of token request
This commit is contained in:
@@ -31,7 +31,7 @@ func GetAccessToken(c *Config) (string, error) {
|
||||
Endpoint: oauth2.Endpoint{
|
||||
TokenURL: "https://" + c.Hostname + "/oidc-token-service/" + c.ClientID + "/token",
|
||||
},
|
||||
Scopes: []string{"oidc", "tags", "context_entitlements", "content_entitlements", "em_api_access"},
|
||||
Scopes: []string{"em_api_access"},
|
||||
}
|
||||
log.WithFields(log.Fields{"conf": fmt.Sprintf("%+v", conf)}).Debug()
|
||||
token, err := conf.PasswordCredentialsToken(context.TODO(), c.Username, c.Password)
|
||||
|
||||
Reference in New Issue
Block a user