Adding the module
application/bootstrap.php file modify the call to Kohana::modules and include this module.
Kohana::modules(array( ... 'kopauth' => MODPATH.'kopauth', ... ));
Find and download strategies at https://github.com/opauth/opauth#available-strategies
Extract each into a separate folder in
Refer to each strategies documentation for usage and configuration information.
The kopauth config file is located in
You should copy this file to
APPPATH/config/kopauth.php and make changes there, in keeping with the cascading filesystem.
security_salt, Opauth will throw an error if you use the default value.
Add the required configuration for the strategies you added.
'Strategy' => array( ... 'Facebook' => array( 'app_id' => 'YOUR APP ID', 'app_secret' => 'YOUR APP SECRET', ), ... )
For more information about available configuration keys and values visit https://github.com/opauth/opauth/wiki/Opauth-configuration
This module uses session for data storage. If you have not done so, add a cookie salt to your
Cookie::$salt = 'YOUR SECRET SALT';
This module comes with the online demo included.
Once configured, browse to
http://yoursite.com/kopauth to access it. Note that this is disabled if your Kohana::$environment === Kohana::PRODUCTION.
The Kopauth class has additional methods to assist with authentication integration. View the example controller and views to help you get started.
This module is compatible with Kohana 3.3
Included Opauth version is 0.4.4
While in theory all strategies should work, only the following have been tested.