Download the PHP package friendsofcake/authenticate without Composer
On this page you can find all versions of the php package friendsofcake/authenticate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download friendsofcake/authenticate
More information about friendsofcake/authenticate
Files in friendsofcake/authenticate
Package authenticate
Short Description CakePHP plugin with authentication classes for AuthComponent.
License MIT
Homepage http://github.com/FriendsOfCake/Authenticate
Informations about the package authenticate
Authenticate plugin
NOTE: This project is no longer maintained actively.
The Authenticate classes have become redundant or better alternatives have surfaced:
- MultiColumnAuthenticate, see Tools - or use custom finders in CakePHP 3
- CookieAuthenticate, see Xety/Cake3-CookieAuth
- TokenAuthenticate, see JwtAuth
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
Requirements
- CakePHP 3.0
Installation
[Composer]
run: composer require friendsofcake/authenticate:dev-cake3
or
add "friendsofcake/authenticate":"dev-cake3"
to require
section in your
application's composer.json
.
Usage
In your app's config/bootstrap.php
add: Plugin::load('FOC/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:
Setting the cookie
Example for setting the cookie: