8000 KEYCLOAK-19283 Implemented new "Advanced claim to group" idp mapper by artur-baltabayev · Pull Request #8467 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content

KEYCLOAK-19283 Implemented new "Advanced claim to group" idp mapper - #8467

Merged
mposolda merged 1 commit into
keycloak:mainfrom
bosch-io:feature/KEYCLOAK-19283
Nov 19, 2021
Merged

mposolda merged 1 commit into
keycloak:mainfrom
bosch-io:feature/KEYCLOAK-19283

Conversation

@artur-baltabayev
@artur-baltabayev artur-baltabayev commented Sep 23, 2021 •
Copy link
Copy Markdown
Contributor

This PR implements a new IdP mapper called "Advanced claim to group" mapper, which functions similar to the "Advanced claim to role" mapper. Instead of assigning a role to the user, the new mapper assigns the selected group to the user (if the chosen claims are present). UI changes to the Admin Console alongside integration tests are also implemented here.

You can find the Jira issue here: https://issues.redhat.com/browse/KEYCLOAK-19283

8000
@stianst
stianst requested a review from mposolda October 8, 2021 11:52
@stianst
stianst commented Nov 1, 2021
Copy link
Copy Markdown
Contributor

@mposolda do you have a chance to review this PR?

@mposolda mposolda self-assigned this Nov 16, 2021
@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artur-baltabayev Thanks for the PR! The PR looks good to me. I will merge it after Keycloak 16 release (We are very close to the Keycloak 16 release and don't include new features to avoid the potential regression right before the release)

@mposolda mposolda added this to the 17.0.0 milestone Nov 16, 2021
@mposolda
Copy link
Copy Markdown
Contributor

@artur-baltabayev I will also need to run admin console tests in our pipeline to doublecheck there is no regression here. So temporarily un-approving it until the admin console tests are checked.

@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foo

@mposolda mposolda 8000 left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foo

@mposolda
mposolda commented Nov 18, 2021 •
Copy link
Copy Markdown
Contributor

@artur-baltabayev Could you please rebase this on top of latest Keycloak "main" branch? I am trying to run admin console tests with this PR, but I have some issues (probably due the fact that it is not rebased with latest main).

If you have a chance to run admin console tests on your laptop and see if everything is ok, it will be helpful as well. See https://github.com/keycloak/keycloak/tree/main/testsuite/integration-arquillian#admin-console-ui-tests for the details.

@artur-baltabayev
Copy link
Copy Markdown
Contributor Author

@mposolda Hello Marek, thank you a lot for your time ! I rebased the branch and will try to run the admin console tests locally. I don't know how it will work out though since i didn't do this before.

@artur-baltabayev
artur-baltabayev commented Nov 19, 2021 •
Copy link
Copy Markdown
Contributor Author

@mposolda I tried running the tests after the rebase and they were not quite successful. However i don't think that my changes are related. The following tests failed :

  • ClientSettingsTest.alwaysDisplayInAccountConsole:123 >> ElementClickIntercepted
  • ClientsTest.clientsNavigationTest:114 >> NoSuchElement Unable to locate element ...

@mposolda mposolda left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artur-baltabayev Thanks for the doublecheck!

@mposolda
mposolda merged commit 661aca4 into keycloak:main Nov 19, 2021
@bergner
bergner commented Nov 24, 2021
Copy link
Copy Markdown

@artur-baltabayev is this MR enabling group mapping for both SAML and OIDC, or only OIDC IdPs? If only OIDC do you have an idea on what would be needed for this to work for SAML identity providers as well?

I've been trying to figure out how Keycloak group mapping worked for SAML recently and after running out of ideas I asked a question on the forums https://keycloak.discourse.group/t/map-groups-from-saml-idp-into-keycloak/12266 but based on my findings and stumbling on this MR the answer probably is that so far no such mapping capability has existed.

@artur-baltabayev
Copy link
Copy Markdown
Contributor Author

@bergner This mapper only works for OIDC. I didn't investigate mapping functionality for SAML so sadly i cannot give a good answer on Keycloak's capabilities here.

To make the mapper work with SAML, it would have to be reimplemented for that protocol specifically, as the current implementation is based on OIDC specific logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

0