Skip to content
This repository

The most easy to use authorization plugin is finally out with tremendous changes.

branch: 2.0

This branch is 0 commits ahead and 0 commits behind 2.0

Merge pull request #21 from useahawk/2.0

Fixed URL Problem after login
latest commit a3bd3ac48f
Midori Koçak authored April 17, 2014
Octocat-spinner-32 Config Merge pull request #17 from useahawk/2.0 April 02, 2013
Octocat-spinner-32 Controller Fixed URL Problem after login April 16, 2014
Octocat-spinner-32 Model fixed some STRICT warnings March 28, 2013
Octocat-spinner-32 Test prettified files November 06, 2012
Octocat-spinner-32 View Pagination in Users index April 02, 2013
Octocat-spinner-32 db timestamp error December 23, 2013
Octocat-spinner-32 webroot view changes March 25, 2013
Octocat-spinner-32 CHANGELOG.md Info about changes March 25, 2013
Octocat-spinner-32 LICENSE.md pretty markdowns November 06, 2012
Octocat-spinner-32 README.md Routes May 26, 2013
Octocat-spinner-32 VERSION.md version and changes November 06, 2012
README.md

Authake

Authake is finally arrived to CakePHP 2.2.3 and is (another) solution to manage users and groups and their rights in a CakePHP platform, as well as their registration, email confirmation and password changing requests. It’s composed by a component, a plugin, and a helper.

Newest features are:

  1. Totally new look & feel. New interface using twitter bootstrap library
  2. Generated schema file to use cache schema create
  3. Total adaptation to CakePHP 2.2.3
  4. Totally new Dashboard
  5. Gravatar Support
  6. Better alerts
  7. Beautiful navigation and breadcrumbs
  8. html5shiv support for older browsers
  9. Dropdown lists for commands
  10. Help file with regex information
  11. Settings page (needs some effort)
  12. Better readme files with markdowns

Further changes are here for your contribution:

  • sha1 security
  • long id's
  • For questions and issues: Mutlu Tevfik Kocak mtkocak(at) gmail.com

Downlad

https://github.com/mtkocak/authake

For install instructions and feedback, please go to Authake home page: http://www.mtkocak.net/?p=333

Install

  1. Unzip the plugin to your app/Plugin folder with the name Authake. Case is important, lowercase folder name does not work.

  2. You have to have in your bootstrap.php

    CakePlugin::loadAll();
    //or
    CakePlugin::load('Authake');
    
  3. You can create schema from plugin using command to console terminal when you are in your app folder:

    Do not use any schema to generate SQL. Causes redirection loop instead of it add the Authake/db/authake_clean.sql to your database.

  4. Add this to your config/database.php to make authake work.

    The idea behind this is that it would be possible to have 1 Authake instalation which handle multiple apps.

    var $authake = array(
    'datasource' => 'Database/Mysql',
    'persistent' => false,
    'host' => 'localhost',
    'login' => ", //username for the db
    'password' => ", //password for the db
    'database' => 'authake', //or any other where you have imported the authake.sql file
    'prefix' => ",
    );
    
  5. Create AppController.php in you'r app's Controller folder first.

    Change it's contents like this: UPDATED: No need debug_kit anymore

    <?php

    class AppController extends Controller {
        var $helpers = array('Form', 'Time', 'Html', 'Session', 'Js', 'Authake.Authake');
        var $components = array('Session','RequestHandler', 'Authake.Authake');
        var $counter = 0;
        function beforeFilter(){
            $this->auth();
        }
        private function auth(){
            Configure::write('Authake.useDefaultLayout', true);
            $this->Authake->beforeFilter($this);
        }
    
    }
    ?>
    
  6. Use username: admin password: admin to login

    For any question mtkocak@gmail.com

  7. Change the permissions of Config folder to 777 and recurse into enclosed items Chmod 777

  8. Your login page is located at http://localhost/auth/authake/user/login if you want to login from http://localhost/auth/login you have to create a route at app/config/routes.php like this:

    Router::connect('/login', array('plugin'=>'authake','controller' => 'user', 'action' => 'login'));
    

    Before the line that contains:

    require CAKE . 'Config' . DS . 'routes.php';
    
Something went wrong with that request. Please try again.