Skip to content

Task 7 - #5

Open
nextsukhorutchenko wants to merge 6 commits into
mainfrom
task-7
Open

Task 7#5
nextsukhorutchenko wants to merge 6 commits into
mainfrom
task-7

Conversation

@nextsukhorutchenko

@nextsukhorutchenko nextsukhorutchenko commented May 22, 2026

Copy link
Copy Markdown
Owner

What was done?

Integrated client application with Import Service authorization:

  • Import CSV request reads authorization_token from browser localStorage
  • Import CSV request sends Authorization: Basic {authorization_token} header to /import
  • Added alerts for 401 and 403 responses in src/index.tsx

Additional scope:

  • Client displays alerts for 401 and 403 responses

Link to Import Service API:
https://qsutnud80j.execute-api.eu-west-1.amazonaws.com/prod/import

Link to Client Application:
https://ddiqx6yb3n1i1.cloudfront.net/admin/products

Link to BE PR:
nextsukhorutchenko/aws-shop-backend#3

How to test:
Open browser DevTools Console and run:

localStorage.setItem('authorization_token', 'bmV4dHN1a2hvcnV0Y2hlbmtvOlRFU1RfUEFTU1dPUkQ=')

Then open:
https://ddiqx6yb3n1i1.cloudfront.net/admin/products

Select a CSV file and click Upload file.

Test credentials:
Login: nextsukhorutchenko
Password: TEST_PASSWORD

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