aws-cognito

Flow for authentication when MFA required for user in AWS Cognito

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-01 09:39:12
问题 I am attempting to add MFA for user authentication to an already existing solution (built in Angular) for device management within AWS Cognito. I am having trouble figuring out how to handle this particular response well from a user-experience perspective. It actually feels broken, so would love if anyone else has experience pain points here. See Use Case 23. for example implementation, mine is below: authenticate(username: string, password: string): Observable<any> { // init cognitoUser here

Flow for authentication when MFA required for user in AWS Cognito

情到浓时终转凉″ 提交于 2020-01-01 09:39:08
问题 I am attempting to add MFA for user authentication to an already existing solution (built in Angular) for device management within AWS Cognito. I am having trouble figuring out how to handle this particular response well from a user-experience perspective. It actually feels broken, so would love if anyone else has experience pain points here. See Use Case 23. for example implementation, mine is below: authenticate(username: string, password: string): Observable<any> { // init cognitoUser here

AWS Api Gateway Authorizer + Cognito User Pool Not Working {“message”: “Unauthorized”}

て烟熏妆下的殇ゞ 提交于 2019-12-30 01:03:43
问题 I am trying to use aws api gateway authorizer with cognito user pool. It is working fine when i test using aws api gateway console. But when i try enabling the authorization in the api it says "message": "Unauthorized". Please check below screenshot API Gateway Console Screenshot - This works fine Postman Screen shot - Not working Can someone help please. FYI I have followed the instructions as mentioned here http://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-integrate

FB Login w/ React Native + AWS Cognito

血红的双手。 提交于 2019-12-25 12:53:29
问题 I am trying to use the react native FBDSK Wrapper library along with the AWS cognito javascript library (recently switched react native support over to the js library) I am able to login with FB and retrieve the token but when I try to sign in using AWS cognito I do not see a succesful login in my AWS federated identity dashboard. I am wondering what am I doing wrong here? index.js : import React, { Component } from 'react'; import { Animated, Platform, StatusBar, StyleSheet, Text, View,

Search users Amazon Cognito with ListUsers API or iOS SDK

别来无恙 提交于 2019-12-25 04:13:23
问题 I am creating an iOS application in Swift and I cannot find a way to search or get a list of Cognito Users with API. Per Amazon Documentation, it says to use the ListUsers API; however, it does not provide an endpoint to make the request and it is rather difficult to authenticate REST API requests with AWS so is there anyway to do this via iOS SDK? These are the parameters I would like to include in my Request. [ "AttributesToGet": ["username" ], "Filter": "username ^= \"micheal\"", "Limit":

How to only allow AWS IoT subscriptions to topics under Cognito user id (sub)?

ぃ、小莉子 提交于 2019-12-24 19:13:37
问题 I want my backend to be able to directly send messages to authenticated users. Which means I need to limit the users to only subscribe on topics under their own identifiers. Ideally, to my currently limited understanding, I would have a policy that has the user sub as a variable: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "iot:Connect", "iot:Publish", "iot:Receive", "iot:GetThingShadow", "iot:UpdateThingShadow", "iot:DeleteThingShadow" ], "Resource": "*" }, {

AWS Cognito Pre authentication/Define Auth Challenge lambda hooks are not invoked if user doesn't exist

天大地大妈咪最大 提交于 2019-12-24 10:36:40
问题 I'm essentially trying to create a middleware that will do some work before logging a user in. However, none of the lambda hooks run when I try to log in with a user that doesn't exist in aws cognito. 回答1: This is expected. Before calling the pre-authentication trigger, Cognito checks to see if the user exists. This is so that it can pass required information like 'sub', 'email', 'phone' etc. to the triggers. Now, when you put the wrong user in the UI, the Cognito check results in a 'User

invalid_request error on AWS Cognito Custom UI Page

你。 提交于 2019-12-23 12:53:37
问题 when going to the custom AWS Cognito UI Page: https://<your_domain>/login?response_type=code&client_id=<your_app_client_id> am getting the following error: An error was encountered with the requested page. View error invalid_request 回答1: O-Auth options need to be check as shown in the following picture from https://aws.amazon.com/blogs/aws/launch-amazon-cognito-user-pools-general-availability-app-integration-and-federation/ 来源: https://stackoverflow.com/questions/49979314/invalid-request

invalid_request error on AWS Cognito Custom UI Page

最后都变了- 提交于 2019-12-23 12:53:05
问题 when going to the custom AWS Cognito UI Page: https://<your_domain>/login?response_type=code&client_id=<your_app_client_id> am getting the following error: An error was encountered with the requested page. View error invalid_request 回答1: O-Auth options need to be check as shown in the following picture from https://aws.amazon.com/blogs/aws/launch-amazon-cognito-user-pools-general-availability-app-integration-and-federation/ 来源: https://stackoverflow.com/questions/49979314/invalid-request

How sensitive is my identity pool id?

做~自己de王妃 提交于 2019-12-23 12:52:23
问题 Background I've been working on a front end javascript application that consumes AWS resources (mostly Lambdas behind API Gateway). The API Gateway resources are protected with IAM, and the app uses most of what Cognito offers accordingly. This includes an Identity Pool with Unauthenticated Identities enabled, and federation with both a Cognito User Pool and multiple social and custom OIDC providers. Cognito is interacted with solely from our front end javascript code, using Amazon's SDK.