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

Authentication with Google, facebook, Twitter accounts #21

Closed
ghost opened this issue Jul 4, 2015 · 11 comments
Closed

Authentication with Google, facebook, Twitter accounts #21

ghost opened this issue Jul 4, 2015 · 11 comments
Labels

Comments

@ghost
Copy link

ghost commented Jul 4, 2015

Hello,

it's possible connect to meteor server with Google or Facebook account ?

tks

@ocram ocram added the question label Jul 7, 2015
@ocram
Copy link
Contributor

ocram commented Jul 7, 2015

Thanks for your question!

Unfortunately, this is not yet supported by this library. Sorry! Meteor itself (for the web) supports this, of course.

Having access to the Meteor#call(...) method, however, you could probably implement this yourself, if you'd like:

To connect with the third-party service (e.g. Facebook), one must (most likely) make a separate HTTP request to get a login token. After that, you can then use that token in some method call to your Meteor server using Meteor#call(...).

Hope that helps!

@cprakashagr
Copy link

Hi, this is now possible with the new pull request I have made. Kindly check here, https://github.com/cprakashagr/Android-DDP/tree/GoogleLoginHandler

@najeebullahshah
Copy link

@cprakashagr can you please refer to the method which will connect to meteor server via facebook login

@cprakashagr
Copy link

@najeebullahshah there is no such custom methods for facebook or google login at meteor accounts. Kindly see my code and use the facebook login accordingly.

@najeebullahshah
Copy link

@cprakashagr if i am not wrong you added method "registerWithGoogle" to the DDP settings parameters using Map but it uses the following paramters

         accountData.put("email", email);
    accountData.put("userId", userId);
    accountData.put("idToken", idToken);
    accountData.put("oAuthToken", oAuthToken);
    accountData.put("googleLoginPlugin", googleLoginPlugin);

Can you please tell me what parameters should i change for facebook.

@cprakashagr
Copy link

@najeebullahshah Man, I haven't worked with the facebook oAuth API as of now. This link might help you, https://developers.facebook.com/docs/facebook-login/android#get_current.

@cprakashagr
Copy link

Kindly be updated about the LinkedIn Login as well.

@ocram
Copy link
Contributor

ocram commented Dec 13, 2015

For Google and LinkedIn, please take a look at @cprakashagr's code here: #40

For Facebook and Twitter, someone would have to write something similar that consists of ...

  • server-side code in JavaScript for use with Meteor (the bigger part)
  • client-side code in Java/Android for use with this library (the smaller part)

@gopinath-langote
Copy link

Hello Everyone,
I have implemented loginWithGmail functionality to Meteor DDP for my project. Using server side method. By loginWithUsername or registerWithUser name we should have password. but for loginWithGmail we don't need password. So I published method called createUser on server side and allows client to call it [ Specifically mobile client android / IOS ].this method takes userJson object containing user details like username,email,id [by google ],gender etc, which we will get by Google Auth in mobile app.And this method return me the document of created user. For sign in with google , i have used GoogleAuth by goole. One can ping for more details and implementation stuff. If one could allow me to insert code in existing library of Meteor class . We can go ahead.

@ocram
Copy link
Contributor

ocram commented Mar 24, 2016

@gopinath-langote Thanks! In what way is your solution for "Gmail" different from @cprakashagr's solution for "Google+" linked in the Extensions.md file in this repository?

@ocram
Copy link
Contributor

ocram commented Mar 24, 2016

Closing, as the Google case has been solved, at least.

For Facebook or Twitter integrations that become available, please open a separate issue in the future :)

Thank you!

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

No branches or pull requests

4 participants