Comments (7)
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.
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.
@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.
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.
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.
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.
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)
- Can I use my own login page in sample web page demonstrates?
- CognitoIdentityCredentials, Access Denied error, not authorized to perform iam:PassRole??? HOT 2
- AWS Cognito SDK required even if AWS SDK is already imported HOT 1
- Incompatibility with AWS SDK >=2.178.0 HOT 3
- How to use the Lambda triggers in cognito-identity-js
- InvalidAction: The action or operation requested is invalid. Verify that the action is typed correctly.
- enableMFA failing (user is not authenticated) when user is logged in HOT 2
- Need clarification on entire TOTP setup process HOT 2
- Question: With the use case 4
- Cannot reset password for the user as there is no registered/verified email or phone_number HOT 3
- Uncaught TypeError: Cannot set property 'createCredentials' of undefined HOT 2
- How can you require verification of Phone Number and Email before issuing tokens from InitiateAuth call?
- Humbly request to re-write this SDK in today's javascript standard HOT 1
- How to tell if ID & access tokens are expired? How do we refresh? HOT 2
- InvalidParameterException: TIMESTAMP format should be EEE MMM d HH:mm:ss z yyyy in english. HOT 1
- Use this library without a cognito pool, just a federated identity pool
- TypeError with AdminConfirmSignUp HOT 2
- Cookie Storage Limits on Safari HOT 1
- Refresh access and id tokens in a React/Angular SPA HOT 1
- configure refreshToken expiration
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 amazon-cognito-identity-js.