reducing scope of token request

This commit is contained in:
Peter Morton 2023-05-02 16:55:05 -05:00
parent f8a72a792f
commit e2f6da1b5f
2 changed files with 2 additions and 2 deletions

View File

@ -67,5 +67,5 @@ func init() {
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
listCmd.Flags().StringVarP(&filter, "filter", "f", "", "Filter properties using a query. For example --fitler \"redaction\"")
listCmd.Flags().StringVarP(&filter, "filter", "f", "", "Filter properties using a query. For example --filter \"redaction\"")
}

View File

@ -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)