Log in with Google on Parse (open source server)

Now that the parsing server is open source, the community behind it has already added many interesting features. In the original version (parse.com) we were able to log in with Facebook and Twitter. Now we have Google, LinkedIn, GitHub, etc.

There are 2 libraries in iOS (PFFacebookUtils and PFTwitterUtils) that allow us to easily use Facebook and Twitter authentication in our application and create a PFUser object.

I would like to allow my users to log in with my Google account. Since there is no PFGoogleUtils library, I could not figure out how to use

+ (BFTask<__kindof PFUser *> *)logInWithAuthTypeInBackground:(NSString *)authType authData:(NSDictionary<NSString *, NSString *> *)authData 

PFUser method.

I tried looking at PFTwitterUtils and PFFacebookUtils, but no luck. I even tried logging in with Twitter and Facebook without using PFTwitterUtils and PFFacebookUtils, but I don't know if this is a good idea.

So, is there anyone here who has successfully integrated Google authentication with their Parse app on iOS?

thanks

+5
source share

Source: https://habr.com/ru/post/1245853/


All Articles