2017 © Pedro Peláez
 

cakephp-plugin opauth

CakePHP Opauth plugin

image

lubos/opauth

CakePHP Opauth plugin

  • Friday, March 21, 2014
  • by LubosRemplik
  • Repository
  • 2 Watchers
  • 5 Stars
  • 260 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 65 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

CakePHP plugin for Opauth

Original source https://github.com/uzyn/cakephp-opauth, (*1)

CakePHP 2.x plugin for Opauth., (*2)

Opauth is a multi-provider authentication framework., (*3)

Requirements

CakePHP v2.x
Opauth >= v0.2 (submoduled with this package)
Expandable, (*4)

Installation

  1. Use composer. Add following to the composer.json file:, (*5)

    "require": {
        "lubos/opauth": "~1.0"
    }

    And run php composer.phar update, (*6)

  2. Download Opauth library as a submodule., (*7)

    git submodule init
    git submodule update
    
  3. Add this line to the bottom of your app's Config/bootstrap.php:, (*8)

    <?php
    CakePlugin::load('Opauth', array('routes' => true, 'bootstrap' => true));
    

    Overwrite any Opauth configurations you want after the above line., (*9)

  4. Load strategies onto Strategy/ directory., (*10)

    Append configuration for strategies at your app's Config/bootstrap.php as follows:, (*11)

    <?php
    CakePlugin::load('Opauth', array('routes' => true, 'bootstrap' => true));
    
    // Using Facebook strategy as an example
    Configure::write('Opauth.Strategy.Facebook', array(
       'app_id' => 'YOUR FACEBOOK APP ID',
       'app_secret' => 'YOUR FACEBOOK APP SECRET',
       'redirect' => '/'
    ));
    
  5. Go to http://path_to_your_cake_app/auth/facebook to authenticate with Facebook, and similarly for other strategies that you have loaded., (*12)

  6. After validateion you will be redirected to Opauth.Strategy.Facebook.redirect url, (*13)

Note:

If your CakePHP app does not reside at DocumentRoot (eg. http://localhost), but at a directory below DocumentRoot (eg. http://localhost/your-cake-app),
add this line to your app's APP/Config/bootstrap.php, replacing your-cake-app with your actual path :, (*14)

<?php // APP/Config/bootstrap.php
Configure::write('Opauth.path', '/your-cake-app/auth/');
Configure::write('Opauth.callback_url', '/your-cake-app/auth/callback');

The Versions

21/03 2014

dev-master

9999999-dev

CakePHP Opauth plugin

  Sources   Download

The Requires

 

21/03 2014

1.0.2

1.0.2.0

CakePHP Opauth plugin

  Sources   Download

The Requires

 

21/03 2014

1.0.1

1.0.1.0

CakePHP Opauth plugin

  Sources   Download

The Requires

 

17/04 2013

dev-composer

dev-composer http://opauth.org

Opauth plugin for CakePHP v2.x, allowing simple plug-n-play 3rd-party authentication with CakePHP

  Sources   Download

MIT

The Requires

 

authentication oauth cakephp auth opauth

08/09 2012

1.0.0

1.0.0.0 http://opauth.org

Opauth plugin for CakePHP v2.x, allowing simple plug-n-play 3rd-party authentication with CakePHP

  Sources   Download

MIT

The Requires

 

authentication oauth cakephp auth opauth