Skip to content
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

MS custom idp & more custom execution steps #29

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

prepor
Copy link

@prepor prepor commented Nov 11, 2024

No description provided.


import org.keycloak.broker.oidc.mappers.UserAttributeMapper;

public class MicrosoftUserAttributeMapper extends UserAttributeMapper {
Copy link
Contributor

Choose a reason for hiding this comment

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

Since your MicrosoftIdentityProvider extends OIDCIdentityProvider, the builtin UserAttributeMapper might already be selectable for it, I think?

Copy link
Author

Choose a reason for hiding this comment

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

builtin UserAttributeMapper returns hardcoded COMPATIBLE_PROVIDERS in getCompatibleProviders. This subclass is just overrides this method.

Copy link
Contributor

Choose a reason for hiding this comment

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

Right. I'm saying that UserAttributeMapper includes OIDCIdentityProviderFactory.PROVIDER_ID in the compatible providers, and since your provider extends OIDCIdentityProvider I think the builtin mapper should already treat it as compatible.

Copy link
Contributor

Choose a reason for hiding this comment

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

If not, then it's fine to extend it.

Copy link
Author

Choose a reason for hiding this comment

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

Hmm. I don't think it takes into account parent classes. I think it failed when I tried, but I will try one more time.

kszafran
kszafran previously approved these changes Nov 20, 2024
@prepor prepor marked this pull request as ready for review December 18, 2024 15:26
@kszafran kszafran self-requested a review December 18, 2024 16:42
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.

2 participants