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

Retrieve 'my' workspaces #208

Closed
2 tasks
christoferlof opened this issue Jun 8, 2021 · 0 comments · Fixed by #376
Closed
2 tasks

Retrieve 'my' workspaces #208

christoferlof opened this issue Jun 8, 2021 · 0 comments · Fixed by #376
Assignees
Labels
api Composition Service API auth Authentication and authorization story Stories are the smallest unit of work to be done for a project.
Milestone

Comments

@christoferlof
Copy link
Contributor

christoferlof commented Jun 8, 2021

Description

As a researcher
I want to see the list of workspaces that I have access to
So that I more easily can find them rather than seeing all workspaces within the organization

Acceptance criteria

  • GET /workspaces only returns workspaces that the current user is assigned researcher or workspace owner role to
  • GET /workspaces returns all workspaces for users that have the role TRE Administrator

Note on implementation

We'll rely on the identity provider's capability to list applications a user has access to. For Azure AD we should query the Graph to get appRoleAssignments for the current user, and then filter/join by resourceId to match with oidcApplicationId on each workspace.
This will likely require us to create an abstraction or client for different Idp's. Atm we'll only implement Azure AD.

Depends on #307 to be finished

@christoferlof christoferlof added the story Stories are the smallest unit of work to be done for a project. label Jun 8, 2021
@christoferlof christoferlof added this to the Next milestone Jun 8, 2021
@christoferlof christoferlof added auth Authentication and authorization api Composition Service API labels Jun 8, 2021
@christoferlof christoferlof modified the milestones: Next, June 2021.2 Jun 10, 2021
@TessFerrandez TessFerrandez self-assigned this Jun 27, 2021
@TessFerrandez TessFerrandez linked a pull request Jun 28, 2021 that will close this issue
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 story Stories are the smallest unit of work to be done for a project.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants