Questions tagged [aws-userpools]
219 questions
1
vote
1 answer
Terraform Cognito Identity Pool
I'd like to add a Cognito User Pool and Identity Pool using Terraform. The current error I have is that the Identity Pool provider's name is incorrect. What's the proper name for a Cognito User Pool in an Identity Pool?
I've use both the name of the…

Tyler Norlund
- 388
- 2
- 17
1
vote
0 answers
How to provide Federated authentication with Tenant's corporate IdP using Cognito user pool
It's a multi-tenant B2B SaaS application. How can I provide the Ability to provide Federated authentication with Tenant's corporate IdP for some tenants only if they choose to? For other tenants, basic UN/Password flow is required.
Do I need to…

systemdebt
- 4,589
- 10
- 55
- 116
1
vote
1 answer
Boto3 `initiate_auth` Raises `NotAuthorizedException` for Valid Refresh Tokens
We have secured our Chalice endpoints with a Cognito authorizer and are able to access it by passing a valid ID Token in the Authorization header.
Below is our code for securing an endpoint:
authorizer = CognitoUserPoolAuthorizer(
…

Floating Sunfish
- 4,920
- 5
- 29
- 48
1
vote
1 answer
Amazon Cognito "RespondToAuthChallenge" - returns a NotAuthorizedException, Incorrect username or password
In cognito user pools I have two different groups: Admin & User. I want to allow admin users to create cognito user, so I created new user with AdminCreateUser method of CognitoIdentityServiceProvider.
Ref Link -…

Madhuri
- 1,060
- 5
- 17
1
vote
1 answer
Authenticate AppSync queries console with Cognito User Pools
I am trying to authenticate Queries playground in AWS AppSync console. I have created User Pool and linked it to the AppSync API, I have also created an App Client in Cognito User Pool (deployed using CloudFormation). It appears under Select the…

RVid
- 1,207
- 1
- 14
- 31
1
vote
1 answer
AWS Cognito with CloudFormation - InvalidParameterException on schema sttributes
I'm trying to create a Cognito User Pool with CloudFormation but keep getting the following error upon creation:
Required custom attributes are not supported currently. (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code:…

Joel Barenco
- 323
- 1
- 11
1
vote
1 answer
How to get AD groups returned from AWS Cognito response?
I'm using a third party provider PingIdentity which is tied into my corporate AD groups. PingIdentity has been configured to send AD groups associated with the user that is logging in. On the AWS side, I'm using Cognito UserPools and I've added…

gladiator_flow
- 53
- 2
- 7
1
vote
0 answers
Android SDK for AWS cognito userpool
We are using AWS Cognito userpool with Custom OIDC Provider. We tried AWS Amplify SDK for generating access tokens using the userpool, but looks like it does not support this. Is there any alternative SDK for Android using this setup to authenticate…

Prasanth
- 43
- 5
1
vote
2 answers
AWS Cognito UserPool - Recovery Option
I do see the RecoveryOption listed here
https://docs.amazonaws.cn/en_us/AWSCloudFormation/latest/UserGuide/aws-properties-cognito-userpool-recoveryoption.html
But the in UserPool, I don't see…

Nghia Do
- 2,588
- 2
- 17
- 31
1
vote
0 answers
Amazon Cognito User Pool And Facebook Login in Android
I am using CognitoUserPool (com.amazonaws.mobileconnectors.cognitoidentityprovider.CognitoUserPool) and I use the method getSessionInBackground for login CognitoUsers and signUpInBackground for create users.
For example, for login:
CognitoUser…

Alex Albalá
- 93
- 1
- 9
1
vote
1 answer
Amazon STS vs Identity pool for granting access to AWS resource
I am trying to set up different user groups in the AWS user pool and grant them access to AWS resources based on the group they belong to I have two options.
Create two user groups in the user pool and associate respective roles to it. I can assume…

code_code
- 119
- 2
- 11
1
vote
2 answers
Getting "AttributeError: 'CfnUserPool' object has no attribute 'user_pool_id' " error
I am trying to create "CfnUserPoolClient" object using AWS doc -https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_cognito/CfnUserPoolClient.html
I have created "CfnUserPool" object like this -
_cognito_user_pool =…

Nitesh
- 1,477
- 5
- 23
- 34
1
vote
1 answer
AWS Cognito: Restrict users to a single domain using lambda function - receiving error
I have an AWS Cognito user pool that I'm using for oauth sign-in with Google inside a React web app with amplify auth. I want to restrict sign-in to Google accounts from my company's domain, so I created a custom lambda function (below) and…

JMLdev
- 846
- 2
- 10
- 21
1
vote
2 answers
swift: AWSCognitoIdentityInteractiveAuthenticationDelegate methods are not called in the login view controller
I am trying to login using AWSCognito User pool but the AWSCognitoIdentityInteractiveAuthenticationDelegate methods are not being called. Here is my code, where am I doing wrong?
import UIKit
import AWSCognito
import…

Sharmin Khan
- 177
- 2
- 13
1
vote
0 answers
Is there a way to login a cognito user which is federated by open id connect in Android?
I'm attempting to use an external OAuth2 login provider (like Auth0) through Cognito User Pools.
This is using the flow described here:
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-social-idp.html
I am opening a…

Andy M
- 309
- 2
- 9