GithubHelp home page GithubHelp logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
The sample code saves everything in a session cookie. It looks like you want to 
spin up a database to save the accessToken. Basically everything stored in 
$_SESSION should be removed and swapped with a database.

The next step is to identify the user visiting your website.  This means you 
want to implement an *authentication* system in PHP.

If you are starting from scratch, I would recommend looking at the following 
frameworks that do it for you.

http://symfony.com/doc/2.0/book/security.html
http://codeigniter.com/user_guide/libraries/sessions.html
http://book.cakephp.org/view/1250/Authentication


Once you are able to identify a user visiting your website, you can then 
associate a google+ id, access token, etc with the user visiting your website.

There's a discussion about this on the Google+ Platform mailing list:
https://groups.google.com/forum/#!topic/google-plus-developers/U4SLlbEz9BE
https://groups.google.com/forum/#!topic/google-plus-developers/Qo-veKiARI0


Original comment by [email protected] on 9 Oct 2011 at 10:37

  • Changed state: Invalid

from google-api-php-client.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 29, 2024
Thanks for your reply although half of it really doesn't make sense to me.  
Basically once I approve a domain or application to access my google plus 
information that application shouldn't have to ever be authorized again.  At 
least thats the ideal way.  So what I'm gathering from you is that once that 
"Connect Me" button is clicked the first time I should store the returned info 
that authorizes the application somewhere and then every time the application 
is loaded pull that info from the database and not that google + authorization??

Original comment by [email protected] on 10 Oct 2011 at 1:09

from google-api-php-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.