amazon-cognito

Using Login with Paypal and using OpenID with AWS Cognito

此生再无相见时 提交于 2019-12-11 03:32:34
问题 I am trying to use the OpenID framework supported by Paypal to tie the credentials in with the AWS Cognito service. If I compare the configuration from Salesforce https://login.salesforce.com/.well-known/openid-configuration to the configuration at Paypal https://www.paypal.com/.well-known/openid-configuration the Paypal configuration is missing the jwks_uri element which is a REQUIRED element of the OpenID Provider metadata per OIDC specification and AWS uses the keys at that URI to verify

How do I use a Cognito token with API?

試著忘記壹切 提交于 2019-12-11 03:25:08
问题 I've successfully signed into an iOS app using Google oAuth and been able to get a Cognito token and ID. Now, I'd like to call a node.js API to perform some action on DynamoDB. What and how do I pass to my API call? What authentication and suthorisation checks can I perform in the API method itself? Background: I don't want to expose/leak and details of the underlying storage back to the user so I won't be using DynamoDB, for example, from within the app itself. 回答1: I've answered this in

Invalid access key error using credentials redeemed from an amazon open id token

让人想犯罪 __ 提交于 2019-12-11 02:59:35
问题 I'm getting Invalid access key error using credentials redeemed from an amazon open id token from cognito Here's what I'm doing Get developer authenticated open id token cognito.getOpenIdTokenForDeveloperIdentity(params, function (err, data) { openIdToken = data.credentials }); Redeem open id token for security credentials, I set the params to the congnito Auth role and set an arbitrary role session name. I use the token from step 1. There is no place where I set the identity id from step 1.

cannot authenticate user for aws appsync with swift SDK

假如想象 提交于 2019-12-11 02:25:57
问题 I am trying to connect to my AWS AppSync service from my Swift mobile app using the AWS Swift SDK but keep getting the following error: Error occurred: (401 unauthorized) Did not receive a successful HTTP code. I am using User Pools and have set everything up following the tutorial for swift. My question is, how do I incorporate the AppSync.json config file generated in the console in my request? That is not mentioned in the tutorial and may be the reason I cannot connect. The json file looks

Forbidden Exception on accessing AWS Iot using Amazon Cognito

雨燕双飞 提交于 2019-12-11 02:10:17
问题 I am creating an android application which connects to AWS IoT using Amazon Cognito authentication. I am able to authenticate user successfully and I am able get the credentials. While updating the thing shadow using these credentials always return 403 Forbidden Exception. I have tried all my ways to troubleshoot the issue but I found no solutions. My IAM Policy is: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "iot:GetThingShadow", "iot:UpdateThingShadow", ],

Amazon Cognito hosted UI impossible to iframe?

佐手、 提交于 2019-12-11 01:29:43
问题 I tried, but in headers X-Frame-Options: deny and I do not found any way to configure this inside backend UI. 回答1: I'm not sure how much of an "answer" this is, but I don't yet have enough reputation to comment and I think this is relevant. The accepted answer doesn't really address iframes at all. I can't find it documented anywhere, but my guess is that AWS doesn't allow this due to click-jacking concerns. The FAQ page for Microsoft's Azure AD B2C (a product similar to Cognito) explains why

AWS Cognito- get user information with ID

你离开我真会死。 提交于 2019-12-11 00:34:08
问题 Is there any way to get information about the user in AWS Cognito pool (on android) who is not logged in, knowing his ID? I tried that code: AppHelper.getPool().getUser(username).getDetailsInBackground(detailsHandler); However it works only for username who is currently logged in. 回答1: No, there is not. You get get user information given the user name by calling AdminGetUser from you backend with your developer credentials but not from an Android client. 来源: https://stackoverflow.com

Using AWS cognito from plain JavaScript

别说谁变了你拦得住时间么 提交于 2019-12-11 00:16:08
问题 Hoping someone can shed some light on using Cognito with plain JavaScript. No npm, no webpack, just plain JavaScript. I found a post that had a great example including the required AWS JavaScript libraries. I worked from this example until I ran into the problem of sign out not working. I thought perhaps the libraries in the example were out of date so I went looking for the latest. This is where things got confusing. In the example I had the following JavaScript libraries - amazon-cognito

cognito - Access to Identity is forbidden

拈花ヽ惹草 提交于 2019-12-10 17:45:32
问题 I am trying to understand amazon cognito and trying list contents of S3 folder after login through facebook. Face book login works fine. When I tap test button (cmdTestS3Tapped) it throws the following error. I included AmazonClientManager.h,AmazonClientManager.m and Constants.h to the project from examples amazon provided. The constants are given as belllow. Can anybody help me to resolve the issue. #define AWSAccountID @"MyAccountID" #define CognitoPoolID @"us-east-1:xxxxxxxx-xxxx-xxxx-xxxx

AWS Cognito Authentication via Facebook succeeds but getCurrentUser returns null

帅比萌擦擦* 提交于 2019-12-10 16:35:46
问题 In the browser, after Facebook Login, statusChangeCallback is called. Everything succeeds. Cognito even returns an Identity Id. However, userPool.getCurrentUser() returns null. Cognito does not think there is an authenticated user. How can I fix that? Thanks. function statusChangeCallback(response) { if(response.status == 'connected' && response.authResponse) { testAPI() console.log("FB statusChangeCallback", JSON.stringify(response)) AWSCognito.config.credentials = new AWSCognito