1
-(void)loginViewShowingLoggedInUser:(FBLoginView *)loginView
{
   AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc]initWithRegionType:AWSRegionUSEast1 identityPoolId:@"us-east-1:xxxxxxxxxxxxxxx-ff6eaba0241e" identityProviderManager:pool];      

   NSString *token = FBSession.activeSession.accessTokenData.accessToken;

   credentialsProvider.logins = @{ @(AWSCognitoLoginProviderKeyFacebook): token};
}
4

1 回答 1

2

您可以对来自 AWSAmazon 用户池的用户进行身份验证,而不是对联合池进行身份验证。

于 2017-12-29T06:47:39.010 回答