How to remember & autorefresh login token when using Amazon Web Services Cognito Userpool?

I have built a website that uses AWS Cognito with the Userpool functionality. If I leave the page, the login is forgotten, and after one hour the token expires. I'd like the login to be remembered...

Import Facebook users into AWS Cognito

I'm new to AWS Cognito, so I may be approaching this wrongly, but fundamentally I want to import users into a Cognito user pool from Facebook. So users would pay for access to my web application,...

AWS Cognito delete-custom-attributes?

There is add-custom-attributes command in cognito-idp but no delete-custom-attributes? How do I delete them?

AWS Cognito verification email not received by user account

While creating user in userpool, user invitation messages are sent with a temporary password but email verification messages is not being sent. I was creating a very simple setup to try out aws...

AWS Cognito and CORS Security Concern

I have a web client making requests to AWS Lambda via the AWS API Gateway. I'm using AWS Cognito, alongside Auth0, to authenticate users. My question is related to the CORS response headers from...

Terraform Definition of Cognito Identity Pool Auth/Unauth Roles

I've been trying to create a terraform script for creating a cognito user pool and identity pool with a linked auth and unauth role, but I can't find a good example of doing this. Here is what I...

AWS Cognito iOS trying to goto splash page instead of login page if there is no user logged in

I'm currently trying to integrate Amazon Cognito with my iOS app. I have the app delegate conform to the AWSCognitoIdentityInteractiveAuthenticationDelegate protocol and I understand when the user...

AWS Cognito user migration lambda in python, how to return custom error message

During the user migration I want to return "Incorrect username or password." as error message instead of "User does not exist" Have been searching on google for a while, cannot find out how to...

Angular + amazon-cognito-identity-js, why am I getting error: global is not defined

From a command line: ng new sandbox cd .\sandbox\ ng serve Open http://localhost:4200/. It works. npm install --save amazon-cognito-identity-js Inside \src\app\sign-up\sign-up.component.ts add...

Amplify "Unable to verify secret hash for client"

We have been using Amplify and Cognito to register our users for an Angular6 application deployed to Lambda. The client wanted to transition from email to username as primary user identification....

AWS CDK user pool authorizer

I'm trying to create an API gateway using the AWS-CDK and protect the REST endpoints with a Cognito user pool authorizer. I cannot find any examples how one would do this. I thought it should...

502 on AWS Cognito ListUsers with PaginationToken

Using AWSMibileHub to set up my backend. Working on an admin page that shows all the users from AWS Cognito. I’m using ListUsers to get user list and noticed 502 error on the request with a...

AWS Amplify: How to delete the environment, when resources are already partially deleted?

TL;DR: How to delete an amplify environment, when some resources of the service have been deleted manually in the console? So, I took a course on egghead to learn the aws amplify CLI....

Post Confirmation doesn't trigger lambda function

My step: I created user by calling the AdminCreateUser API. I use my custom login form to do the first login I change password (because I'm in FORCE_PASSWORD_CHANGE status) Now the user is...

How can one enable SAML federation in the Cognito Hosted UI without advertising their customer list?

I am building an enterprise app and federating signin using the Cognito Hosted UI solution, and people can sign up individually using any email, but they might also work for a company which has...

Why does my AWS Lambda Function return "Invalid JSON" error?

I have a lambda function that I wrote a few days ago that was acting totally fine when tested. After going to test it today (without changing any of the code), I receive the following error:...

Resending phone_number attribute verification code in AWS Cognito

Is there a way in AWS SDK CognitoIdentityServiceProvider to resend a phone_number attribute change verification code for a CONFIRMED user? I have set phone_number attribute to be verified in...

AWS Cognito OpenID/OIDC UserPool Identity : "username attribute mapping required"

i'm using Cognito's UserPool to login my users with an OpenID service. I've mapped the UserPool username attribute to the Federated identity's sub attribute (which was by default), but when trying...

User management in AWS Cognito User Pool using C# and .NET Core

How to manage users within an AWS Cognito User Pool using C # and .NET Core 3.x? Couldn't find anything in the documentation about it.

how to get the user attribute from aws cognito in c#

I am using AmazonCognitoIdentityProviderClient SDK. I am trying to get a custom attribute for user in cognito. from c# front end i am passing username , password and email id. is there any...

AWS Cognito - Create a user via API Endpoint in Postman

Does anybody know if I can make a request to create or a sign up a user in AWS Cognito user pool? For example, something like below is to display the login screen. But is there a POST request or...

Angular Production build error "ERROR in Cannot read property 'toLowerCase' of undefined"

While I am creating the production build using ng build --prod while compiling But working perfectly fine in case of development mode, How can I solve this? I am using .toLowerCase() in many...

How to use Amazon Cognito without Amplify

I'm just now diving into Cognito. The AWS setup has been fairly straight-forward, easy. We have a variety of apps, webapps, and services and we'd like those to make use of the Cognito service. ...

Receiving Invalid Grant Type Error Received From AWS Cognito When Supply Auth Code : How do I get Id and access tokens for testing?

I am unable to successfully acquire an id token/access token from my AWS cognito user pool when I supply an auth code. I have written a shell script (see below), and receive invalid_grant back...

An error was encountered with the requested page after user sign up

I am new to AWS cognito. I have a requirements to manage users though AWS cognito. Users can sign themselves up I am using hosted UI to achieve...

Swift - AWS Cognito using Amplify - How to get tokens after log in in swift?

Im struggling getting user token after successfully logging in. The only thing I got is the current userId and username, but I cant get in any point the user tokens. func login(userData:...

AWS-Amplify Auth: Error Failed to initialize OAuth, please check your awsconfiguration.json

Getting error while using amplify auth with social sign-in E/MyAmplifyApp: Could not initialize Amplify AuthException{message=Failed to instantiate AWSMobileClient,...

How do you wait on multiple XHR in Cypress that match the same intercept

In my app after login in from a clean state, there are a series of sync queries that are being fired to make sure that the local data is updated. There is a loading screen while this is happening....

MQTT can not connect to AWS server

I have an android app that was tested on mobile phones using Android 8/9/10/11/12, and Android 8/9/10/11 phones are working normally, but I can’t receive notifications on android 12. Can anyone...

404 error while adding lambda trigger in cognito user pool

I have created a SAM template with a function in it. After deploying SAM the lambda function gets added and are also displayed while adding lambda function trigger in cognito but when I save it...