2

I'm looking for a way to add social sign-in to our website and I found the Google Identity Toolkit solution.

It looks great and easy to set-up, however I am wondering if there is a way to customize this Toolkit in order to add other third-party authentication provider (like Linkedin or Twitter)

I have found this thread which was talking of adding it to the v3, but apparently there is still nothing available?

Théo camb.
  • 198
  • 1
  • 5
  • I'm in the same path, trying to find how to implement it in my ASP.NET C# webapp – Liron Harel Jan 19 '16 at 17:31
  • Finally I decided to go using Pac4J for more flexibility (http://www.pac4j.org/) I'm sorry @IdanShechter, I don't know any equivalent in C#. I hope you'll find something! – Théo camb. Jan 25 '16 at 12:01

1 Answers1

1

You can use the Restapi Identity Toolkit.

verifyAssertion

So you can log in with your account: Google, Facebook, Twitter, Github.

For example login with google will look like this:

POST ...verifyAssertion?key={{server_key}}

with body:

{
  "postBody": "id_token=token_value&providerId=google.com",
  "requestUri": "http://localhost",
  "returnIdpCredential": true,
  "returnSecureToken": true
}

where providerId is a provider type and id_token is a oauth2 token of google account in this case

Amruth
  • 5,792
  • 2
  • 28
  • 41