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

Improve the post authentication handler to set the correct username in the carbon context for organization SSO users #254

Conversation

sadilchamishka
Copy link
Contributor

@sadilchamishka sadilchamishka commented Nov 15, 2023

Proposed changes in this pull request

For the organization SSO users, the authentication valve will set the userID@tenant-domain as the username. Hence the downstream tasks for using the username which set in the carbon context will fail. One way is to manually handle each places. Ex - wso2/identity-organization-management-core#114 when creating organizations/sharing applications, the correct authenticated username was required to fetch.

Also there are number of places for the MyAccount related functions where username in the carbon context is heavily used. Hence resolving each places and fix for any future features based on the username in the carbon context may not be reliable for the organization users. Hence with this PR, set the correct username in the carbon context.

$subject

Related issues

…n the carbon context for organization SSO users
@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6871731891

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/6871733604

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6871733604
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/6871733604

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/6871731891
Status: failure

@sadilchamishka sadilchamishka merged commit ac48afb into wso2-extensions:master Nov 15, 2023
3 checks passed
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.

3 participants