amazon-cognito

AWS Cognito Custom Attributes Not Created

巧了我就是萌 提交于 2019-12-02 07:35:27
I am trying to setup a Cognito user using the AWS Cognito SDK and am having trouble adding custom attributes to a user. I have ensured that the variable names match up exactly and that the application allows read/write on all of the attributes. My code looks like this: var attributeList = []; var dataName = { Name: 'name', Value: name }; var dataPhoneNumber = { Name: 'phone_number', Value: phone }; var dataIsDriver = { Name: 'custom:is_driver', Value: 0 }; var attributeName = new AWSCognito.CognitoIdentityServiceProvider.CognitoUserAttribute(dataName); var attributePhoneNumber = new AWSCognito

AWS ExpiredTokenException after app relaunch

亡梦爱人 提交于 2019-12-02 06:23:01
问题 I'm building an iOS (Swift) app using AWS as the backend with Developer Authenticated Identities. Everything works fine until I close the app, leave it for a while and then relaunch. In this scenario I often, but not always, receive ExpiredTokenException errors when trying to retrieve data from AWS. Here is my code: class DeveloperAuthenticatedIdentityProvider: AWSAbstractCognitoIdentityProvider { var _token: String! var _logins: [ NSObject : AnyObject ]! override var token: String { get {

Amazon Cognito Assigning IAM Roles to Groups in user pool and integration with Identity Pool

血红的双手。 提交于 2019-12-02 04:35:24
I am trying to use newly added User Groups in User Pool and integrate the same with Federated Identities. I followed these steps: Create Groups in user pool with roles created in IAM having separate policies Create User and add them to user groups Create an Identity Pool and add that Cognito provider under Authentication providers using app id and client id. Here I don't get Authenticated role selection under which I have to select Choose role from token I Save Changes and generate the default policies for authenticated and unauthenticated users After the Identity Pool creation i edit it to

AWS ExpiredTokenException after app relaunch

久未见 提交于 2019-12-02 01:09:35
I'm building an iOS (Swift) app using AWS as the backend with Developer Authenticated Identities. Everything works fine until I close the app, leave it for a while and then relaunch. In this scenario I often, but not always, receive ExpiredTokenException errors when trying to retrieve data from AWS. Here is my code: class DeveloperAuthenticatedIdentityProvider: AWSAbstractCognitoIdentityProvider { var _token: String! var _logins: [ NSObject : AnyObject ]! override var token: String { get { return _token } } override var logins: [ NSObject : AnyObject ]! { get { return _logins } set { _logins =

AWS - Unauthenticated access is not supported for this identity pool in swift.

你离开我真会死。 提交于 2019-12-02 00:56:38
I have custom UI for Signup and Singing so not using AWSAuthUI I was able to successfully setup Signup by following the documentation and am able to see confirm users in the user pool. I am facing issue in DynamoDB Access (Authentication issue) Bellow is the code is am using for Login @IBAction func btn_login(_ sender: UIButton) { ActivityIndicator.start() if(txt_soul_id.text != "" && txt_pwd.text != ""){ let emailTextField = txt_soul_id.text! let passwordTextField = txt_pwd.text! let len = passwordTextField.count if(len > 7){ if(Validations.isValidPassword(password: passwordTextField)){ let

AWS.config.credentials are null between page requests

末鹿安然 提交于 2019-12-01 22:20:26
问题 I'm using Facebook to create an authenticated identity via AWS Cognito, that's all working fine and I can login, and synchronise data. However, if I navigate away from my sign-in page - but remain in my site - the underlying AWS.config.credentials object is then null and I can't synchronise any data via a different page. Suspect I'm missing something obvious but can't see it from the Amazon docs and don't know what! Edit: Sorry - should have added - this is via the Javascript SDK 回答1: Only

How to get metadata out of AWS Cognito JWT to use it for the MongoDB Stitch Metadata Fields?

吃可爱长大的小学妹 提交于 2019-12-01 22:02:22
问题 I am using AWS Cognito as the custom authentication for my MongoDB Stitch app. I can successfully retrieve the JWT from AWS Cognito and login to MongoDB Stitch. I would like to store attributes in the JWT. I need help on how to get the JWT path to the metadata to put in MongoDB's Users -> Providers -> Metadata Fields. 来源: https://stackoverflow.com/questions/55667558/how-to-get-metadata-out-of-aws-cognito-jwt-to-use-it-for-the-mongodb-stitch-meta

Upload to Amazon S3 and Calling Amazon Cognito Identity from Rails server

谁说我不能喝 提交于 2019-12-01 21:02:08
I am trying to follow the steps to upload files to Amazon S3 from an iOS app. According to the AWS iOS SDK docs, before uploading, it is required to authenticate the app users for secure access to AWS resources via my backend server: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#providing-creds What is the right way to call the AWS Cognito Identity GetOpenIdTokenForDeveloperIdentity service from a rails (version 4.1) server? This service is not part of the aws-sdk gem. Cognito is only supported via the the v2 Ruby SDK . Here is a minimal example for

AWS.config.credentials are null between page requests

蹲街弑〆低调 提交于 2019-12-01 20:58:36
I'm using Facebook to create an authenticated identity via AWS Cognito, that's all working fine and I can login, and synchronise data. However, if I navigate away from my sign-in page - but remain in my site - the underlying AWS.config.credentials object is then null and I can't synchronise any data via a different page. Suspect I'm missing something obvious but can't see it from the Amazon docs and don't know what! Edit: Sorry - should have added - this is via the Javascript SDK Only the identity id is maintained between pages, credentials are not. You will need to cache the Facebook token

AWS Cognito Sign-In (Android)

泪湿孤枕 提交于 2019-12-01 14:03:42
I am trying to figure out how to sign in a User with AWS Cognito. The tutorials all seem to deal with Users from a standpoint of signing up Users, not signing them in. I do not want the users to go through a sign-up process; that will be done elsewhere, by our office users. I just want to have, in this app, a flow that has them enter their existing username and password and sign in. My current understanding of things is that Cognito User Pools only supports either sign-in using an authentication provider like Facebook or Google, or non-authenticated sign-in, which I am having trouble