i am currently developing an api and i wanted to use oauth 1.0a. However i can't seem to find any good reference on how implemenet oauth 1.0a (Server/Provider). Any ideas where i can get such document? or suggestions where to look?
Link: http://oauth.net/code/
Go to Section "PHP"
There is an extension to php that supports OAuth. It was written by John Jawed. An example can be found here and a walkthrough is also available. This pecl package is considered the de facto standard by Rasmus Lerdorf.
Related
Is there something like Hybridauth3, Loginza, or uLogin (but not those as I understand they are not supported by the teams anymore)? Hybridauth is too complex for me for simple auth.
As long as you know how to use code libraries (packages) here is one that is rather popular: https://github.com/laravel/socialite
This one deals with just about any OAuth2 services: https://packagist.org/packages/league/oauth2-client
And here we have a list of SSO packages provided via the composer package manager: https://packagist.org/?q=sso&p=0
Hope this helps you out.
Have you looked at thephpleague's package. Their pakages are always well maintained.
https://github.com/thephpleague/oauth2-client
and even specifics for:
Google (https://github.com/thephpleague/oauth2-google) and
Facebook (https://github.com/thephpleague/oauth2-facebook)
I have used auth libraries from here
opauth and they work quite well.
Libraries from oauthlogin, are also pointed to be reliable but not free
I have been struggling to find an active open-source PHP project that supports OAuth 2.0 as a server. There are tons of client examples that connect to Facebook, Twitter, etc. but as more and more people want to expose their own services through an API I'm a bit surprised the open source community hasn't addressed this need already. It's not that there is nothing but what's there is mostly out-of-date, little-to-no documentation, and very little to no activity in terms of current development and conversation.
Am I missing a good open-source option out there? Does anyone know of any commercial options? I really need to get something in place soonish and I personally don't have the bandwidth or security credentials to tackle this problem myself.
After much searching around I believe I have found the best solution for PHP'ers out there. Opinions are a dime a dozen but here's my favourite:
http://bshaffer.github.io/oauth2-server-php-docs/
Very active, high quality conversation and a solid product along with good (and improving) documentation.
Here is the list of available server and client libraries:
http://oauth.net/2/
which leads to a github project which is maintained.
oauth2 server by php league is much more followed and downloaded project on github. My personal experience has been awesome and the best part is it's documentation. Excellent implementation of oauth2.
According to http://www.zimuel.it/oauth2-apigility/ & http://apigility.org/documentation/auth/authentication-oauth2
You now can implement OAuth 2.0 Server using the open source project Apigility, with Brent Shaffer's implementation underneath...
in the end...
The OAuth2 implementation in Apigility uses the oauth2-server-php
library by Brent Shaffer. Apigility uses a PDO database to store all
the information related to the OAuth2 protocol. You can create your
database using the schema reported in the file
/vendor/zfcampus/zf-oauth2/data/db_oauth2.sql under your Apigility
installation folder (zf-apigility-skeleton).
Is there some code out there (under BSD or similar license preferably) that implements provider support for OAuth without needing PECL OAuth extension? Zend Framework's Zend_Oauth is pretty good, but it is only the consumer side. So I wonder if there's something like that but for doing the other side (i.e. making OAuth server).
Note that I'm not looking for how to do that with pecl/oauth - this I already have, see for example, Set up a PHP OAuth Provider - but unfortunately not all people can install PECL extensions, so I'm looking for some solution that would reduce requirements.
Have you taken a look at http://pear.php.net/package/HTTP_OAuth/?
I've ended up making some implementation for Oauth provider for Zend Framework, which can be seen here: https://github.com/smalyshev/Zend_OAuth_Provider
I'll improve it if time permits but it works for me right now.
Before I go and write a wrapper for Facebook and oAuth 2.0 I was wondering if anyone knew of any code out there that anyone else has used already.
There is an extension to PHP that supports OAuth. It was written by John Jawed. An example can be found here and a walkthrough is also available.
This pecl package is considered the de facto standard by Rasmus Lerdorf.
Andy Smith has written a basic PHP library for OAuth.
Cal Henderson has contributed a simple OAuth library that primarily handles signing.
HTTP_OAuth is a PEAR package developed by Jeff Hodsdon and Bill Shupp (Digg). You can try it out using this tool.
There is now an OAuth component for CakePHP.
Justin Richer has developed a plugin for the Elgg social networking platform, based on the basic PHP library. This library allows Elgg to act as both an OAuth client (to access other services) and server (allowing OAuth-protected access to the Elgg API). The library supports both version 1.0 and revision 1.0a simultaneously. Documentation can be found on the Elgg wiki.
Zend_OAuth was contributed by Pádraic Brady. The source code can be found here.
Source: http://oauth.net/code/
I've used the PHP-OAuth2 library by adoy to write a sample OAuth 2.0 client.
The docs at the time of writing describe it as a Light PHP wrapper for the OAuth 2.0 protocol (based on OAuth 2.0 Authorization Protocol draft-ietf-oauth-v2-15)
Take a look at PHP's OAuth extension or http://code.google.com/p/oauth/.
How to use oAuth with PHP ? I can't install oauth class with pecl because I'm using share hosting.
I found
http://code.google.com/p/oauth-php/
but there is no example for client. I want to use oauth for Google API.
Here is your example: http://code.google.com/p/oauth-php/wiki/ConsumerHowTo
You can also read through http://code.google.com/apis/gdata/docs/auth/oauth.html to find out the specifics on Google.
I got it and I develop my own client library base on http://googlecodesamples.com/oauth_playground/ (svn sourcecode)
There are plenty of libraries available for PHP. Check out the list on http://oauth.net/code/
You should probably have a look at:
http://www.dhruvb.com/blog/content/tutorial-using-oauth-google-plus-api
Also, the code samples are present at:
https://github.com/dhruvbaldawa/Tutorials/blob/master/google+/google_plus.php
I guess you mean this offical library:
Offical API Library