Download the PHP package ceeram/authenticate without Composer
On this page you can find all versions of the php package ceeram/authenticate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ceeram/authenticate
More information about ceeram/authenticate
Files in ceeram/authenticate
Package authenticate
Short Description CakePHP plugin with authentication classes for AuthComponent.
License MIT
Homepage http://github.com/ceeram/Authenticate
Informations about the package authenticate
Authenticate plugin
Plugin containing some authenticate classes for AuthComponent.
Current classes:
- MultiColumnAuthenticate, allow login with multiple db columns in single username field For example username or email
- CookieAuthenticate, login with a cookie
- TokenAuthenticate, login with a token as url parameter or header
GoogleAuthenticate is moved to separate repo: https://github.com/ceeram/GoogleAuthenticate
Requirements
- PHP 5.3
- CakePHP 2.x
Installation
[Composer]
run: composer require friendsofcake/authenticate
or add friendsofcake/authenticate
to require
in your applications composer.json
[Manual]
- Download this: http://github.com/FriendsOfCake/Authenticate/zipball/master
- Unzip that download.
- Copy the resulting folder to app/Plugin
- Rename the folder you just copied to Authenticate
[GIT Submodule]
In your app directory type:
[GIT Clone]
In your plugin directory type
git clone git://github.com/FriendsOfCake/Authenticate.git Authenticate
Usage
In app/Config/bootstrap.php
add: CakePlugin::load('Authenticate')
;
Configuration:
Setup the authentication class settings
MultiColumnAuthenticate:
CookieAuthenticate:
Setup both:
It will first try to read the cookie, if that fails will try with form data:
Security
For enhanced security, make sure you add this code to your AppController::beforeFilter()
if you intend to use Cookie
authentication:
Setting the cookie
Example for setting the cookie: