markomarkovic / cakephp-plugin-persona
Mozilla Persona CakePHP Plugin
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
pkg:composer/markomarkovic/cakephp-plugin-persona
Requires
- php: >=5.3.0
- composer/installers: *
This package is not auto-updated.
Last update: 2020-01-24 14:50:04 UTC
README
Requirements
- php cURL support
- CakePHP > 2.?
Installation
- Clone/Copy the files in this directory into
app/Plugin/Persona - Ensure the plugin is loaded in
app/Config/bootstrap.phpby callingCakePlugin::load('Persona', array('bootstrap' => true)); - Include the component in the Controller where you're needing it:
public $components = array('Persona.Persona'); - Include the helper in your controllers:
public $helpers = array('Persona.Persona');
Using composer
Ensure require is present in composer.json. This will install the plugin into app/Plugin/Persona:
{
"require": {
"markomarkovic/cakephp-plugin-persona": "1.0.*"
},
"extra": {
"installer-paths": {
"app/Plugin/{$name}/": ["markomarkovic/cakephp-plugin-persona"]
}
}
}
Usage
- Take a look at the
examples/Controller/UsersController.phpand set your ownsign_inandsign_outmethods. These are going to be targeted from the front-end using XMLHttpRequest - Take a look at the
examples/View/Layouts/default.ctpfor example login/logout buttons and JavaScript implementation