Open rbarbish opened 8 years ago
Have you checked out this sample project? Usually you'd add the token to the credentials - in Unity/C# it's credentials.addLogin(providerName, token)
, not sure how it is in Swift, sorry.
Yea, it's quite out of date and a lot of that example doesn't work with the current version of the AWS Mobile SDK
Useful?
let token = FBSDKAccessToken.currentAccessToken().tokenString
credentialsProvider.logins = [AWSCognitoLoginProviderKey.Facebook.rawValue: token]
Thanks Hassan. That was helpful.
2016-08-18 21:01 GMT+02:00 Hassan Khan notifications@github.com:
Useful?
let token = FBSDKAccessToken.currentAccessToken().tokenString credentialsProvider.logins = [AWSCognitoLoginProviderKey.Facebook.rawValue: token]
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/danilop/LambdAuth/issues/54#issuecomment-240822956, or mute the thread https://github.com/notifications/unsubscribe-auth/AG9f03FSQJERkifjenPVppSPiOOvbLMeks5qhKvsgaJpZM4JlZia .
No problem, hopefully it helped @rbarbish too 😄
For this, see issue 357 in the AWS SDK git
This might be a questionable place to ask this question but since it is specific to this framework, I thought I'd ask here. I'm having trouble knowing what to do after receiving the login token to transition my user into the authenticated role. I'm using the AWS Mobile SDK for iOS and writing my client app in Swift. The full details of my problem are listed here - http://stackoverflow.com/questions/38976295/aws-lambda-cognito-authentication-assuming-auth-role
Any guidance would be appreciated - thank you.