Summary
We want to leverage the API Gateway Authentication headers to apply role-based access to the Easy CLA services.
Background
The EasyCLA v2 system will reside behind the LF platform API Gateway. The REST services we develop will be protected by the Gateway and the ACS service. We need to leverage this by restricting access based on user roles.
Tasks
Example 1:
- LF Admin logs in
- Makes an API request to see the audit log
- Code reviews the roles/access for the user, see that user is the LF Admin role
- API allows all audit logs in the response
Example 2:
- A company manager for Google logs in
- Makes an API request to see the audit log
- The code reviews the roles/access for the user, see that user is the company
manager
- we look up the user’s company id
- pass the company ID to the backend to filter the audit log based on the company id
Acceptance Criteria
Demonstrate to the stakeholders.
References
See the LF Core Platform organization or the project service as an example.
Summary
We want to leverage the API Gateway Authentication headers to apply role-based access to the Easy CLA services.
Background
The EasyCLA v2 system will reside behind the LF platform API Gateway. The REST services we develop will be protected by the Gateway and the ACS service. We need to leverage this by restricting access based on user roles.
Tasks
as a function parameter
- Open and log into the LXF UI, from the console: https://lfx.dev.platform.linuxfoundation.org/home/dashboard
Example 1:
Example 2:
manager
Acceptance Criteria
Demonstrate to the stakeholders.
References
See the LF Core Platform organization or the project service as an example.