Skip to content

Task 7: Add Basic Lambda Authorizer for Import API + Frontend Authorization Flow - #622

Open
skyisnotmylimit wants to merge 5 commits into
EPAM-JS-Competency-center:mainfrom
skyisnotmylimit:task-7
Open

Task 7: Add Basic Lambda Authorizer for Import API + Frontend Authorization Flow#622
skyisnotmylimit wants to merge 5 commits into
EPAM-JS-Competency-center:mainfrom
skyisnotmylimit:task-7

Conversation

@skyisnotmylimit

@skyisnotmylimit skyisnotmylimit commented May 28, 2026

Copy link
Copy Markdown

Summary

This PR implements authorization for the Import Service using a custom Lambda authorizer and updates the frontend import flow to send Basic Authorization from localStorage. It also adds user-facing alerts for 401 and 403 responses.

What was changed

Frontend

Added Authorization header on import request using localStorage authorization_token in src/components/pages/admin/PageProductImport/components/CSVFileImport.tsx.
Added a token helper panel on Import page to:
Generate valid token
Save custom token
Clear token for 401 test
in src/components/pages/admin/PageProductImport/PageProductImport.tsx.
Added global Axios response handling for 401 and 403 alerts in src/index.tsx.

Links

CloudFront url: https://d1rkvwup4volu5.cloudfront.net/
Backend pr: skyisnotmylimit/aws-js-practioner#5

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.

2 participants