-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Fallback to display text consent scopes #40789
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
base: main
Are you sure you want to change the base?
Conversation
9df91a4
to
7a38ae2
Compare
Closes keycloak#40788 Signed-off-by: Alexis Rico <sferadev@gmail.com>
7a38ae2
to
3b59125
Compare
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.
Unreported flaky test detected, please review
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.federation.ldap.LDAPReadOnlyTest#testReadOnlyUserGetsPermanentlyLocked
|
@@ -216,7 +216,8 @@ export const Applications = () => { | |||
</DescriptionListTerm> | |||
{application.consent.grantedScopes.map((scope) => ( | |||
<DescriptionListDescription key={`scope${scope.id}`}> | |||
<CheckIcon /> {t(scope.name as TFuncKey)} | |||
<CheckIcon />{" "} | |||
{t(scope.name as TFuncKey, scope.displayTest)} |
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.
You've added scope.displayTest
(typo intended) as a second argument. The string behind it will be displayed if no translation for the first argument has been found.
Can you explain what the idea behind this is? Maybe with example cases?
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.
Sure, the case is when defining a custom scope that is not built-in in Keycloak and has not been added as a translation in the realm settings.
You can find a picture in the PR description with one case
Closes #40788