Questions tagged [amazon-cognito]

Amazon Cognito is a simple user identity and data synchronization service that helps securely manage and synchronize mobile app data.

Amazon Cognito lets you add user sign-up, sign-in, and access control to your web and mobile apps quickly and easily. Amazon Cognito scales to millions of users and supports sign-in with social identity providers, such as Apple, Facebook, Google, and Amazon, and enterprise identity providers via SAML 2.0 and OpenID Connect.

Work Offline

You can use the optional Amazon Cognito client SDKs to automatically create a local data store to cache user app data on the device. This means your app can keep reading and writing data regardless of the device connectivity state.

Store and Sync across Devices

With Amazon Cognito you can easily synchronize app data across all of an end user’s devices. Amazon Cognito manages the complexity of conflict resolution and intermittent network connectivity so that your app can always deliver a great user experience.

Control Access to AWS Resources

You can use the unique user identifiers that Amazon Cognito generates in your access policies to enable or restrict access to other AWS resources on a per-user basis.

Safeguard AWS Credentials

When you use Amazon Cognito, the service takes care of all the steps necessary to create a unique identifier for your app’s users and retrieve temporary, limited privilege AWS credentials.

Interaction with other Amazon services AWS Cognito can interoperate with AWS SES, AWS SNS, AWS Lambda, and more.

http://aws.amazon.com/cognito/

7147 questions
3
votes
3 answers

Serverless Framework with AWS cognito generates CORS error

I get this error message from the Angular frontend and I am not authorized to touch my lambda code: `Access to fetch at 'https://testapicd.***.***.com/localization/v1/role' from origin 'https://localization.test.***.***.com' has been blocked by CORS…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
3
votes
3 answers

AWS Cognito - run another lambda after migration lambda has run

Cognito has a migration lambda that allows us to confirm a user in our db. They send the email and PW to Cognito, the lambda fires, we verify matches, and the user is entered into Cognito. At this point - behind the scenes - Cognito generates a…
JapanRob
  • 354
  • 3
  • 16
3
votes
2 answers

AWS Cognito rules can't match the drop-in auth UI using aws amplify (Android)

To keep my app simple for now, I decided to use the drop-in auth flow by AWS Amplify, instead of creating my own sign-up/sign-in flow. This is how my app AuthenticationActivity looks, using the drop-in auth for Android when creating a new…
3
votes
2 answers

AWS Amplify user session doesn't expire in ReactJS

I'm working on creating a serverless website using ReactJS, with AWS Amplify for authentication, and AWS Cognito for the user pool. I'm trying to get the site to sign users out if they haven't been active on the site for an hour (or if they close…
Buttlet
  • 191
  • 2
  • 14
3
votes
2 answers

How to authenticate API calls with Cognito using Facebook?

I want to authenticate users using Cognito, with option to use Facebook. User can sign_in/sign_up using either of those options. I have created Cognito User Pool and Cognito Federated Identity, and also I have created Facebook App for…
Tomasz Giba
  • 507
  • 1
  • 8
  • 22
3
votes
1 answer

Cloud Formation not working: SaaS-identity-with-Cognito Template

I'm getting the following error when I run the cognito quickstart stack: Embedded stack arn:aws:cloudformation:eu-west-1:950742359761:stack/SaaS-identity-with-Cognito-IdentityStack-17TE8ATW0MEDM/35414bc0-2dab-11e9-801f-02f49d781af6 was not…
3
votes
1 answer

AWS Cognito NEW_PASSWORD_REQUIRED challenge requiring address, but it dosen't seems to accept any form of address types

Im trying to implement a spring boot back end for cognito, I managed to create one and perform signing in, after the sign in i got to the new password is required to change the default password, so I have submitted my request but got an exception…
Khaled
  • 529
  • 8
  • 19
3
votes
0 answers

AWS Cognito SMS 2FA: Invalid code or auth state for the user

To reproduce, I'm entering the email address of a confirmed user and the password of the confirmed user accepting the error: Missing required parameter SMS_MFA_CODE because this.state.code is an empty string when it is passed to…
AlleyOOP
  • 1,536
  • 4
  • 20
  • 43
3
votes
1 answer

Should I federate cognito user pools along with other social idps, or have social sign in via the userpool itself

I am building a social chat application and initially had a cognito user pool that was federated alongside Google/Facebook. I was storing user data based on the user-sub for cognito users and the identity id for google/facebook. Then in my…
3
votes
0 answers

laravel user authentication using cognito token

Currently I developing web application client using laravel 5.7. The web client is thin and mainly processing via REST API from AWS gateway. The user authentication also handle by Cognito user pool via AWS gateway (which returned access, refresh…
JohnnyCc
  • 525
  • 1
  • 8
  • 23
3
votes
1 answer

Test AWS Cognito login with Postman

I'm trying to test the Lambda functions that I have created and which sit behind a Cognito login. My Lambda functions require that cognitoIdentityId is set in order to identitfy the user. I've been following the Use Postman to Call a REST API…
Andrew Lynch
  • 1,297
  • 3
  • 14
  • 25
3
votes
2 answers

alternative to pagination for aws client cognito list_users() function

in order to list all users of a cognito user-pool, I thought of using boto3's client.list_users()-function including pagination. However, if I call print(client.can_paginate('list_users')), False is returned since this function list_users() is not…
C.Tomas
  • 451
  • 2
  • 7
  • 15
3
votes
1 answer

How to support multi-lingual email in AWS Forgot Password scenario

I am using AWS Cognito to manage my users and would like to control the phrasing of the email that is sent to the user in the "Forgot Password" flow. I am basing my solution on…
3
votes
1 answer

Message Template placeholders on AWS Cognito

I'm trying to configure AWS Cognito to send a verification email containing a custom one-click link. Following this guide I created this link into my template: Click on the link Since…
3
votes
1 answer

Node.js, AWS Cognito - Login on front end, user verification in back end

I have an application who consist of a frontend Angular and backend Node.js. I'm using AWS Cognito to authenticate on the frontend, however, I need to know if the user is authenticated in my Node.js backend to allow some routes. Right now I have two…
Raphael
  • 563
  • 1
  • 10
  • 22