Skip to content

Commit

Permalink
OSD-22376 | fix: prevents overwriting the client id if set for fedram…
Browse files Browse the repository at this point in the history
…p with keycloak
  • Loading branch information
tonytheleg committed May 3, 2024
1 parent d1c0f59 commit 0f92d57
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions cmd/login/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,16 @@ func runWithRuntime(r *rosa.Runtime, cmd *cobra.Command, argv []string) error {
if !ok {
tokenURL = args.tokenURL
}
clientID, ok = fedramp.ClientIDs[env]
if !ok {

// if client-id is provided, we don't want to just override it
// with Keycloak flow
if args.clientID != "" {
clientID = args.clientID
} else {
clientID, ok = fedramp.ClientIDs[env]
if !ok {
clientID = args.clientID
}
}
}
}
Expand Down

0 comments on commit 0f92d57

Please sign in to comment.