Skip to content

Implement conditional workspace authorization#376

Merged
TessFerrandez merged 2 commits into
developfrom
tessferrandez/access-service
Jun 28, 2021
Merged

Implement conditional workspace authorization#376
TessFerrandez merged 2 commits into
developfrom
tessferrandez/access-service

Conversation

@TessFerrandez
Copy link
Copy Markdown
Member

PR for issue #307, #221 and #208

What is being addressed

  • API should check if user is either owner or researcher on the workspaces to determine if the user should be able to see the workspace info

How is this addressed

  • When the user is authenticated - the users role assignments are retrieved and stored in the user object
  • When the user attempts to retrieve info about a single workspace, its role assignments are checked against the workspaceowner and workspaceresearcher roles on the workspace
  • When the user attempts to retrieve info about multiple workspaces, its role assignments are checked against the workspaces to filter out which ones the user can see
  • Tests related to the this functionality are created and updated

@TessFerrandez TessFerrandez self-assigned this Jun 28, 2021
@TessFerrandez TessFerrandez added api Composition Service API auth Authentication and authorization labels Jun 28, 2021
@github-actions
Copy link
Copy Markdown

Unit Test Results

  1 files    1 suites   2s ⏱️
66 tests 66 ✔️ 0 💤 0 ❌

Results for commit d594561.

Copy link
Copy Markdown
Member

@tompaana tompaana left a comment

Choose a reason for hiding this comment

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

LVGTMTHX

@TessFerrandez
Copy link
Copy Markdown
Member Author

LVGTMTHX

WTYVMSFRTPR

@TessFerrandez TessFerrandez merged commit d9719b3 into develop Jun 28, 2021
@TessFerrandez TessFerrandez deleted the tessferrandez/access-service branch June 28, 2021 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api Composition Service API auth Authentication and authorization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement AUTH component for AAD Enforce auth on /workspaces/{workspace_id} endpoint Retrieve 'my' workspaces

2 participants