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

Fix proffered username sso configuration #243

Merged
merged 8 commits into from
Sep 5, 2024

Conversation

aindriu-aiven
Copy link
Contributor

I have added additional information on setting up SSO with Klaw after an issue was raised recently.

Copy link

cloudflare-workers-and-pages bot commented Aug 2, 2024

Deploying klaw-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2bc4dc7
Status: ✅  Deploy successful!
Preview URL: https://812af747.klaw-docs.pages.dev
Branch Preview URL: https://fix-preffered-username-sso.klaw-docs.pages.dev

View logs

Copy link
Contributor

@muralibasani muralibasani left a comment

Choose a reason for hiding this comment

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

We could update klaw BE code to handle this claim internally, instead of asking user to update the claim. Ideally Klaw is dealing only with preferred usernames and not with email ids. And preferred usernames can be email ids.

IMO, this change is not required, rather we should update BE code in klaw

6. Each SSO provider can have a different "preferred username" attribute which identifies your user correctly.
For Google update this attribute in the application.properties as below.

`klaw.ad.username.attribute=email`
Copy link
Contributor

Choose a reason for hiding this comment

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

We should not force the organization to update this claim, as preferred_username can also be present in google SSO claims.

Check your provider's documentation and select the attribute/claim that defines the username/login name.
Update this attribute in the `application.properties` file, replacing 'preferred_username' with their attribute.

`klaw.ad.username.attribute=preferred_username`
Copy link
Contributor

Choose a reason for hiding this comment

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

We can update this pr abit based on the pr Aiven-Open/klaw#2556

@aindriu-aiven
Copy link
Contributor Author

I've overridden DCO as the unsigned commits were mine.

@aindriu-aiven aindriu-aiven merged commit ac1b4b4 into main Sep 5, 2024
5 checks passed
@aindriu-aiven aindriu-aiven deleted the fix-preffered-username-sso branch September 5, 2024 06:32
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