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 claim provider according to the organization bound token improvements #240

Merged

Conversation

sadilchamishka
Copy link
Contributor

@sadilchamishka sadilchamishka commented Sep 13, 2023

Purpose

According to the organization bound token improvement, the user accessing organization should be fetch from the newly introduced attributes of the authenticated user object.
Also the user's resident organization information also need to fetched and added to the ID token as an additional claim.

Related Issues.

When should this PR be merged

Depends on

@sadilchamishka sadilchamishka marked this pull request as draft September 13, 2023 12:46
dewniMW pushed a commit to dewniMW/identity-organization-management-1 that referenced this pull request Sep 20, 2023
dewniMW pushed a commit to dewniMW/identity-organization-management-1 that referenced this pull request Sep 20, 2023
@sadilchamishka sadilchamishka changed the title claim provider improvements Set user organization as org_id claim if user organization is set in the authenticated user Sep 22, 2023
@sadilchamishka sadilchamishka marked this pull request as ready for review September 22, 2023 14:23
@sadilchamishka sadilchamishka changed the title Set user organization as org_id claim if user organization is set in the authenticated user Set userOrganization as org_id claim if user organization is set in the authenticated user Sep 22, 2023
@sadilchamishka sadilchamishka changed the title Set userOrganization as org_id claim if user organization is set in the authenticated user Improve claim provider according to the organization bound token improvements Oct 17, 2023
Comment on lines 94 to 95
private Map<String, Object> setOrganizationInformation(String userResidentOrganization,
String authorizedOrganization)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
private Map<String, Object> setOrganizationInformation(String userResidentOrganization,
String authorizedOrganization)
private Map<String, Object> buildOrganizationInformation(String userResidentOrganizationId,
String authorizedOrganizationId)

@sadilchamishka sadilchamishka merged commit 5343d35 into wso2-extensions:main Oct 17, 2023
1 check 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.

2 participants