JR Galia
JR Galia

Reputation: 17269

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?

Upvotes: 6

Views: 259

Answers (2)

tomrozb
tomrozb

Reputation: 26271

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.

Upvotes: 1

Vrashabh Irde
Vrashabh Irde

Reputation: 14367

I dont see any official support/docs/online tutorials/experiments to do this yet unfortunately. Will be on the lookout since I am also rolling in one MBS instance. Well there is the OPEN mode which allows unauthenticated requests.

Upvotes: 0

Related Questions