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 authorization when accessing the organization resources from tenant perspective #299

Conversation

ShanChathusanda93
Copy link
Contributor

@ShanChathusanda93 ShanChathusanda93 commented Dec 10, 2024

Proposed changes in this pull request

  • $subject
  • Part of the fix for : Support for creating OAuth 2.0 clients inside B2B organizations for B2B API access wso2/product-is#21208
  • When accessing the resources or an organization through tenant perspective, the accessing or authenticated user should have access in the sub organization level.
  • To give the access in the sub organization level to the corresponding user, a shared user representation should be maintain in the sub organization level and correspoding permissions should assigned to that shared user representation.
  • This implementation will check those conditions and allow the access.

Copy link

codecov bot commented Dec 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 3.66%. Comparing base (ae652ff) to head (a411e26).
Report is 9 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff            @@
##             master    #299   +/-   ##
========================================
  Coverage      3.66%   3.66%           
  Complexity       20      20           
========================================
  Files            36      36           
  Lines          1529    1529           
  Branches        254     254           
========================================
  Hits             56      56           
  Misses         1472    1472           
  Partials          1       1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Yasasr1
Yasasr1 previously approved these changes Jan 22, 2025
@ShanChathusanda93 ShanChathusanda93 force-pushed the tenant-perspective-authz-branch branch from 495af67 to a411e26 Compare January 23, 2025 06:15
@jenkins-is-staging
Copy link

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

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/12924601295
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/12924601295

@ShanChathusanda93 ShanChathusanda93 merged commit 368e256 into wso2-extensions:master Jan 23, 2025
5 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.

4 participants