opauth / google Goto Github PK
View Code? Open in Web Editor NEWGoogle strategy for Opauth
Google strategy for Opauth
Is this right??
$response->info['image'] = 'https://graph.facebook.com/'. $response->raw['id'] . '/picture?type=square';
Line 85 in 1.0-abstract
Looks like the README is not up to date :)
$ git clone git://github.com/uzyn/opauth-google.git Google
Cloning into 'Google'...
fatal: remote error:
Repository not found.
$
Invalid auth response: Missing key auth response components. this message thow when i authenticate with google. what´s the problem?
$this->auth_config = array(
'host' => "http" . (($_SERVER['SERVER_PORT'] == 443) ? "s://" : "://") . $_SERVER['HTTP_HOST'],
'path' => '/user/auth/',
'debug' => true,
'callback_url' => "{host}/user/auth/$strategy/oauth2callback",
'security_salt' => '...',
'callback_transport' => 'session',
'Strategy' => array( respective configs here
'Facebook' => array(
'app_id' => '...',
'app_secret' => '...',
'scope' => 'email'
),
'Google' => array(
'client_id' => '...',
'client_secret' =>'...'
),
'Twitter' => array(
'key' => '...',
'secret' => '...',
'scope' => 'email'
),
)
);
i get this on the response
Undefined index: opauth
on the line
$response = $_SESSION['opauth'];
i checked the $_SESSION thing its all blank.. same goes if i choose get / post they all remain blank.
the exact config etc works fine for both facebook and twitter.. am i missing something?
id_token is missing in credentials and would be great to be included...
credentials' => array(
'token' => $results->access_token,
'id_token' => $results->id_token,
'expires' => date('c', time() + $results->expires_in)
)
is there a working example or almost working example?
opauth
examples are very generic and I can't get google strategy to work.
Hi
I have all other startegies working except google
I put all the proper Return URL on the Oauth Credentials
Client ID for web application
Redirect URIs
http://localhost/git/opauth/example/google/oauth2callback
Javascript Origins
https://localhost/
but after login on Google's side I keep getting
Error :invalid_client
no support email
do you have any idea
Thanks for the help
Tibor
When I originally log into my website through Opauth, everything works perfectly. I have some pages that will import contacts or calendar events, and these pages work well too. The only issue is that after a while, I'll get an error when I go to these page, as if my request token has expired or I'm not authorized anymore.
I checked my refresh token, but it says it's not supposed to expire for another day. Is there a way to automatically try and refresh my session on the backend without having to make the user log back into Google?
Here is the error:
'code' => 'userinfo_error',
'message' => 'Failed when attempting to query for user information',
'raw' => [
'response' => false,
'headers' => 'HTTP/1.0 401 Unauthorized
Vary: Origin
Vary: X-Origin
WWW-Authenticate: Bearer realm="https://accounts.google.com/AuthSubRequest", error=invalid_token
Content-Type: application/json; charset=UTF-8
Date: Mon, 24 Nov 2014 02:55:13 GMT
Expires: Mon, 24 Nov 2014 02:55:13 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alternate-Protocol: 443:quic,p=0.02'
How can we get list out all the used and unused projects in GCP with the help of gcloud or some alternative)
i.e(How can we determine that the project is running or not?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.