-
Notifications
You must be signed in to change notification settings - Fork 239
Opauth on PHP frameworks
Opauth works well with other PHP frameworks.
- CakePHP (maintained by uzyn)
- CodeIgniter (maintained by destinomultimedia)
- CodeIgniter (maintained by mcatm)
- FuelPHP (maintained by andreoav)
- [Laravel] (https://github.com/FakeHeal/opauth-laravel) (maintained by fakeheal)
- [PrestaShop] (https://github.com/Onasusweb/PrestaShop-Opauth) (maintained by [Onasusweb] (https://github.com/Onasusweb))
- Silex (maintained by icehero)
- Yii Framework (maintained by kahwee)
- Zend Framework 2 (maintained by lorenzoferrarajr)
- Kohana 3.3.x (maintained by Bodom78)
- Symfony2 (maintained by damianociarla)
- Symfony2 integration with FOSUserBundle (maintained by damianociarla)
- WordPress
- Drupal
- Zend Framework
- Symfony2 Bundle
- Slim Framework
- Phalcon
- Laravel 5
Edit and add to this list to make a request.
Refer to the example/ in Opauth on how you can implement Opauth on your vanilla PHP project.
Or refer to the wiki for more in-depth details.
This article acts as a quick & basic guideline on developing Opauth plugin for other frameworks, eg. CakePHP or WordPress.
The points below are listed not in any sequential orders and only acts as recommendations. Refer to CakePHP-Opauth for reference when in doubt.
-
Assuming you are developing a plugin for Bar Framework.
-
Name your GitHub package
bar-opauth
.
This ordering, along with Opauth strategy package naming convention, eg.opauth-facebook
, shows where Opauth stands when being used together. For insance,bar-opauth
andopauth-facebook
, when combined together, makesbar-opauth-facebook
and shows that Opauth is in the middle, interfacing between Bar Framework and Facebook authentication. -
Do not include Opauth package unless absolutely necessary. Submodule it, or even better, include it via Composer.
You can, then, make a zip package containing the submoduled Opauth core as an easy download for non-Git users. -
Do not include Opauth strategies.
If feasible, include an obviousStrategy/
directory for users to place Opauth strategies. -
Your plugin should handle:
- Loading of Opauth configs, with proper paths set for your plugin.
- Instantiation of Opauth.
- Routing of traffic to Opauth.
- Handling of callback.
- If possible, validate auth response at plugin level before passing it back to application.
- Auth response to be passed back to application.
-
Include instructions, typically a README, on how to install and use your plugin, especially on how to expect auth response.
-
Announce your creation or your intention at Opauth Google groups.
Questions? Ask us on Google Groups or IRC (#opauth on Freenode)
-
Home
with installation and usage instructions - List of strategies
- Opauth configuration
- Auth response
- Security in Opauth