Skip to content

AWS amplify authentication

0

I have an AWS amplify app which is publicly viewable. I want to create one AWS amplify app for one user. I want to make in such a way that the user initially can only access /home and /changepassword paths. Only after they set the username and password they can access /path1 and /path2. Once they update the change password then they can access the entire website only using the usename and password provided. Else, they can't acces the entire website including /home, /changepassword. Only one user can access the Amplify app

asked 2 months ago65 views
1 Answer
0

You can implement this requirement in AWS Amplify by integrating Amazon Cognito authentication and applying route‑level access controls to ensure that only authenticated users who have successfully completed the mandatory password change can access protected paths. While Amplify provides fine‑grained authorization capabilities, enforcing a “single user” model must be achieved by limiting Cognito to a single account and managing access through the application’s routing and authorization logic.

https://docs.aws.amazon.com/amplify/

https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html

https://docs.aws.amazon.com/amplify/latest/userguide/access-control.html

EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.