amazon-cognito

Swift - AWS Cognito-Facebook Login

回眸只為那壹抹淺笑 提交于 2021-02-08 08:01:27
问题 I want to use Facebook for my login process with Cognito, and I've followed a lot of AWS documentation and look at tutorials and questions in Stackoverflow, but I've not found a solution for my problem. When the user opens the app, it will check if the user is logged in using IdentityManager. If not, it will open a new view where the user can sign in using Facebook using Facebook SDK. After that, I stored the token with a custom IdentityProvider as the documentation said (credentialsProvider

Different levels of access for AWS Cognito

我的未来我决定 提交于 2021-02-08 07:55:50
问题 I'm trying to build a web app that can be accessed by any user that signs up with facebook. I want to use AWS Cognito to speed up the development for users management. It has to have 3 type of users: Normal users - any user that logs in with facebook Editors - users that have a different access level (IAM role?), they can call a specific AWS Lambda function, that normal users can't call. Administrators - users that can modify the status of normal users to make them editors or admins Can

Different levels of access for AWS Cognito

回眸只為那壹抹淺笑 提交于 2021-02-08 07:55:39
问题 I'm trying to build a web app that can be accessed by any user that signs up with facebook. I want to use AWS Cognito to speed up the development for users management. It has to have 3 type of users: Normal users - any user that logs in with facebook Editors - users that have a different access level (IAM role?), they can call a specific AWS Lambda function, that normal users can't call. Administrators - users that can modify the status of normal users to make them editors or admins Can

Different levels of access for AWS Cognito

喜欢而已 提交于 2021-02-08 07:55:00
问题 I'm trying to build a web app that can be accessed by any user that signs up with facebook. I want to use AWS Cognito to speed up the development for users management. It has to have 3 type of users: Normal users - any user that logs in with facebook Editors - users that have a different access level (IAM role?), they can call a specific AWS Lambda function, that normal users can't call. Administrators - users that can modify the status of normal users to make them editors or admins Can

How to get JWT from Facebook credentials using Amazon Cognito user pool?

社会主义新天地 提交于 2021-02-08 03:25:32
问题 I've got credentials for Facebook after federated login with aws, but after successful login I was not getting any response or jwt token. I've tried with AWS Cognito authentication and tried with AWSCognitoCredentials provider but didn't found any solution AWSCognitoCredentialsProvider(regionType: AWSRegionType.USEast1, identityPoolId: "us-east-1:xxxxxxxxx", identityProviderManager: CredentialProviderClass).credentials().continueWith { (task) -> Any? in DispatchQueue.main.async { if (task

How to proceed with AD FS SAML for AWS Cognito?

南楼画角 提交于 2021-02-07 22:23:09
问题 I am setting up AD FS to generate metadata for SAML to connect to AWS Cognito User pools. I already generated the xml metadata and uploaded it to the User pool. Should I create Trust relays on AD FS site? Is there any other steps to make my AD users available for web app sign in? 回答1: For ADFS 2.0 here are the steps: Go to “Trust Relationships” -> “Relying Party Trusts” -> “Add relying party trusts”. This will start a wizard. Select the option “Enter data about the relying party manually”.

About permission in S3 file transfer

半城伤御伤魂 提交于 2021-02-07 15:01:09
问题 I'm using S3TransferManager-Sample to do testing. I created the Cognito and setup the IAM and change the constants.swift file at last.I have no problem to upload but failed to download. The error message is: download failed: [Error Domain=com.amazonaws.AWSS3ErrorDomain Code=1 "The operation couldn’t be completed. (com.amazonaws.AWSS3ErrorDomain error 1.)" UserInfo=0x7f8cd658a5a0 {HostId=d4yLouhlYmGn4s1Zp54+EOsZQEy2bVEGNs5XIa8pMxerJggANV/9Zb82c1QtF/5Hsn5KqYXGqdw=, Message=Access Denied, Code

Username cannot be of email format, since user pool is configured for email

三世轮回 提交于 2021-02-07 12:16:30
问题 When I try sign up an user in AWS Cognito this error is returned in response.: But, in my config the email field is an alias.: How can I fix this? 回答1: By that error message, it looks like it's failing because you have email as an alias but have also set given it as your username. I think to get around this, you could either use some temporary, throw away username at first or un-check it as an alias and just use it as both username and an attribute. The former gives you more flexibility to

Username cannot be of email format, since user pool is configured for email

柔情痞子 提交于 2021-02-07 12:15:40
问题 When I try sign up an user in AWS Cognito this error is returned in response.: But, in my config the email field is an alias.: How can I fix this? 回答1: By that error message, it looks like it's failing because you have email as an alias but have also set given it as your username. I think to get around this, you could either use some temporary, throw away username at first or un-check it as an alias and just use it as both username and an attribute. The former gives you more flexibility to

AWS cognito user migration pool trigger not working on login flow

依然范特西╮ 提交于 2021-02-07 10:19:51
问题 I am using AWS cognito pool migration using Lambda function with cognito execution role Following is my new pool app client setting or AWS doc says User migration authentication flow A user migration Lambda trigger allows easy migration of users from a legacy user management system into your user pool. To avoid making your users reset their passwords during user migration, choose the USER_PASSWORD_AUTH authentication flow. This flow sends your users' passwords to the service over an encrypted