amazon-cognito

Using AWS Developer Identities for Authentication for iOS (Objective-c)

半城伤御伤魂 提交于 2019-12-25 09:06:28
问题 I use the latest version of aws-ios-sdk with Objective-C which is 2.4.16 I think. I used Lambdaauth from the internet as a baseline. I did all the Lambda functions in node 4.3 and then access them from my iOS device using the the api gateway. So for instance after a user has registers I call a class in my iOS (auth class) that uses NSURLSessions and NSURLRequests to pass the JSON back and forth to the gateway which calls the appropriate Lambda function. So to login it passes in the email and

Amazon CognitoUserPool and other Objects do not exist

孤人 提交于 2019-12-25 08:04:03
问题 I am trying to get started with the Cognito User authentication and login services. I am using a Xamarin PCL on Visual Studio 2015. I have a User Pool already created and all the necessary SDK's installed (.Core, .CognitoIdentity, .CognitoIdentityProvider, etc.). However, when following the Getting Started guide, none of the Objects that are used in the guide exist in any of the libraries! I have been dealing with this for 2 weeks now and I have given up. All I have are

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":

Integrating STS with AWSS3TransferManagerUploadRequest and AWSS3TransferManagerDownloadRequest

谁说我不能喝 提交于 2019-12-25 03:52:56
问题 We are trying to implement AWS Security Token Service in our android and iOS app. At backend we are using below code to generate token: public class CloudManagementImpl implements CloudManagement{ private static final Logger Log = LoggerFactory.getLogger(CloudManagementImpl.class); @Override public CloudConfiguration getCloudProperties() { CloudConfiguration CloudConfiguration = new CloudConfiguration(); AssumeRoleRequest assumeRoleRequest = new AssumeRoleRequest(); assumeRoleRequest

Facebook graph api android

你。 提交于 2019-12-25 03:50:55
问题 I am trying to fetch the user data using graph api but unable to do so. I know there are many answers available to this question but didn't get the one that will help me. I am using facebook sdk v3.20.For authentication part I am using amazon cognito service. Here's my MainActivity code:- protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); /** * Initializes the sync client. This must be call before you can use it. */

Changing Cognito-User-Pool/AWS-Amplify; leading to SignUp issue

旧城冷巷雨未停 提交于 2019-12-25 03:16:28
问题 I am, handling some SignUp/SignIn process within an iOS app, using AWS-Amplify (and Cognito). It was working fine, but then I decided to require a few more information when signing up. Namely: name, given_name, family_name. Here is the function called to authenticate: func showSignIn() { AWSAuthUIViewController .presentViewController(with: self.navigationController!, configuration: nil, completionHandler: { (provider: AWSSignInProvider, error: Error?) in if error != nil { print("Error

AWS Lambda functions issue

故事扮演 提交于 2019-12-25 01:48:54
问题 I have recently started trying to use AWS Lambda functions. Here is what I get in the Execution results window of the Lambda console, when clicking the Test button. Response: { "statusCode": 500, "body": "{\"message\":\"Missing credentials in config\", \"code\":\"CredentialsError\",\"time\":\"2019-06-06T07:11:53.538Z\", \"originalError\":{\"message\":\"No credentials to load\", \"code\":\"CredentialsError\",\"time\":\"2019-06-06T07:11:53.538Z\"}}" } And here is the Lambda function source code

Authenticate AppSync request with adminInitiateAuth

偶尔善良 提交于 2019-12-24 22:45:27
问题 The post on https://read.acloud.guru/backend-graphql-how-to-trigger-an-aws-appsync-mutation-from-aws-lambda-eda13ebc96c3 describes a nice way to call AppSync mutations using a simple HTTP requests from a Lambda assuming that IAM authentication is being used on AppSync, but I would like to be able to do this with AMAZON_COGNITO_USER_POOLS. The way it is done there is by signing the request using IAM credentials. As far as I could determine, when AMAZON_COGNITO_USER_POOLS is used, the requests

ListCollections is not listing correct collections in Android App - AWS Rekognition

白昼怎懂夜的黑 提交于 2019-12-24 21:12:25
问题 Ok so I have been stuck here for about more than a week now and I know its some dumb mistake. Just can't figure it out. I am working on a project that is available of two platforms, Android & iOS. Its sort of a facial recognition app. When I try to create/access collections from iOS application and python script, they both access the same collection from my AWS account. But when I try to access from Android application, it creates/accesses it's own collections. The collections created by

Send cognito authentication as a promise is giving “Cannot read property 'promise' of undefined”

邮差的信 提交于 2019-12-24 19:44:25
问题 I'm developing a lambda function to login into Cognito, but I'm having problems to do it wait for my cognito authentication. I tried to use the code just like it is in examples, passing a onSuccess and a onFailure function as parameter, but the function is complete without wait. Then, I tried to make a promise, just like I did sending SES email, but it give the message "Cannot read property 'promise' of undefined" My code until now: 'use strict'; global.fetch = require('node-fetch'); let