Questions tagged [aws-userpools]

219 questions
0
votes
0 answers

AWS Cognito for Slack Clone

I'm not actually trying to clone slack, it's just an analogy I'm trying to understand how to manage users who have their own account context but can also have a one-to-many context with organizations. Since I'll have more than 25 organizations user…
Schalton
  • 2,867
  • 2
  • 32
  • 44
0
votes
3 answers

JAVA- AWS Cognito -Check if a user exists in Cognito User pool

I want to allow a user to enter their username/password in a field. Upon continuing, I want to run a check to see if that user already exists in the user pool. If they do, log them in and continue with app, if they do not, move to account creation…
0
votes
0 answers

Check if Users exist in two AWS Cognito Userpools by email

we are currently in the process of developing a platform, split in two "themes", where we use Cognito for the user system and we need to have two user pools because the user should be able to have one account for each theme. My question is, is it…
0
votes
0 answers

Implementation of Oauth2 with Java springboot app and angular on ui side

there is my application in which I am using Angular on the UI side and on the API side I have a spring boot app and for managing users- using the AWS Cognito user pool. currently, I am able to connect with my user pools in my application, which…
0
votes
1 answer

How to configure AWS user cognito authentication flow for generating identity token,access token in Java sdk backend?

I am using AWS Cognito authentication for signing mechanism. In order to obtain the credentials(access,secret and session token), we need to obtain identity token. I am having username,password,clientId,userPoolId,identityPoolId information.…
0
votes
1 answer

How do I migrate users from RDS mysql databse to aws cognito user pools?

I have an ios app and when one signs in, the uath happens via cognito(which is in place), additionally since all my user data is in rds mysql, I additionally want it to check if for the user, the email id is present in rds mysql db or not.For this I…
0
votes
1 answer

Angular 10 - AWS Amplify Auth - AuthError - Error: Amplify has not been configured correctly

Deployed SPA application on to AWS Amplify, and enabled Auth. getting below error package.json "dependencies": { "@angular/animations": "^10.0.14", "@angular/cdk": "^8.1.1", "@angular/common": "^10.0.14", …
0
votes
0 answers

Amazon Cognito User Pools - Setting up Users + Roles + Permissions

I'm looking into AWS Amplify and bumped into Amazon Cognito. It deals with the authentication part pretty well, but I'm struggling to understand how app authorization works (i.e. what my users can/can't do within my app). Does anyone know how may I…
MTran
  • 1,799
  • 2
  • 17
  • 21
0
votes
1 answer

How to pass Cognito UserPoolID, client secret to AWS Lambda during Cloudformation script execution?

I create Cloudformation script which creates AWS Cognito and deploys a set of AWS Lambda. Cloudformation yaml looks like below: UserPool: Type: "AWS::Cognito::UserPool" Properties: UserPoolName: !Sub ${EnvPrefix}-smartshoesuserpool …
0
votes
1 answer

Check whether CognitoUser has specific permission

I'm trying to set up a protected route on my webapp. For this, I've create a Group, Admins, in my User Pool. I've assigned this group to the WebappAdmins role, which contains custom policies: { "Version": "2012-10-17", "Statement": [{ …
0
votes
1 answer

Defining IAM Roles for Identity Pool with CloudFormation to access s3 bucket

I'm trying to define authorized/unauthorized roles for Identity Pool connected to User Pool with Cloud Formation. I'm using these instructions: https://docs.amplify.aws/lib/storage/getting-started/q/platform/js#using-amazon-s3 But so far I have not…
0
votes
1 answer

InvalidUserPoolException in AWS AppSync

I have an AppSync API which runs a series of GraphQL queries/mutations. The sequence was working fine until it randomly threw a 500 error with this in the response header: x-amzn-ErrorType=InvalidUserPoolException. Additionally, there was a mutation…
0
votes
1 answer

AWS Set Cognito User Pool Identity Provider to Other User Pool

I have set my user pools to use other user pools as an OIDC IdP. I have get Endpoint from https://cognito-idp.(Region).amazonaws.com/(Pool_Id)/.well-known/openid-configuration. I have set callback url to https://www.google.com. But when I use Hosted…
Tanakorn C.
  • 19
  • 1
  • 1
  • 5
0
votes
0 answers

(Where to) Create AWS CognitoUserPool in an Angular 8 application

From the AWS Cognito documents: https://aws.amazon.com/blogs/mobile/accessing-your-user-pools-using-the-amazon-cognito-identity-sdk-for-javascript/ AWSCognito.config.region = 'us-east-1'; var poolData = { UserPoolId : '...', // your user pool…
JoshuaESummers
  • 493
  • 2
  • 7
  • 24
0
votes
1 answer

Unable to connect with API Gateway using Cognito-issued access tokens

The doc here says, you can connect with AWS API gateway with either the access token or the idToken issued by the cognito. I am using amazon-cognito-identity-js for one of my Angular project. Once I login, I receive three tokens viz. accessToken,…