GithubHelp home page GithubHelp logo

Comments (6)

ottokruse avatar ottokruse commented on August 19, 2024

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.

fred97855 avatar fred97855 commented on August 19, 2024

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
image
Is there a way to see logs from the hosted UI?

from cloudfront-authorization-at-edge.

ottokruse avatar ottokruse commented on August 19, 2024

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.

fred97855 avatar fred97855 commented on August 19, 2024

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.

rpattcorner avatar rpattcorner commented on August 19, 2024

@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.

fred97855 avatar fred97855 commented on August 19, 2024

@rpattcorner I will put together an example and send over a repo asap :)

from cloudfront-authorization-at-edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.