1

The AWS Mobile React Starter Kit is great, but it doesn't let users see anything without logging in first. I'd like to build a web app where unauthenticated users can query parts of the database, but can't make any edits. I've tried poking around in the AWS configuration, but so far I've only broken the app, not gotten it to do what I want.

Can anyone advise with the general steps to follow?

What I've tried:

carpiediem
  • 1,918
  • 22
  • 41
  • 1
    I see, now, that there's an *UnAuthenticated Requests* header about 2/3 of the way down the project read me. Looks like I skimmed over that before. Trying it now. – carpiediem Apr 18 '18 at 02:59
  • Looks like I messed something else up; time to start over. **BadRequestException: The stack 'arn:aws:cloudformation:ap-southeast-1:##########:stack/MOBILEHUB-##########-Development/#####-####-#####-#####' in Amazon CloudFormation has been modified outside of the Mobile Hub. This stage 'Development' can no longer be modified inside of Mobile Hub.** – carpiediem Apr 18 '18 at 03:13
  • Yeah, I started over and followed the instructions under the *UnAuthenticated Requests* header, then changed the *PublicRoute* elements in index.js to redirect to /main/home by default. I wound up with the same vague error as before: **Error: Unauthenticated access is not supported for this identity pool.** – carpiediem Apr 18 '18 at 04:02
  • When I try making changes to the Cognito pool, I get this instead (again, as before): **Error: Invalid identity pool configuration. Check assigned IAM roles for this pool.** – carpiediem Apr 18 '18 at 04:13
  • 1
    To read: https://aws.github.io/aws-amplify/media/authentication_guide – carpiediem Apr 25 '18 at 04:18

0 Answers0