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

[SDK-4400] Support Organization Name on Authorize URL #550

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

jimmyjames
Copy link
Contributor

Adds support for using the org_name authorize parameter, as well as support for verifying the org_name claim.

@jimmyjames jimmyjames requested a review from a team as a code owner July 17, 2023 18:05
poovamraj
poovamraj previously approved these changes Jul 18, 2023
if (isEmpty(orgNameClaim)) {
throw new IdTokenValidationException("Organization name (org_name) claim must be a string present in the ID token");
}
if (!org.equalsIgnoreCase(orgNameClaim)) {

Choose a reason for hiding this comment

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

I've made a mistake here @jimmyjames, please see the internal discussion. This should not strictly be an ignore-case check but should instead be a check against the claim value, and lowercased org (subtle difference).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @stevehobbsdev - I pushed a new commit to address this.

@jimmyjames jimmyjames merged commit 553c156 into master Jul 18, 2023
6 checks passed
@jimmyjames jimmyjames deleted the support-org-name branch July 18, 2023 17:34
@jimmyjames jimmyjames mentioned this pull request Jul 18, 2023
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