-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added switch to enable/disable offline access for new clients #1182
Conversation
Terraform Format and Style 🖌
|
Terraform Format and Style 🖌
|
Terraform Format and Style 🖌
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #1182 +/- ##
==========================================
+ Coverage 71.16% 71.27% +0.10%
==========================================
Files 299 301 +2
Lines 10338 10447 +109
Branches 2400 2456 +56
==========================================
+ Hits 7357 7446 +89
- Misses 2981 3001 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* chore: update migrator add migrator args * chore: update deps update e2e deps
Terraform Format and Style 🖌
|
1 similar comment
Terraform Format and Style 🖌
|
await kcAdminClient.clients.addOptionalClientScope({ | ||
id: client.id, | ||
clientScopeId: clientScopeList.find((defaultClientscope) => defaultClientscope.name === 'offline_access')?.id, | ||
realm, | ||
}); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we collapse this else/if to one line?
id: client.id, | ||
realm, | ||
mapperId: additionalClientRolesMapper?.id, | ||
}); | ||
} | ||
} else if (integration.protocol === 'saml') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe collapse these nested ifs to 1 line.
@@ -330,7 +361,7 @@ export const keycloakClient = async ( | |||
} | |||
} | |||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well
|
Terraform Format and Style 🖌
|
A new switch added to each environment in request integration form to enable/disable offline access. This applies to only new integrations and existing ones are grandfathered in, i.e. enabled by default.
This also fixes the issue with additional_client_roles where the mapper was not getting updated with new name.