I am a newbie and trying to set up Auth0 with AWS Identity provider. I have already spent a few days trying to understand what I am doing wrong but I can’t seem to figure out.
My S3 bucket policy allows public access and is below.
{ “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “AddPerm”, “Effect”: “Allow”, “Principal”: " ", “Action”: “s3:GetObject”, “Resource”: "arn:aws:s3:::sky-testwebsite/ " } ] }
I have an IAM role that allows access to the S3 bucket and has trust policy that allows the Identity provider to assume this IAM role.
On Auth0 my postback URL is my index.html file:
This is my test website: https://sky-testwebsite.s3.amazonaws.com/index.html and in the developers mode the error I see on the browser is as below.
GET https://s3.amazonaws.com/assets.auth0.com/client/dO0UKPiCNKTlE8NmFhfV28nTZ3m54KJT.js?t1552612787880 net::ERR_ABORTED 403 (Forbidden)
Can someone please suggest me what am I doing wrong? And how can I fix the error?
Thanks!