Skip to content

Commit

Permalink
Fix client creation by adding serviceAccountsEnabled: true to allow…
Browse files Browse the repository at this point in the history
… access token fetching (#12)
  • Loading branch information
inFocus7 authored Oct 2, 2024
1 parent c227bca commit dc856d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
type: string
parallelism: 1
machine:
image: ubuntu-2004:2022.07.1
image: ubuntu-2204:2024.01.1
resource_class: large
working_directory: ~/go/src/github.com/solo-io/gloo-portal-idp-connect
steps:
Expand Down
5 changes: 3 additions & 2 deletions internal/keycloak/server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ func (s *StrictServerHandler) CreateOAuthApplication(

resp, err := s.restClient.R().
SetBody(map[string]interface{}{
"clientId": request.Body.Id,
"name": request.Body.Id,
"clientId": request.Body.Id,
"name": request.Body.Id,
"serviceAccountsEnabled": true,
}).
SetResult(&createdClient).
Post(s.issuer + "/clients-registrations/default")
Expand Down

0 comments on commit dc856d7

Please sign in to comment.