Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

markomarkovic/cakephp-plugin-persona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mozilla Persona CakePHP Plugin

Requirements

  • php cURL support
  • CakePHP > 2.?

Installation

  1. Clone/Copy the files in this directory into app/Plugin/Persona
  2. Ensure the plugin is loaded in app/Config/bootstrap.php by calling CakePlugin::load('Persona', array('bootstrap' => true));
  3. Include the component in the Controller where you're needing it: public $components = array('Persona.Persona');
  4. 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

  1. Take a look at the examples/Controller/UsersController.php and set your own sign_in and sign_out methods. These are going to be targeted from the front-end using XMLHttpRequest
  2. Take a look at the examples/View/Layouts/default.ctp for example login/logout buttons and JavaScript implementation

About

⛔ [DEPRECATED] Mozilla Persona CakePHP Plugin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published