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

Leveraging Already Existing Identity Pool #46

Closed
KylePalko opened this issue Dec 7, 2017 · 4 comments
Closed

Leveraging Already Existing Identity Pool #46

KylePalko opened this issue Dec 7, 2017 · 4 comments
Labels
question General question

Comments

@KylePalko
Copy link

Hey all,

Love where the project is. The code is very clean (I've been digging through it this afternoon) and well documented. We've just started looking into Amplify and our team was curious as to whether it works with Identity Pools (not just User Pools). If so, can you point me in the right direction to get this working? I noticed in the documentation there is this example:

Amplify.configure({
    Auth: {
        identityPoolId: 'xx-xxxx-x:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
        region: 'xx-xxxx-x'
    }
})

We already have an Identity Pool with our own authentication, and I'm of course able to get a hold of an Identity ID and Access Token. However, I'm not sure where to go from here (such as, what Object to instantiate and pass the ID/Token into). Any help would be appreciated, thanks!

@mlabieniec mlabieniec added the question General question label Dec 7, 2017
@mlabieniec
Copy link
Contributor

@KylePalko after configuring the component you can call signin or register methods to signin users, and listen for auth state changes within your app. See here for example code and info: https://aws.github.io/aws-amplify/media/authentication_guide.html

@KylePalko
Copy link
Author

KylePalko commented Dec 8, 2017

Hey @mlabieniec, just to confirm, does this sign-in API work with both Identity Pools and User Pools? The reason I ask is because I see I need to either pass in a user/pass combo or a user/auth code, and there isn't an opportunity to feed in my identity pool's Access Token and Identity ID.

@mlabieniec
Copy link
Contributor

@KylePalko the authentication i.e. signIn, signUp, signOut etc. works specifically with User Pools. I believe what you might be referring to is signup with MFA? That's when you would pass a auth code, which would be after signUp/signIn if you've enabled MFA with the confirmSignIn method and similarly with the confirmSignUp.

@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
question General question
Projects
None yet
Development

No branches or pull requests

2 participants