Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Authentication in Google Cloud Mobile Backend Starter in Android

Can we implement custom authentication in Mobile Backend Starter? Instead of google account, I want users to login using facebook account. Is this possible?

like image 562
JR Galia Avatar asked Jan 09 '14 12:01

JR Galia


1 Answers

To answer your question, yes it's possible to implement other OAuth2 authorizations like Facebook, LinkedIn or Twitter.

Here's an aswer with code examples how to achieve this.

In short you have to implement your own Authenticator and update @Api annotation to take the custom authenticator into account.

@Api(name = "example", authenticators = { CustomAuthenticator.class })

More about custom authenticators can be found in Google documentation.

like image 161
tomrozb Avatar answered Oct 01 '22 22:10

tomrozb