Login with Google Plus on My Website

后端 未结 4 2185
暖寄归人
暖寄归人 2021-01-13 09:16

I\'m very new to web development. I have searched for login with Google plus and found several good tutorials. But they seems to be very old (most of them from 2011). Why?

相关标签:
4条回答
  • 2021-01-13 09:54

    Google APIs use the OAuth 2.0 protocol for authentication and authorization. Google supports several OAuth 2.0 flows that cover common web server, JavaScript, device, installed application, and server to server scenarios. The Previous Versions of OAuth has been deprecated by Google.

    Here is how it works : https://developers.google.com/accounts/docs/OAuth2

    To Get Started with Coding,

    https://code.google.com/p/google-plus-php-starter/

    Just download the project and Follow the steps mentioned.

    I have tried this recently and it's working 100% fine.

    0 讨论(0)
  • 2021-01-13 10:03

    I'm in a Google presentation at the moment and apparently they have just launched Google+ sign-in, which allows you to do stuff like this much more elegantly.

    I don't know any more about it than that, really, but it certainly seems worth a look.

    0 讨论(0)
  • 2021-01-13 10:08

    For this you have to use google client Api library for php

    and after that, you need to generate some key (like client id, client secret key, simple API key for Google)

    then you have to use these API and use the keys generated. You can find the complete procedure and documents at there corresponding websites...

    If you neeed the working tutorial.

    0 讨论(0)
  • 2021-01-13 10:18

    I would suggest making use of the following tutorial Login with Google Account OAuth. It explains calling the correct methods and saves the user data to your database. Plus it was published today.

    0 讨论(0)
提交回复
热议问题