Category "amazon-cognito"

What is the best way to test secure routes on APIs that requires authentication while using Cognito OAuth with MFA?

I am using AWS Cognito with MFA and I can't use an actual user with a session to test the routes in with supertest testcases. What is the best practice for test

Facebook account linking via Amazon Cognito Userpool

I'm trying to implement account linking with Cognito userpool as the IdP. I'm facing the redirect mismatch error when I click the log in button which redirects

Getting user ID in lambda function (go 1.x) from AWS API Gateway

I updated the API (rest) via the amplify CLI to add a path and function (go 1.x), and within the function, I was able to retrieve the user ID via the following:

AWS Cognito - Setting default account name in MFA authenticator apps

I have set up TOTP MFA for my app with AWS Cognito. The account name in the authenticator app is being set to 'AWSCognito' as you can see in the screenshot belo

AWS Cognito how to query for the JWT Token after receiving an authorization code

my application requires an authorization code grant flow integration with Cognito and the website responded to me that Auth-Code accordingly. https://<poolNa

In AWS Cognito or Amplify Auth, can I create a user from a uid, without user interaction, similar to the Firebase Auth "custom token" approach?

I'm migrating a web app from firebase to Amplify. In firebase, you can silently sign-up / sign-in a user without any user interaction or password, as long as yo

How can I diagnose the cause of AWS Cognito's SAML assertion processing errors?

I am trying to integrate AWS Cognito with a third-party SAML SSO Identity Provider. The third-party IdP is responding with a successful SAML assertion upon logi

Cognito throwing Username should be an email

I am attempting to build a lambda function connected to an API gateway POST method that will allow users to create and register cognito users within a given poo

How to customize Sign Up/In validation messages in AWS Cognito Hosted UI

I am using AWS Cognito Hosted UI for authentication purposes in my project. In case of some validation error, it shows very technical error messages. For exampl

AWS Cognito | On globalSignOut user is not authenticated

When a user is logging out of AWS Cognito using globalSignOut, I'm getting a "User is not authenticated" error. To authenticate a user I need to pass the auth

Exposing error messages from Auth.forgotPassword and other Auth methods

Is there a way to see all available error messages that are returned from the @aws-amplify/auth Auth methods? When calling Auth.forgotPassword with the correct

Cognito User Pool Authorizer defined in openapi without hardcoded values

I have a API Gateway Rest Api resource defined with this template: AWSTemplateFormatVersion: '2010-09-09' Description: "Api gateway" Resources: ApiGateway:

how to set expiration of password in aws-cognito with node js

I am trying to do something like - All user passwords should expire every 90 days. Users should be forced to reset their expired passwords upon login to sha

chrome: why does localStorage also contains sessionStorage data?

I am using AWS Cognito for my web app and testing with Chrome browser. I started with the default AWS Cognito / Amplify configurations, such that the tokens are

How to resolve AWS Cognito SDK error: "Client <XYZ> is configured for secret but secret was not received?"

I'm asking this question because I was surprised how little information I could find from Googling. However, I was able to track down what I think is the root c

How to use Amplify for implicit federated oauth w/ cognito *without* hosted UI

(Due to the confusion with what is amplify I'm borrowing the below from another post) I want to use the feature federation of a user pool NOT an identity pool I

AWS boto3 Cognito Invalid Access Token Error

I have a Python lambda function processing an API request from a user to change their password. The API for change_password is as follows response = client.chan

Login option is not available. Please try another one

I followed the Amplify instructions to add a email login, now I am adding a Google login, and I'm getting this message instead: Login option is not available. P

Creating different User Types in AWS Amplify

I am planning to use AWS Amplify as a backend for a mobile application. The App consists of two User Types (UserTypeA,UserTypeB). They have some common data poi

Where I can find an UWP application signing in users with AWS Cognito

I need an Universal Windows Platform (UWP) application to let users loging in using AWS Cognito. Just to explain a little bit better, I'll give you this example