News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Richard Thomas' Blog:
Solar Framework Shorts - Using Multiple auth adapters
April 07, 2010 @ 15:56:30

Richard Thomas has posted another "Solar Short" to his PHPJack blog today dealing with a method for using multiple authentication methods in a single Solar framework installation.

What if you want to use multiple methods? OpenID? Facebook Connect? Saml? or one of the other dozen+ solutions that you might use.. What to do? One thing to keep in mind, Auth happens really early in the bootstrapping process so things like SQL may not be available yet unless you specifically loaded it in the config.. Then you need to load the proper auth module and call it as needed..

He includes a code example of how it would work - extending the Solar_Auth_Adapter to create a single "multi-adapter" with a switch to evaluate and load/use the correct authentication method. It uses the Solar_Config object to set the Auth Adapter when it's loaded so you can even use multiples in the same page load if you need it.

1 comment voice your opinion now!
solar framework multiple authentication adapter tutorial


blog comments powered by Disqus

Similar Posts

Michael Kimsal: Why do no almost no web frameworks come with any authentication/authorization?

Pieter's Blog: Zend_Form with XML Tutorial

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels

Phish Tank: Install & Configure Apache+PHP+ZendFramework+OracleDbXe On Windows In Minutes

Stefan Mischook's Blog: Object Oriented PHP Tutorial Updated - Steps 18 - 22


Community Events

Don't see your event here?
Let us know!


configure laravel podcast interview framework introduction example release api library opinion php7 part2 application conference performance symfony2 community voicesoftheelephpant series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework