A
A
alexander0051312014-12-05 21:19:42
Google
alexander005131, 2014-12-05 21:19:42

How to set up authentication on the site using a google account?

Please tell me how to set up authentication on the site using a google account? I read the manual - Google uses OAuth 2.0, they have api. I am using java. From what is clear - you need to register the application in the Google console, pull out the json file with the keys, use the api on your site. But it’s not entirely clear with the latter - you need to create a form for entering a password login, send them to the desired link, and then catch a response from Google and pull out a token, which you can then use in requests to api? Maybe there are some simple examples?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2014-12-05
@mrRontgen

Everything is written here https://code.google.com/p/google-oauth-java-client/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question