Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Implementation - Transitioning a user into the authenticated role #54

Open
rbarbish opened this issue Aug 16, 2016 · 6 comments
Open

Comments

@rbarbish
Copy link

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.

@hassankhan
Copy link

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.

@rbarbish
Copy link
Author

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

@hassankhan
Copy link

Useful?

let token = FBSDKAccessToken.currentAccessToken().tokenString
credentialsProvider.logins = [AWSCognitoLoginProviderKey.Facebook.rawValue: token]

@leonardofed
Copy link

Thanks Hassan. That was helpful.

2016-08-18 21:01 GMT+02:00 Hassan Khan [email protected]:

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
#54 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AG9f03FSQJERkifjenPVppSPiOOvbLMeks5qhKvsgaJpZM4JlZia
.

@hassankhan
Copy link

No problem, hopefully it helped @rbarbish too 😄

@mannyveloso
Copy link

For this, see issue 357 in the AWS SDK git

aws-amplify/aws-sdk-ios#357

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants