Skip to content

Task 7#4

Open
evshipilo wants to merge 2 commits intotask-5from
task-7
Open

Task 7#4
evshipilo wants to merge 2 commits intotask-5from
task-7

Conversation

@evshipilo
Copy link
Copy Markdown
Owner

FE app - https://d3hm6ve0uhdsf6.cloudfront.net/
LocalStorage - key:authorization_token value:ZXZzaGlwaWxvOlRFU1RfUEFTU1dPUkQ=

1 - authorization-service is added to the repo, has correct basicAuthorizer lambda and correct serverless.yaml file
3 - Import Service serverless.yaml file has authorizer configuration for the importProductsFile lambda. Request to the importProductsFile lambda should work only with correct authorization_token being decoded and checked by basicAuthorizer lambda. Response should be in 403 HTTP status if access is denied for this user (invalid authorization_token) and in 401 HTTP status if Authorization header is not provided.
5 - Client application is updated to send "Authorization: Basic authorization_token" header on import. Client should get authorization_token value from browser [localStorage]
+1 - Client application should display alerts for the responses in 401 and 403 HTTP statuses.

Total: 6 points

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

Successfully merging this pull request may close these issues.

1 participant