2015-10-06 60 views
0

我试图连接我的AWSCognitoIdentities这里引用https://docs.aws.amazon.com/cognito/devguide/identity/developer-authenticated-identities/AWSCognito连接Facebook和自己的开发验证的身份

// Initialize a Logins map for the authentication tokens. 
Map logins = new HashMap(); 

// Add the custom identity for this user 
logins.put("custom", identifier); 

// If your user is also logged in with Facebook, Amazon, or Google, we can now add 
// the session token. 
logins.put("graph.facebook.com", Session.getActiveSession().getAccessToken()); 

// Add the new map we created to the credentials provider. 
credentialsProvider.setLogins(logins); 

我没有得到任何错误,当我跑这一点,但我只能看到我的自定义开发者认证供应商链接从亚马逊控制台发送给用户。

有关我可能会丢失什么的任何想法?

回答