scharrier / li3_socialauth Goto Github PK
View Code? Open in Web Editor NEWLithium universal oAuth plugin
Lithium universal oAuth plugin
Hi,
Is there another way to load add this awesome library without using composer?
Thank you.
Minh
Hi,
When I try to clear the session with Auth::clear('Facebook'), the session is cleared but when I go to my login-action the session is back again. What's the best way to logout Facebook in my app?
I am no expert on using composer but I ran into an issue using composer with your li3 plugin. I have no idea why it is happening but when you run composer update it pulls down your repository perfectly but when it pulls in the external lib (oauth lib from Lusitanian) it fails to get "dev-master". It works if you change the composer.json in your project to read:
"require":{
"lusitanian/oauth": "0.1.*@dev"
}
I don't know enough about composer to say why because if we look at the composer file in lusitanian/oauth we can see an alias of "dev-master": "0.1-dev" which I assumed would work.
Hi, I have to create a link li3_socialauth->scharrier/li3_socialauth to make it works or lithium will say li3_socialauth library not found.
Is there a way to make it work without creating that link?
Thank you very much.
Hi, could you update the composer?
Hi,
I got this error:
[Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] PHP Fatal error: Uncaught exception 'OAuth\Common\Storage\Exception\TokenNotFoundException' with message 'Token not found in session, are you sure you stored it?' in /works/minhna/public_html/CMP/V0/libraries/lusitanian/oauth/src/OAuth/Common/Storage/Session.php:44
[Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] Stack trace:
[Wed Oct 16 16:52:11 2013] [error] [client 127.0.0.1] #0 /works/minhna/public_html/CMP/V0/libraries/li3_socialauth/extensions/adapter/security/auth/Twitter.php(58): OAuth\Common\Storage\Session->retrieveAccessToken('Twitter')
I tried to dump $_SESSION in retrieveAccessToken function, it's empty
array(1) { ["oauth_token"]=> array(0) { } }
Thank you.
Hi my friend!
After long times programming, i am find the solution. but....
When I define scope for facebook, the adapter don´t read config file. After hours, i´m change the the adapter file (facebook.php) to:
original:
public function __construct(array $config = array()) {
$config += array('tokenKey' => 'oauth_token', 'scope' => array('email')) ;
parent::__construct($config) ;
}
my solution:
public function __construct(array $config = array()) {
$config += array('tokenKey' => 'oauth_token', 'scope' => array(MYSCOPES)) ;
parent::__construct($config) ;
}
When I analyzed the code, I realized that I downloaded the latest version of the Lusitanian, they changed the variable "scope" to "scopes"
this influences somewhere in the code?
thanks!
Just figured it out:
Auth::config(array(
'google' => array(
'adapter' => 'Google',
'key' => '(got it from Client ID for web applications - Client ID)',
'secret' => '(got it from Client ID for web applications - Client secret)'
)
));
Thank you.
Hi,
I want to implement the google-api-php-client (https://github.com/google/google-api-php-client) by login in by this library. I should provide an AccessToken. Where can I get is token after a successful login?
Thank you!
Jeff
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.