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

Task 7. Authorization #35

Open
Guria opened this issue Nov 15, 2022 · 1 comment
Open

Task 7. Authorization #35

Guria opened this issue Nov 15, 2022 · 1 comment

Comments

@Guria
Copy link
Owner

Guria commented Nov 15, 2022

Task 7 assignment

Note for reviewers

Task 7 Artifacts (Pull Request #34)

Task 7.1

✔️ create a new service called authorization-service
✔️ create a lambda function called basicAuthorizer in the Authorization Service.
✔️ lambda has an environment variable with the following credentials: USER_GURIA=TEST_PASSWORD
✔️ basicAuthorizer lambda takes Basic Authorization token, decodes it and checks that credentials provided by token exist in the lambda environment variable.
✔️ lambda returns 403 HTTP status if access is denied for this user (invalid authorization_token) and 401 HTTP status if Authorization header is not provided.
✔️ credentials are not stored under VCS and provided to environment from repository encrypted secrets

Task 7.2

✔️ basicAuthorizer lambda is set to /import path of the API Gateway as lambda authorizer.

Task 7.3

✔️ request from the client application to the /import path has Basic Authorization header Authorization: Basic {authorization_token}
✔️ {authorization_token} is a base64-encoded GURIA:TEST_PASSWORD
✔️ client gets authorization_token value from browser localStorage

Additional tasks:
➕ client application should display alerts for the responses in 401 and 403 HTTP statuses.

Links to deployment

All PRs are merged. So app is deployed from main branch.

Web App deployed to Cloudfront and available at following addresses:

@VladOstk
Copy link

Good job, mark 6

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

No branches or pull requests

2 participants