Comments (6)
Hi! Can you provide some more details on what goes wrong?
- What is the error message from the Cognito hosted UI?
- What do you see in the logs of the Lambda@Edge function? Check the logs of the checkAuth and parseAuth functions please?
Could you try creating the user in the AWS Console first and then sign in? (Instead of "self registering" the user through the Hosted UI). Does that work?
from cloudfront-authorization-at-edge.
Hi @ottokruse,
I've attached a screenshot of the error, as you can see its not very helpful :(
There don't appear to be able logs generated by those, when using the hosted UI
Is there a way to see logs from the hosted UI?
from cloudfront-authorization-at-edge.
You can't see the logs from the hosted UI––it should return it's error clearly to you. Check if you maybe see it in the URL, Cognito sometimes puts the error there, as a query param.
For debugging this I recommend to open your Browser's network panel (press F12) and inspect all the redirects happening. Have a look at the HTTP requests: which URL's do they go to, which redirects are happening, does anything seem to be off?
from cloudfront-authorization-at-edge.
Hi @ottokruse - I finally managed to track down the cause. I had extracted all this into a Terraform project, and somehow Terraform was deploying the configuration for "How do you want your end users to sign in?" Like nothing was selected (not even sure how thats possible?) So I think when the user was being registered, something within Cognito itself died causing the error. Now it has config options selected, it works perfectly.
Thanks
from cloudfront-authorization-at-edge.
@fred97855 , if you see this comment I'd very much like to see how you implemented this framework in Terraform!
from cloudfront-authorization-at-edge.
@rpattcorner I will put together an example and send over a repo asap :)
from cloudfront-authorization-at-edge.
Related Issues (20)
- CloudFormation did not receive a response from your Custom Resource HOT 19
- Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”) HOT 2
- Refresh issue after token expires HOT 8
- On signout Required String parameter 'redirect_uri' is not present HOT 5
- Possible Open Redirect (CWE-601) in sample code HOT 2
- nonce cookies are not expired HOT 1
- [Feature request] Support multiple Cognito user pool clients HOT 4
- custom domain is not redirecting to cognito hosted ui HOT 1
- Getting blocked by CORS policy but unable to figure out the source HOT 5
- Node version bump HOT 7
- Custom IDP with Amplify and Auth at Edge HOT 9
- Fail on delete of the stack HOT 3
- Function must be in an Active state error on deploying the solution HOT 7
- Errors from Lambda when destroiyng the stack HOT 2
- Cognito TAGS HOT 1
- How Do I add User Pool attributes to Cookies? HOT 1
- A potential risk in cloudfront-authorization-at-edge which can be used to upload malicious code. HOT 4
- Having the ability to tune logs HOT 1
- Deployment to eu-west-2 fails with error: Encountered a permissions error performing a tagging operation HOT 4
- Missing User-Agent header in Post request to cognito HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudfront-authorization-at-edge.