loading
Please wait while loading...

Read more GD Enhancer

A good php class for image editing

http://www.gdenhancer.com/index.php?content=home

Read more A beautity place - Santorini

A beautiful Island in Greece

...........

Read more Free Litecoin

Get your litecoin wallet here
https://instant-e.com

Get free litecoin here
http://goo.gl/NAXc6Q

Read more A Great Website to earn Free Bitcoin

http://goo.gl/dowMTX

Read more Google Oauth 2.0 ask permission every time

I have made a application using google account for login. Reference to google's example, it's easy make the login work well. However, I'm face to a serious problem that google ask for permission approval every time. For a openid login, like facebook, we will ask permission in the first time only and for the next time, it should automatically complete the login and no need to approve by user again. For this purpose, I search from the internet and finally found the solution as following:

To make the application just ask permission for once, add the following line in the config

$client->setApprovalPrompt(auto);
...........
1 2 3 4 5 6 7 8 9 10