Skip to content

Commit

Permalink
ROX-13408: Use api.iam.clients in dynamic clients API wrapper (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-degtiarenko authored Jan 11, 2023
1 parent 827fa8f commit 75a5e43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/client/redhatsso/dynamicclients/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ import (

// NewDynamicClientsAPI returns new instance of dynamic clients sso.redhat.com API client.
func NewDynamicClientsAPI(realmConfig *iam.IAMRealmConfig) *api.AcsTenantsApiService {
// We count that the token being returned will contain api.iam.acs scope by default.
// TODO(ROX-13408): switch to explicitly requesting api.iam.clients scope once it's available.
httpClient := redhatsso.NewSSOAuthHTTPClient(realmConfig)
httpClient := redhatsso.NewSSOAuthHTTPClient(realmConfig, "api.iam.clients")
configuration := &api.Configuration{
BasePath: realmConfig.BaseURL + realmConfig.APIEndpointURI,
UserAgent: "RHACS-Fleet-Manager/1.0",
Expand Down

0 comments on commit 75a5e43

Please sign in to comment.