reducing scope of token request
This commit is contained in:
parent
f8a72a792f
commit
e2f6da1b5f
@ -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\"")
|
||||
}
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user