Ios 如何使用Amazon Cognito用户池从Facebook获取JWT凭据?
在与aws联合登录后,我获得了Facebook的凭据,但在成功登录后,我没有得到任何响应或jwt令牌 我尝试过AWS Cognito身份验证,也尝试过AWSCOgnitoRedentials提供程序,但没有找到任何解决方案Ios 如何使用Amazon Cognito用户池从Facebook获取JWT凭据?,ios,swift,amazon-cognito,amazon-cognito-facebook,Ios,Swift,Amazon Cognito,Amazon Cognito Facebook,在与aws联合登录后,我获得了Facebook的凭据,但在成功登录后,我没有得到任何响应或jwt令牌 我尝试过AWS Cognito身份验证,也尝试过AWSCOgnitoRedentials提供程序,但没有找到任何解决方案 AWSCognitoCredentialsProvider(regionType: AWSRegionType.USEast1, identityPoolId: "us-east-1:xxxxxxxxx", identityProviderManager: Credentia
AWSCognitoCredentialsProvider(regionType: AWSRegionType.USEast1, identityPoolId: "us-east-1:xxxxxxxxx", identityProviderManager: CredentialProviderClass).credentials().continueWith { (task) -> Any? in
DispatchQueue.main.async {
if (task.error != nil) {
print("Error : \(task.error?.localizedDescription ?? "")")
} else {
// the task result will contain the identity id
if let credentials = task.result {
print(credentials)
}
}
}
return nil
}
我期待JWT令牌在登录Facebook并成功验证后生效