Questions tagged [amazon-cognito]

Amazon Cognito is a reliable and efficient solution designed to streamline user identity management and data synchronization for mobile applications, ensuring optimal security and seamless coordination of app data.

Tips on fully terminating the client side session using NextAuth.js and AWS Cognito

I am currently utilizing Next.js alongside NextAuth.js in conjunction with an Amazon Cognito setup. My concern arises when I click on the sign-in link immediately after logging out, as my user is automatically signed in without being prompted for credentia ...

The AWS Cognito User Interface utilizes a hash in order to incorporate parameters during its invocation of the callback page

I'm encountering an issue with the AWS Cognito provided UI interface. When attempting to use the provided UI, I make a call to the endpoint using the populated URL: The issue arises after authentication when Cognito utilizes a # to return the required pa ...

To interact with Cognito in a React application, it is essential to provide the necessary Username and Pool

I'm currently working on creating a demo app using Cognito with React. I've been trying out the code available in this GitHub repository to experiment with it. However, I keep encountering the error message Username and Pool information required, and I'm ...

Maintaining Cognito user session in Vue.js

As I delve into learning Vue, I've taken on the challenge and found myself in a bit of a dilemma... I am currently working on implementing AWS Cognito user pools for authenticating sessions in my app. So far, I have successfully set up a Userpool in ...

Next.js Project Encountering AWS Amplify Authentication Error: "UserPool not configured"

I am currently developing a project using NextJS and integrating AWS Amplify for authentication with Amazon Cognito. However, I am facing an issue where an error message saying "Auth UserPool not configured" pops up when attempting to log in or sign up. I ...

Issue with SMS_MFA not being enabled due to missing delivery configuration in React and AWS Amplify

My React web application, powered by aws-amplify, interacts with AWS Cognito User Pool for user authentication. Users can choose to activate SMS MFA from the app settings. While attempting to enable SMS MFA using the aws amplify npm package, I encountere ...

Implementing Node.js microservices with AWS Cognito leveraging Amplify's best practices

I am currently working on developing a Node.js API that is broken down into several small APIs (microservices) communicating with each other through requests and responses. Additionally, I am utilizing Angular for the frontend. My next step is to enhance ...

The connection between Cognito identity and Mqtt is not possible within AWS IoT Core

The application is built using Angular. Upon logging in with Cognito, the application retrieves the user's CognitoUser data, including id token, access key, and session token. Next, the application connects to Iot Core to subscribe to or publish data on a ...

Adding the expiry date/time to the verification email sent by AWS Cognito

After some investigation, I discovered that when a user creates an account on my website using AWS Cognito, the verification code remains valid for 24 hours. Utilizing the AWS CDK to deploy my stacks in the AWS environment, I encountered a challenge within ...

Utilizing AWS Amplify to access detailed owner information beyond just their ID

Is it feasible to achieve something like this? How should the design be tailored for this specific use case? Do I need to incorporate a lambda function that includes the user (owner) in the post creation process? Seeking assistance on how to implement thi ...

Incorporating AWS-Cognito into Angular 2

I'm currently diving into the world of building web applications using Angular and AWS. My initial focus is on setting up authentication with AWS-Cognito. However, I've encountered some hurdles while trying to import and utilize the AWS-Cognito SDK. Here ...

Encountering a 500 Internal Server Error while attempting to upload to an AWS S3 bucket using Nuxt

I am facing an issue while attempting to upload a file to AWS S3 using aws-sdk v3 within a Vue Component of a Nuxt app. Here is the process I follow for the upload: <script> export default { ... methods: { onSubmit(event) { event.preventDefault( ...

Utilize Ionic Auth Connect to establish the currentSession and currentAuthenticatedUser on AWS Amplify

Problem with Amplify Configuration In the process of developing a new ionic app, our team decided to utilize AWS Amplify as our backend solution. To interact effectively with various services, we opted to use both "AMAZON_COGNITO_USER_POOLS" and "API_KEY" ...

Unlocking superior performance with AWS Amplify and NextJS 12 - The Surprising Fluctuation in Backend

My recent experience with AWS Amplify and Next.js 12 involved accepting a "performance improvement" that initially seemed successful. However, an unexpected issue arose where everything became linked to my dev backend environment post-performance improveme ...

The size of your request header section is too large and has exceeded the allowable limit

We have implemented AWS Amplify for our NextJS web application and are encountering errors only when attempting to load the deployed version on Amplify. Interestingly, there are no issues when running the app locally. https://i.stack.imgur.com/TacWk.png ...

Even after a user has been removed, the functionality of AWS Amplify Auth.signIn remains operational

I have successfully implemented authentication with AWS Cognito using Auth in AWS Amplify. I have managed to set up sign-in, sign-out, and sign-up functionalities. However, an issue arose when I realized that if I do not explicitly sign out, the user remai ...

Simulated AWS Cognito Environment

I'm looking to create BDD tests for my nodejs API that relies on AWS Cognito for user authentication. However, I'd prefer not to have to interact with the actual Cognito service each time my build is executed. Are there any efficient and seamles ...

What is the best way to securely store a JWT Token received from Cognito after logging in through the Cognito Hosted UI?

Our current architecture involves front end Angular and backend nodejs/express. This setup functions in the following order: User logs in to the site via Cognito Hosted UI Upon successful login, the user is redirected to our home page with a code sent in ...

Experiencing a lack of email delivery when using the "adminCreateUser" feature in AWS Cognito

My current challenge involves utilizing the `adminCreateUser` function to create a new User, but I am encountering an issue where the temporary password is not being sent to my email address. var RegisterUser = exports.RegisterUser = function (data) { v ...

Why do I keep encountering the error "global is not defined" when using Angular with amazon-cognito-identity-js?

To start, run these commands in the command line: ng new sandbox cd .\sandbox\ ng serve Now, navigate to http://localhost:4200/. The application should be up and running. npm install --save amazon-cognito-identity-js In the file \src&bso ...

AWS Cognito User Pools Event Trigger Object

Looking to create a unique verification message for new users registered in my AWS Cognito User Pool. I'm attempting to link a Lambda function with a "Custom message" trigger to achieve this. The challenge lies in identifying the exact format of the cust ...

Obtaining AWS Cognito token using AWS Amplify's UI-React

I'm currently developing a Next.js frontend and NestJS backend application, and I am configuring the login component using the @aws-amplify/ui-react library. Following the steps outlined in the documentation here. import { Amplify } from 'aws-amplify'; imp ...

Struggling to track user handler events of success or failure in Amazon Cognito

Seeking guidance as a newcomer to VueJS and Amazon-cognito, I am attempting to sign in through my straightforward VueJS application. Utilizing NPM and webpack, I have diligently followed the instructions detailed in amazon-cognito-auth-js Displayed below ...

Encountering difficulty while importing Cognito: "The variable 'AmazonCognitoIdentity' is not recognized."

As a beginner in Node JS, I have been learning from online examples and AWS documentation through their web-based lambda editor. However, when using the following code snippet, I encountered an error stating "AmazonCognitoIdentity is not defined". I would ...

I plan to securely store the verification code from Cognito into our database for future use and send the email at a later time

exports.handler = async event => { console.log(event); try { const { userName } = event; const { codeParameter } = event.request; let userParams = { userId: userName, codeParameter }; // Determine the reason for this function being i ...

Implementing AWS Cognito SDK in Node.JS

I am currently developing an API server using node.js that relies on AWS Cognito. Previously, we had a working version of this application on the client side, which utilized the AWS SDK. I am now faced with the challenge of migrating this functionality to ...

Struggling to modify the user password following authentication through Cognito

After creating a user using adminCreateUser, I encountered the challenge of NEW_PASSWORD_REQUIRED while trying to authenticate with adminInitiateAuth. How can I change the password in this scenario? I'm attempting to reset the password for a user with sta ...

Strategies for rapidly increasing user numbers in Amazon Cognito

Our team recently encountered an issue with hitting the request limit on Cognito due to trying to retrieve too many users at once. These users are grouped in game pools. Currently, our only method of obtaining users is through adminGetUser in parallel. Is ...

What steps do I need to take to activate the AWS Location Services map in a React application, allowing unauthenticated users through AWS C

Currently, I'm developing a react application that incorporates a map by utilizing AWS Location Services. Instead of relying on the tutorial's implementation of user authentication through AWS Cognito, which conflicts with our in-house authentication metho ...

Encountering a Glitch when Transferring a File to S3 utilizing Federated Identity via aws-amplify in React

When attempting to upload an image with a Facebook federated identity, I encountered an error: AWSS3Provider - error uploading Error: "Request failed with status code 403" Status Code: 403 Forbidden I noticed that the URL in the request, while the user is ...