-
Notifications
You must be signed in to change notification settings - Fork 451
FB, Google and Amazon users in user pool #608
Comments
Same problem here.. Based in the issue #500 when the Facebook is added as a identity provider for the User Pool it should create the user automaticaly into the User Pool, but this isn't true, it only creates a federal identity but no user in the user pool is created. Almost a month trying to solve that with no luck.. |
It made a Facebook user in the pool for me on Nov 30. I made one with Google, Facebook and user_pool. I should say that I was using the Oauth URL directly and not using the SDK. Facebook_1613644848950245 | Enabled | EXTERNAL_PROVIDER | Dec 1, 2017 2:50:38 AM | Nov 30, 2017 9:47:14 PM |
@jonsmirl does It mean customization UI from cognito pool? Although I design iOS App, I stuck same problem in it. I can get token from FB,Google, and in federate identity pool console, but I can't auto sign up when I log in from Fb or Google.... |
@jonsmirl |
For everyone who is passing throw this problem, we opened a support ticket with AWS and after that we're able to create users into the user pool via social login, the steps provided by the support are:
|
I used this method, -- Use the Authorization endpoint for login., from the above post. Note that there is also aws-amplify Many people are confused by the two pool types. The User Pool is an authentication pool. Users interact with this pool to prove who they are. For many years Cognito User pools were a stand-alone authentication scheme. Only recently has the UI been added to bounce over to Googe/FB and authenticate there. You can also authenticate by directly interacting with G/FB, either directly via Oauth or by using their SDKs. aws-amplify uses the SDKs. Besides G/FB there are many other authentication providers -- Microsoft, Auth0, Github, Twitter, etc. Once you have the ability to prove who you are (authentication) you use an Identity Pool to authorize your access into AWS and get credentials. Identity pools verify this proof of who you are and then map it into AWS credentials. Identity pools are not a database of users. It is possible to use AWS only via the Identity Pool if all of your users are authenticated externally by Google/FB/Auth0/Github/etc. In summary - there is only one mass authorization scheme for AWS, the identity pool. There can be many authentication providers -- Google, FB, Github, User Pool, Auth0. As a convenience the new User Pool UI has added the Login In with FB/Google buttons. Those buttons still go off to G/FB to authenticate. The use of User Pool is optional. You can use User Pool if you want to provide a way for people to log into your app other than via a Social provider. If are happy with only allowing Social logins you can ignore User Pools. For example in a log-in dialog where it says: enter user name and password, that's User Pool. The Social buttons go off to their respective Social providers. It is perfectly valid to only offer Social buttons. There is no requirement that you use User Pool for the name/password support. AWS supports Developer Authenticated Entities or you can use an external providers like Auth0. PS - this terminology is very confusing. You might ask why am I using the authorization endpoint to authenticate? That authorization endpoint is authorizing you into Google/FB not AWS. You need to use it to get an authentication token from Google/FB and then hand it off to the Identity Pool to be authorized on AWS. |
Now, I want to call getUserAttributes method on the redirected page(suppose localhost |
@joe455 was your user added to a User Pool or Identity Pool? can you post some code? |
@jonalexander We should be using |
I'm having the same problem as @joe455. A user is successfully created in my userPool but how do I get the actual attributes of the user that was created through FB? @itrestian can you help? |
Any sample code that will register facebook/google account to userpool? I did a lot of research about this, still got no luck. |
@verbeeckjan you just need to map them, this is done into the 'Attribute Mapping', it's the last item in your userpool side menu. @sanjosedennis7593 actually you don't need a code to create this, after the initial setup (FB app creation, add identity providers into your userpool - there's a menu into your userpool for that -, setup the app clients) you just need to redirect your users in the frontend to the URL: https://your_domain.auth.us-east-1.amazoncognito.com/oauth2/authorize?redirect_uri=your_redirect_uri&response_type=token&client_id=xxxx& identity_provider=Facebook If everything works as expected the FB login screen will show up, the user will accept it and a token you be pass as a get parameter to your application. |
I configured everything exactly as @douglasgimli described, but on the login URL I keep getting |
@matyaspeto I finally got things working after following the documentation for generating that url... https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html |
after sign in the user from facebook app i can able to redirecting to this page SUCCESSFULLY but after when am clicking with continue with facebook # # throwing an error like this |
@balakrishna222111 do you have your FB app set up properly? Also while your app is not published, only you as it's developer has access to it, so if you try to use it in Chrome incognito mode, in an other tab you should log in to your FB account I guess. |
@matyaspeto @cadejscroggins @jonsmirl |
@douglasgimli After receiving the access_token,id_token what should I do ... should I pass this id_token to aws.config.credentials and how would I get a reference of this particular logged in user |
@Zorail @balakrishna222111
Now what should be next step to get current user and jwttoken?? |
I am creating user registration module in which I am adding users into userpool.
Check my following scenario :
Can you provide me solution to keep uniqueness in userpool ?
The text was updated successfully, but these errors were encountered: