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

Update hasRequiredScopes function #4368

Merged
merged 4 commits into from
Oct 27, 2023
Merged

Conversation

Achintha444
Copy link
Contributor

Purpose

$Subject

Checklist

  • e2e cypress tests locally verified.
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

brionmario
brionmario previously approved these changes Oct 26, 2023
@Achintha444 Achintha444 merged commit 8ab618f into wso2:master Oct 27, 2023
5 checks passed
organzationType === OrganizationType.TENANT) {

return scopes.every((scope: string) => AuthenticateUtils.hasScope(scope, allowedScopes));

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

SUBORGANIZATION = "SUBORGANIZATION",
TENANT = "TENANT",
FIRST_LEVEL_ORGANIZATION = "FIRST_LEVEL_ORGANIZATION",
SUPER_ORGANIZATION= "SUPER_ORGANIZATION"
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
SUPER_ORGANIZATION= "SUPER_ORGANIZATION"
SUPER_ORGANIZATION = "SUPER_ORGANIZATION"

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