How to use Google account to log in to own website with openid?
-
12-01-2021 - |
Question
I don't How to start. please tell me.
I was try google-api-php-client https://code.google.com/p/google-api-php-client/
Got this error
<!doctype html>
<html>
<head>
<title>OAuth2 Sample</title>
<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Droid+Serif|Droid+Sans:regular,bold' />
<link rel='stylesheet' href='examples/oauth2/css/style.css' />
</head>
<body>
<div id='container'>
<div id='top'>
<div id='identity'>
<br />
<b>Fatal error</b>: Uncaught exception 'apiServiceException' with message 'Error calling https://www.googleapis.com/buzz/v1/people/@me/@self?alt=json: (403) Access Not Configured' in /home/ape/domains/xxx.com/public_html/oauth2callback/src/io/apiREST.php:93
Stack trace:
#0 /home/ape/domains/xxx.com/public_html/oauth2callback/src/service/apiServiceResource.php(130): apiREST::execute(Object(apiServiceRequest))
#1 /home/ape/domains/xxx.com/public_html/oauth2callback/src/contrib/apiBuzzService.php(249): apiServiceResource->__call('get', Array)
#2 /home/ape/domains/xxx.com/public_html/oauth2callback/index.php(54): PeopleServiceResource->get('@me')
#3 {main}
thrown in <b>/home/ape/domains/xxx.com/public_html/oauth2callback/src/io/apiREST.php</b> on line <b>93</b><br />
Solution
Kindly give a go to these articles first:
http://jvance.com/pages/JQueryOpenIDPlugin.xhtml
http://remysharp.com/2007/12/21/how-to-integrate-openid-as-your-login-system/
Hope this helps.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow