Skip to content

Commit

Permalink
fix: add access token to manage groups
Browse files Browse the repository at this point in the history
  • Loading branch information
ElderMatt committed Jun 20, 2024
1 parent fecba69 commit 8f754b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/operator/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,10 @@ async function internalIdp(api: KeycloakApi, connection: KeycloakConnection) {
}

async function manageGroups(connection: KeycloakConnection) {
const { basePath } = connection
const { token, basePath } = connection
const groups = new GroupsApi(basePath)
const teamGroups = createGroups(env.TEAM_IDS)
groups.accessToken = String(token.access_token)

const existingGroups = ((await doApiCall(errors, 'Getting realm groups', () =>
groups.realmGroupsGet(keycloakRealm),
Expand Down

0 comments on commit 8f754b0

Please sign in to comment.