amazon-cognito

AWS cognito hosted UI returns no token and no error

那年仲夏 提交于 2020-06-17 10:30:15
问题 I have been struggling this for the past three days, please HELP i am desperate. I am using Angular 8 and AWS cognito hosted ui, I have all my files and settings configured but no matter what i dont get the token back. The hosted UI takes in the user and i can see it in the user pool too. I have already RE-CHECKED all my pool-id etc. (I have added everything recommended in the docs like adding that extra code in polyfill.ts and "node" in tsconfig.app.json) I have not missed out on anything As

Amazon Web Services (AWS) Cognito error “Token is not from a supported provider of this identity pool.”

时光总嘲笑我的痴心妄想 提交于 2020-06-15 04:15:45
问题 I am running this app from GitHub which allows a user to sign up and sign in to a Cognito Client App. I am using Eclipse IDE for Enterprise Java Developers Version: 2019-03 (4.11.0), Build id: 20190314-1200. I have ensured that I put all the necessary credentials accurately. I am able to sign up using both the form and the console. When I try to sign in, I get an error in the console that says, "Token is not from a supported provider of this identity pool." using both form and console. I have

Amazon Cognito: How to stop getting “redirect_mismatch” error when redirecting from browser to Android app

人走茶凉 提交于 2020-06-11 16:54:09
问题 I am trying to create a Android project where I authorize a user by having him log into Amazon Cognito in a browser, which should then redirect back to my app . Unfortunately, when the browser opens, instead of reaching the proper sign-in page, I keep getting this error: In my AuthenticatorActivity.java: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_authenticator); Uri authzUrl = Uri.parse("https://<myDomain

Use cognito login instead of certificates to authenticate and subscribe to aws IoT MQTT topics?

爷,独闯天下 提交于 2020-06-09 05:29:27
问题 I'm new to learning AWS and I'm trying to figure out if my use-case is possible. I want to create a mobile app where the user can login (email/facebook/google etc.) and then subscribe to a few MQTT topics on aws IoT to receive realtime sensor data for a gardening system. There are many tutorials on AWS that show you how to do this (prime example: https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md) but all of them require you to download certificates, insert

Use cognito login instead of certificates to authenticate and subscribe to aws IoT MQTT topics?

不问归期 提交于 2020-06-09 05:29:12
问题 I'm new to learning AWS and I'm trying to figure out if my use-case is possible. I want to create a mobile app where the user can login (email/facebook/google etc.) and then subscribe to a few MQTT topics on aws IoT to receive realtime sensor data for a gardening system. There are many tutorials on AWS that show you how to do this (prime example: https://github.com/awslabs/aws-sdk-android-samples/blob/master/AndroidPubSub/README.md) but all of them require you to download certificates, insert

AWS Cognito OAuth: Login request failure

安稳与你 提交于 2020-06-01 06:00:18
问题 I want to skip AWS Cognito's Hosted UI for login/authorization. However, when I try to consume the login end point to fetch authorization-code, I'm slapped with MethodNotAllowed response. As per AWS documentation, the login end-point accepts " Get " requests only. Based on my research on this topic, I figured it was possible to use " Post " method with login credentials for the login end point (Thanks to AWS documentation). Can someone help please me figure out the issue? AWS Pool Settings:

AWS - Cognito Authentication - Curl Call - Generate Token Without CLI - No Client Secret

ⅰ亾dé卋堺 提交于 2020-05-29 10:19:50
问题 I have created a API Gateway and I have applied Cognito Authentication there. Here to have the API Call work I am using AWS CLI to get Token , Here is my CLI Code aws cognito-idp admin-initiate-auth --user-pool-id us-west-2_leb660O8L --client-id 1uk3tddpmp6olkpgo32q5sd665 --auth-flow ADMIN_NO_SRP_AUTH --auth-parameters USERNAME=myusername,PASSWORD=mypassword Now I want to use CURL Call instead of this CLI Call. I have found the code but all needs client secret here. I do not have client

DEVICE_PASSWORD_VERIFIER challenge response in Amazon Cognito using boto3 and warrant

浪子不回头ぞ 提交于 2020-05-27 13:09:15
问题 I'm using both the boto3 and warrant libraries to try to get a device authenticated to skip multi-factor authentication after it's been recognized. I've got through a user/password auth but can't seem to figure out the right way to authenticate the device. The following is my code: from warrant import aws_srp from warrant.aws_srp import AWSSRP import boto3 client = boto3.client('cognito-idp') import datetime username='xxx' password='xxx' client_id='xxx' aws = AWSSRP(username=username,

DEVICE_PASSWORD_VERIFIER challenge response in Amazon Cognito using boto3 and warrant

爷,独闯天下 提交于 2020-05-27 13:07:45
问题 I'm using both the boto3 and warrant libraries to try to get a device authenticated to skip multi-factor authentication after it's been recognized. I've got through a user/password auth but can't seem to figure out the right way to authenticate the device. The following is my code: from warrant import aws_srp from warrant.aws_srp import AWSSRP import boto3 client = boto3.client('cognito-idp') import datetime username='xxx' password='xxx' client_id='xxx' aws = AWSSRP(username=username,

AWS CDK user pool authorizer

别等时光非礼了梦想. 提交于 2020-05-25 17:52:45
问题 I'm trying to create an API gateway using the AWS-CDK and protect the REST endpoints with a Cognito user pool authorizer. I cannot find any examples how one would do this. I thought it should look something like this but maybe the methods I need do not exist? const cdk = require('@aws-cdk/cdk'); const lambda = require('@aws-cdk/aws-lambda'); const apigw = require('@aws-cdk/aws-apigateway'); const path = require('path'); // // Define the stack: class MyStack extends cdk.Stack { constructor