I'm looking for a good OpenID implementation (only consumer) for the Laravel 4 framework to use with a custom enterprise provider at my work.
I a little research i found so far that:
The HybridAuth project used by a lot of people is dead ... see here and here
The PHP-OpenID project seems old and lack of documentation at least in the github page.
Ohter kind of projects like oauth-4-laravel looks really awesome but in the docs i don't see any support for generic OpenID (corect me if i'm wrong) so is not a good option this time.
So the question is:
Is there any good library to use that implements OpenID on Laravel 4 ??
By good i mean still alive (fixing issues and support) and with enough documentation to make an integration with Laravel 4.
Any help appreciated.
I'm currently looking into Mozilla Persona for user login/logout in my projects.
Maybe it's not exactly what you are looking for, but still is pretty nice.
site: https://login.persona.org/about
package: https://packagist.org/packages/jyggen/persona (including Laravel provider)
Related
I've begun using Laravel 5.4 instead of Spring boot for a web application I'm currently developing and it's going great. I'm really enjoying the lack of verbose boilerplate that Java/Spring has. However, one of my requirements is that the API must be HATEOAS.
I've literally searched for days for research material and only come up with a couple of not-so-popular libraries. Is there a reason for this complete lack of exposure of HATEOAS for Laravel when for other web application frameworks there's at least some material?
Edit: I'm not trying to talk down on Laravel, I just want to know why there's no resource on HATEOAS implementations with Laravel as the framework, or if I've missed it, where I can read up on some HATEOAS Laravel goodness.
Since Laravel uses the Symfony underneath, I think this repo would work: https://github.com/willdurand/Hateoas
My question is rather simple. Is there a system for CodeIgniter that allows both local and 3rd party login? (Such as FB/Twitter/Google etc.)
I've tried A3M but it's hard to use and requires tinkering before it will even work out of the box, as is the case with outdated software.
My current solution is flexi auth, however it doesn't offer 3rd party login at all, and after an email to the developer it doesn't look like he's planning on integrating it anytime soon.
So does anyone know of a good system that is up-to-date and provides both 3rd party and local login?
If there isn't one, what other PHP framework does have such a package?
Edit for Clarity: I'm looking for a system that does both these things. While I appreciate the answers and comments with systems that I can integrate myself, the end result of that will be shaky at best. There's gotta be someone who's done this before, all integrated into one package so it's designed to work together.
I was also looking for something like this just a month ago, but unsuccessfully. The only framework that has it all integrated in a simple way that I have seen is meteor, but it is not a PHP framework.
I had to do it myself by wrapping different PHP libraries in CI libraries. The source code is on github: CI Twitter and Who You Meet (a live web app), that has Twitter, LinkedIn and Facebook authentication and also a lot of local authentication logic with email verification and password recovery.
I know it can be considered a shameless promotion, but I hope it is useful. Although it is not exactly what you are looking for, it seems to be rather stable, so feel free to re-use it.
Maybe you will have time to extract all this logic in a standalone library (like I did for twitter) for other folks to use :)
If you want a CI OAuth2 implementation you can use this library which is both client and server:
https://github.com/alexbilbie/CodeIgniter-OAuth-2.0-Server
Otherwise for OpenID use this library:
https://github.com/EllisLab/CodeIgniter/wiki/OpenID
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).
I am trying to find a tutorial on how to build an oAuth2 Provider with PHP. I googled about it and no results came up. Exists out there any guides on how to do this? Or something like a library that can help me implement an oAuth2 Service Provider with PHP?
https://github.com/bshaffer/oauth2-server-php this will be helpfull for you to get idea.
I've been looking for the same thing for a while now, but I haven't found much. oAuth2 is still in draft. The current version as of this writing is 30.
The best things I'v found are a Google Code project that supports version 9 of the spec, which could be fairly outdated. You can find that project here.
I have also found this article on how to write it yourself, though I haven't looked at the post in sometime - How to write a complete OAuth Provider in PHP5.
It looks like there is some movement with the Zend Framework 2 which looks hopeful. It looks like an RFC was in June, 2012: RFC - OAuth 2.0
I'm certainly anxious for something to use myself.
Similar questions have been asked as well for reference which include the links to projects referenced above:
Set up a PHP OAuth Provider
Are there OAuth 2 server side PHP or Java implementations?
Hope that helps!
Anyone find/use/recommend an oAuth2 provider library/class?
I'm looking for a good solution to integrate a forum into a symfony application.
Something like phpBB would be excellent. I've seen phpBB plugins to integrate with symfony but that's not enough for my purposes, also, mapping database tables is a lame approach in my opinion.
If anybody knows a good working forum component for Symfony then I would really apreciate it. :)
Also, it needs to work with Doctrine.
Thanks!
I've found sfDoctrineSimpleForumPlugin Thanks for all the responses, hope this works :) !
The author made even some changes today after this post
If you're discounting the prestaForumConnectorPlugin which connects sfGuard and PHPBB3, then you may have to write your own connector. You should check if any resources exist on the websites of your favourite PHP forum.
One option is Invision Power Board (IPB) v3, as their developer resources explain how to integrate your own code (ie. symfony) into their system, including single sign-on: http://community.invisionpower.com/resources/official.html?category=41
I have integrated IPB v2 with symfony, and it wasn't ideal - there was no developer interface at that time to make IPB respect symfony. I had to hack around in the IPB source to make it work, but after discussing it with Invision was assured this would not be necessary with v3. This seems to now exist, which would be where I would start.
NB. IPB is not free, so hopefully this is not a sticking point for you.
I've integrated Phorum with symfony before - there's some old and semi-out of date documentation on the web for doing this, but essentially Phorum has an architecture that allows its user authentication to be easily overridden. You will then need to write a controller to wrap the forum calls too, and apply the main site templating (if you need that).
There are a couple of forums which use the Symfony frmaework. They are listed on the Symfony forum plugins page.
The most popular is the sfSimpleForum, which was built by Francois Zaninotto, one of the original Symfony developers.
There is little development in this area however, possibly because forums are the 'old' way of allowing users interact online and are gradually being replaced with new techniques.