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

Developer Authenticated Identities #416

Closed
stevepsharpe opened this issue Mar 8, 2018 · 4 comments
Closed

Developer Authenticated Identities #416

stevepsharpe opened this issue Mar 8, 2018 · 4 comments
Labels
Auth Related to Auth components/category

Comments

@stevepsharpe
Copy link

stevepsharpe commented Mar 8, 2018

Do you want to request a feature or report a bug?
question

I can see in the documentation how to do use the standard Federated identities, I'm unclear how to use Developer Authenticated Identities. I'm trying to get Strava login to work.

I have a lambda function that checks a passed in code from Strava, does the auth and then uses getOpenIdTokenForDeveloperIdentity which returns a token and identity id. How do I then use this with Amplify?

@nidsharm
Copy link

nidsharm commented Mar 8, 2018

Hey @stevepsharpe ,

Since you have your Auth module built out and inside a lambda function, you should configure Amplify with your AWS resources. You can use this guide: https://github.com/aws/aws-amplify/blob/master/docs/media/api_guide.md to find out the resources required to use our API module.

You can make REST requests from your app to your endpoint using Amplify API module.
Please let us know if you have any other questions on this.

Thanks,
Nidhi

@buggy
Copy link
Contributor

buggy commented Mar 9, 2018

@stevepsharpe federatedSignIn() doesn't currently support developer authenticated identities. I've create a PR #425 to add support for them. If it's merged then you'll be able to pass the token from your Lambda into federatedSignIn() and everything else should work.

I would like to add that while I was initially using developer authenticated identities I'm currently experimenting with using custom authentication flows and Cognito User Pools instead of developer authenticated flows and Cognito Identity Pools. I'm only in the early stages of testing but it looks promising.

@nidsharm nidsharm added enhancement Auth Related to Auth components/category labels Mar 12, 2018
@powerful23
Copy link
Contributor

Closing this issue as the pr has been merged.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Auth Related to Auth components/category
Projects
None yet
Development

No branches or pull requests

4 participants