amazon-cognito

CognitoIdentityClient - 404 not found in iam/security-credentials

不羁岁月 提交于 2020-01-06 06:50:30
问题 I want to register an AWS Cognito Identity using getOpenIdTokenForDeveloperIdentity . Below are my codes written in CodeIgniter framework: Awscognitoauth.php <?php // <MYPROJECT>/application/controllers/Awscognitoauth.php defined('BASEPATH') or exit('No direct script access allowed'); class Awscognitoauth extends CI_Controller { function getOpenId($userId) { $this->load->library('awsauth'); return $this->awsauth->identity($userId); } } Awsauth.php <?php // <MY PROJECT>/application/libraries

Authorizing AWS API Gateway requests from token in query string

蓝咒 提交于 2020-01-05 04:30:13
问题 I have API Gateway set up with a Cognito authorizer that correctly authorizes any request with the id token in the header. This is fine when requests are XHR based as I can add the header when preparing the request. However I can't add this when using <audio src="http://api-gateway/..."> which is made directly by the browser. The best I can do is append the token in the querystring ( ?token=... ) but Cognito only accepts tokens in the headers. Is there any way to get Cognito to authorize

AWS Cognito credentialsProvider.login always shows NIL (SWIFT)

感情迁移 提交于 2020-01-04 05:33:23
问题 I'm trying to implement Facebook Login with AWS Cognito. After receiving the access token from Facebook, I'm not able to update the credentials provider. let token = FBSDKAccessToken.currentAccessToken().tokenString credentialsProvider.logins = [AWSCognitoLoginProviderKey.Facebook.rawValue: token] After this, if I print [AWSCognitoLoginProviderKey.Facebook.rawValue: token] I get the long string but if I print credentialsProvider.logins I get NIL . As a result, my identity pool always shows

AWS Cognito User Pools and OpenId

不想你离开。 提交于 2020-01-03 14:08:47
问题 I am playing around with Amazon Cognito and after reading some of the docs and creating a user pool I am running into some issues. I believe that a cognito user pool can be used with OpenId to redirect the user to a hosted UI for user authentication (without federating out to another provider). I have tried to use the authentication options in DotNetCore 2 to do this as this is something I have done previous with other providers. I have the following: services.AddAuthentication(options => {

Cognito UnknownError after turn on device registration

♀尐吖头ヾ 提交于 2020-01-03 08:28:26
问题 As per requirement, I need to turn on device registration to Always . However, our SRP flow starts failing with the below issue. { code: 'UnknownError', message: 'Unknown error, the response body from fetch is: undefined' } After doing some research, I found one similar post, but it seems like the only solution is to turn device registration off. It's failing while running node get-token.js script to retrieve token for our CI/CD testing pipeline. cognitoUser.authenticateUser(authCfg, {

AWS iOS SDK 2.4.0 & Cognito documentation

筅森魡賤 提交于 2020-01-03 05:08:12
问题 With AWS iOS SDK 2.4.0 Amazon's documentation fell behind. Pages on writing code to support Federated Identities, particularly how to refreshing token ids no longer reflected the code. This page for example, http://docs.aws.amazon.com/cognito/latest/developerguide/open-id.html, refers to credentialsProvider.logins which isn't present in SDK 2.4.0 Does anyone know if anyone else has documented this aspect of Amazon's iOS SDK? Or Amazon somewhere else? Amazon has now released 2.4.10 and its

Using AWS Cognito and aws-ios-sdk v.2.4.16 with developer identities

夙愿已清 提交于 2020-01-02 04:46:15
问题 I set up a lambda group of functions to do all my authentication. I connect from my app through the api gateway and then finally call GetOpenIdTokenForDeveloperIdentity(). This returns an identityId and token to my device through the gateway. Next I follow this site's instructions (for Objective-C): http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html Since I have the identityId and token I started with this: DeveloperProvider.h #import <AWSCore

AWS Cognito token types

荒凉一梦 提交于 2020-01-01 10:04:29
问题 I'm trying to setup Cognito and I'm having trouble understanding the differences between the following three types of tokens: Token (returned by getOpenIdTokenForDeveloperIdentity) SessionToken (returned by getCredentialsForIdentity) SyncSessionToken (returned by listRecords) In which way are these tokens related/different ? 回答1: Here is a brief description of the 3 tokens that you talked about. I will try to link you to more detailed documentation where ever possible. Token : This is a

Cognito/IAM Policies & S3 Get Object

那年仲夏 提交于 2020-01-01 05:18:09
问题 I'm trying to integrate S3 and Cognito into my iOS App, so far not successfully. I believe the error is connected to my IAM Policy for Auth and Unauth users. So here's my policy: { "Version": "2012-10-17", "Statement": [{ "Effect":"Allow", "Action":"cognito-sync:*", "Resource":["arn:aws:cognito-sync:us-east-1:XXXXXXXXXXXX:identitypool/${cognito-identity.amazonaws.com:aud}/identity/${cognito-identity.amazonaws.com:sub}/*"] }, { "Effect":"Allow", "Action": "s3:*", "Resource": ["arn:aws:s3:::my

AWS Cognito user pool identity REST examples

非 Y 不嫁゛ 提交于 2020-01-01 03:13:12
问题 We are looking into using user pools for our application. I would like to try out API in REST manner. Documentation at https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/Welcome.html doesn't have request and response examples like others. Looking for SignUp, ResendConfirmationCode,ChangePassword and ConfirmSignUp examples. 回答1: Currently it is not in Cognito user pools documentation, but following example should work for SignUp. Similarly you can formulate it for