aws-userpools

Cognito pre-authentication trigger

浪尽此生 提交于 2021-02-11 12:44:53
问题 is it possible to catch successful/unsuccessful login attempts of users in pre authenticaztion lambda trigger? I logged the event returned after user logs in and both fail/success login attempts displays the exact same response. 来源: https://stackoverflow.com/questions/61214765/cognito-pre-authentication-trigger

How could I generate temporary credentials using Cognito Identity pool for accessing aws services?

馋奶兔 提交于 2021-02-07 09:58:15
问题 I have a cognito user pool and identity pool. I have created an user in user pool. I got the tokens i.e. access, refresh, id tokens using lambda for that user. Now I want to generate the temporary credentials i.e. access key and secrete access key for that user to access the aws services. How could I do this? This is piece of code i used to generate tokens. var authenticationDetails = new cognito.AuthenticationDetails(authenticationData); var userData = { Username : '*****', Pool : userPool }

Custom attribute not passed into ID_TOKEN created by AWS Cognito

孤者浪人 提交于 2021-02-06 09:54:21
问题 I am not able to get custom attribute in ID_TOKEN returned from AWS Cognito after successful user login. Steps I tried : 1.Created user pool 2.Created app client and checked the custom attribute( customattrib1,customattrib2 ) User Pool screen : Check custom attribute in app client config 3.Created user using admin-create-user api Below image shows the value for user attributes: 4.Signed in user using aws-cognito-auth.js in client app.The ID token returned do not contain the custom attribute.

Custom attribute not passed into ID_TOKEN created by AWS Cognito

我只是一个虾纸丫 提交于 2021-02-06 09:54:06
问题 I am not able to get custom attribute in ID_TOKEN returned from AWS Cognito after successful user login. Steps I tried : 1.Created user pool 2.Created app client and checked the custom attribute( customattrib1,customattrib2 ) User Pool screen : Check custom attribute in app client config 3.Created user using admin-create-user api Below image shows the value for user attributes: 4.Signed in user using aws-cognito-auth.js in client app.The ID token returned do not contain the custom attribute.

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

…衆ロ難τιáo~ 提交于 2021-01-29 22:20:35
问题 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. However,when I try to generate the id token using USER_PASSWORD_AUTH as auth flow type I am getting the below error Caused by: com.amazonaws.services.cognitoidp.model.AWSCognitoIdentityProviderException: Missing Authentication Token (Service:

How to provide Federated authentication with Tenant's corporate IdP using Cognito user pool

邮差的信 提交于 2021-01-29 12:56:00
问题 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 use a pool per tenant or a common pool should work here? Also, I am not planning to use the Identity pool but only the user pool as we do not need to give direct access to AWS resources. 来源: https://stackoverflow.com/questions/65621664/how-to-provide

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

[亡魂溺海] 提交于 2020-04-17 20:24:08
问题 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 id here ClientId : '...' // your client id here }; var userPool = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData); var userData = { Username : '...', // your username here Pool : userPool }; However I do not know which file /

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

痴心易碎 提交于 2020-04-17 20:23:16
问题 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 id here ClientId : '...' // your client id here }; var userPool = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserPool(poolData); var userData = { Username : '...', // your username here Pool : userPool }; However I do not know which file /

AWS Cognito - Users lost “non-mutable” attribute “email_verified”

社会主义新天地 提交于 2019-12-24 08:05:11
问题 After using Cognito for a few months, some users in a user pool have now lost the "email_verified" attribute. I can't understand how it is missing or how to recover. Symptoms are: Users can still login User password can not change (eg via JS SDK - changePassword), produces error: "x-amzn-errormessage: Cannot reset password for the user as there is no registered/verified email or phone_number" Getting the user attributes for the user with the list-users CLI shows the attribute is missing aws

AWS Amplify: How to setup { withConnector } component?

随声附和 提交于 2019-12-23 05:17:07
问题 Following the Amplify Quick Start I set up an AWS Mobile App with the awsmobile-cli : awsmobile init awsmobile user-signin enable awsmobile push In my react App I configured Amplify like so (I also tried manual configuration): import Amplify from 'aws-amplify'; import aws_exports from '../../aws-exports.js'; Amplify.configure(aws_exports); import { withAuthenticator } from 'aws-amplify-react'; ... export default withAuthenticator(App); This Code shows me the Cognito UI , but on any action, I