You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✔️ 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:
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 headerAuthorization: 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:
Swagger Schema available at:
Swagger UI available at:
The text was updated successfully, but these errors were encountered: