amazon-cognito

Is it possible to customize default Sign Up, Sign In screens of aws-amplify-react-native package?

旧时模样 提交于 2019-12-13 01:03:25
问题 In order to have default auth screen, I can merely do this (https://github.com/aws-samples/aws-mobile-react-native-starter): import { withAuthenticator } from 'aws-amplify-react-native'; export default withAuthenticator(App); And I get pretty ugly default out-of-the-box login screen: Then docs say I can't modify default, I have to create my own (https://github.com/aws-samples/aws-mobile-react-native-starter): You can either use this Higher Order Component, or build your own UI and use the

Getting “AccessDenied” while accessing S3 using Cognito Token

元气小坏坏 提交于 2019-12-12 22:13:37
问题 I am trying to use "listObjects" operation on a bucket. This is accessed thru a WebService and I don't want to give user Console Access. Role Policy { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "mobileanalytics:PutEvents", "cognito-sync:*", "cognito-identity:*" ], "Resource": [ "*" ] }, { "Action": [ "s3:ListBucket" ], "Effect": "Allow", "Resource": [ "arn:aws:s3:::BucketName" ], "Condition": { "StringLike": { "s3:prefix": [ "${cognito-identity.amazonaws.com:sub}

[iOS][AWS Cognito] 'logins' is deprecated: Use “AWSIdentityProviderManager”

蓝咒 提交于 2019-12-12 19:49:08
问题 I’ve been trying to authenticate user with Facebook and Twitter on iOS with Amazon Cognito. I can’t implement because Official documents is old. Here is my code: NSString *token = [FBSDKAccessToken currentAccessToken].tokenString; credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionAPNortheast1 identityPoolId:IDENTITY_POOL_ID]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionAPNortheast1 credentialsProvider

Use Observable for AWS cognito callback

风流意气都作罢 提交于 2019-12-12 12:24:58
问题 How can I turn the signup callback into an Observable, conforming to the Angular 2 convention? This is what the callback structure is like userPool.signUp(this.artist.email, this.artist.password, attributeList, null, function(err, result) { if (err) { alert(err); return; } let cognitoUser = result.user; console.log(JSON.stringify(result)); console.log('user name is ' + cognitoUser.getUsername()); }); 回答1: There is an RxJS static operator for just that purpose: bindNodeCallback. It will

Denying a Sign-up request in Cognito User Pools

百般思念 提交于 2019-12-12 10:36:08
问题 The description of a Cognito User Pools Pre Sign-up Lambda Trigger is: This trigger is invoked when a user submits their information to sign up, allowing you to perform custom validation to accept or deny the sign up request. I want to deny a sign-up request based on a certain condition in my Lambda. The trigger parameters (reproduced from the docs below) seem to only support auto-verification and auto-confirmation: { "request": { "userAttributes": { "string": "string", .... },

AWS API Gateway - using Access Token with Cognito User Pool authorizer?

时光怂恿深爱的人放手 提交于 2019-12-12 08:06:55
问题 I am configuring an app with various frontends (mobile and web apps) and a single API backend, powered by Lambda and accessed via AWS API Gateway. As I'm planning to use Cognito to authenticate and authorize users, I have set up a Cognito User Pool authorizer on my API Gateway and several API methods. With an architecture like this, it seems logical that my apps (e.g. an iOS or Vue.js app) are the Client applications from an OAuth perspective, and my API Gateway backend is a Resource Server.

AWS Cognito Identity JS: Forget/Remember/Do Not Remember Device

∥☆過路亽.° 提交于 2019-12-12 05:19:03
问题 I'm working with the AWS Cognito Identity JS SDK (https://github.com/aws/amazon-cognito-identity-js) and I'm trying to set up a few buttons to test the setDeviceStatusRemembered , setDeviceStatusNotRemembered , and forgetDevice functionality but I keep getting an error saying: MissingRequiredParameter: Missing required key 'DeviceKey' in params Here is an implementation of one of the functions: forgetDevice = function(){ var cognitoUser = userPool.getCurrentUser(); if (cognitoUser != null) {

AWS Cognito integration swift3 Refresh provides ResourceNotFoundException

人盡茶涼 提交于 2019-12-12 05:14:19
问题 Following the answer here: https://github.com/aws/aws-sdk-ios/issues/357 At the very bottom there is a mini guide on getting swift and cognito working. I've made a AWSCustomIdentityProvider as such: import Foundation import AWSCognitoIdentityProvider import AWSCognito class AWSCustomIdentityProvider: NSObject, AWSIdentityProviderManager { private var dict = NSDictionary() func addToken(value:NSString) { dict = ["graph.facebook.com":value] } public func logins() -> AWSTask<NSDictionary> {

Issues with Amazon Cognito iOS SDK V2 using Facebook and Google+ Provider Authentication

喜你入骨 提交于 2019-12-12 04:56:55
问题 I am currently unable to authorize users using AWS iOS SDK V2 using Facebook and Google+ as the provider. I'm not sure if its my setup on the AWS Developer Console, or whether its the code. This is the role policy for the identity pools: { "Version": "2012-10-17", "Statement": [{ "Action": [ "mobileanalytics:PutEvents", "cognito-sync:*" ], "Effect": "Allow", "Resource": ["*"] }] I do receive an unauthorized Cognito ID but when I try to use either Facebook or Google+ provider authentication,

Login Issue in Amazon Mobile Hub with Cognito

Deadly 提交于 2019-12-12 04:15:21
问题 I am using Mobile Hub (amazon) in my android project and for sign-in providers i am using cognito and I have their sample code which they provide and I modify the code and the Login with Facebook is working but the issue which I am facing is onSuccess method when user login successfully called twice and I debugg it but I can not Figure it out how to fix that issue. SplashActivity.java public class SplashActivity extends AppCompatActivity implements SignInResultHandler { IdentityManager