Git Product home page Git Product logo

Comments (7)

lusentis avatar lusentis commented on August 15, 2024

In my experiments, I can login only with users who are verified. You can manually verify user from the console or via api; I suppose you can setup an hook and automatically verify via Lambda upon sign up.

Simone

from amazon-cognito-identity-js.

itrestian avatar itrestian commented on August 15, 2024

Hi Steve,

In the case you mention where your users have no email or SMS, you need to write a lambda hook that will auto confirm them. You cannot authenticate the users because they are unconfirmed as of yet. The error is just a general error trying to prevent an information leak.

Ionut.

from amazon-cognito-identity-js.

SteveALee avatar SteveALee commented on August 15, 2024

@lusentis @itrestian yes, If I manually confirm them the the login works.

I did wonder if the error was deliberately obscure, Not much help when you are developing though. I feel like I'm missing documentation on the important details.

I was planning to leave Lambda for the next iteration, especially as this was all supposed to be released 2 weeks ago :( Are there any good examples of what I need to do? Looks like I have another learning curve to get up quickly. From the little I know I think I used node and the JS api? I assume it's not possible form the browser.

Thanks again.

from amazon-cognito-identity-js.

SteveALee avatar SteveALee commented on August 15, 2024

I see there are triggers for the user pool but none of then are right for this purpose. Though at a pinh 'pre signup' might just work. I'll give it a go

from amazon-cognito-identity-js.

SteveALee avatar SteveALee commented on August 15, 2024

Looks like the answer I want is provided in the docs - https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html?icmpid=docs_cognito_console

from amazon-cognito-identity-js.

SteveALee avatar SteveALee commented on August 15, 2024

What are the json blocks provided after each example lambda function, There's nowhere in the web UI to put them, and naturally I get syntax errors if put in after the function in the code editor

Do we need to put them someplace? are is used somewhere like the CLI to define the function config and not needed if setup via the pools triggers feature

Interestingly they seem to include the validation data we can add in the test edit box. They also seem incomplete as have .... in them. That makes me think they are just examples of something not required to setup the function

from amazon-cognito-identity-js.

itrestian avatar itrestian commented on August 15, 2024

Hi Steve,

Basically the json after each example lambda function is input data that can be used when executing the lambda function. As you said, you don't need them to setup the function in the first place.

Ionut.

from amazon-cognito-identity-js.

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.