Skip to content

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

Merged
jimmyjames merged 3 commits intomasterfrom
support-org-name
Jul 18, 2023
Merged

[SDK-4400] Support Organization Name on Authorize URL#550
jimmyjames merged 3 commits intomasterfrom
support-org-name

Conversation

@jimmyjames
Copy link
Copy Markdown
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)) {
Copy link
Copy Markdown

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
Copy Markdown
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
@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