Download the PHP package nojimage/cakephp-remember-me without Composer
On this page you can find all versions of the php package nojimage/cakephp-remember-me. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nojimage/cakephp-remember-me
More information about nojimage/cakephp-remember-me
Files in nojimage/cakephp-remember-me
Package cakephp-remember-me
Short Description RememberMe authentication adapter plugin for CakePHP
License MIT
Informations about the package cakephp-remember-me
RememberMe authentication adapter plugin for CakePHP
This plugin provides an authenticate handler that permanent login by cookie. This plugin use method of issuing a token, instead of set to cookie encrypted username/password.
This library inspired by Barry Jaspan's article "Improved Persistent Login Cookie Best Practice", and Gabriel Birke's libray "https://github.com/gbirke/rememberme".
Installation
You can install this plugin into your CakePHP application using composer.
The recommended way to install composer packages is:
Load the plugin by adding the following statement in your project's src/Application.php
:
or running the console command
Run migration:
Usage with Authentication plugin
If you're using cakephp/authentication,
use RememberMeTokenIdentifier
and CookeAuthenticator
.
Example load RememberMe's Identifier and Authenticator into the getAuthenticationService
hook within Application
:
more document for getAuthenticationService
, see: Quick Start - CakePHP Authentication 3.x
RememberMe.RememberMeTokenIdentifier options
fields
The fields for the lookup.
default: ['username' => 'username']
resolver
The identity resolver. If change your Resolver,
must extend Authentication\Identifier\Resolver\OrmResolver
.
default: 'Authentication.Orm'
tokenStorageModel
A model used for find login cookie tokens.
default: 'RememberMe.RememberMeTokens'
userTokenFieldName
A property name when adding token data to identity.
default: 'remember_me_token'
RememberMe.CookeAuthenticator options
loginUrl
The login URL, string or array of URLs. Default is null and all pages will be checked.
default: null
urlChecker
The URL checker class or object.
default: 'DefaultUrlChecker'
rememberMeField
When this key is input by form authentication, it issues a login cookie.
default: 'remember_me'
fields
Array that maps username
to the specified POST data fields.
default: ['username' => 'username']
cookie
Write option for login cookie.
- name: Cookie name (default:
'rememberMe'
) - expire: Cookie expiration (default:
'+30 days'
) - path: Path (default:
'/'
) - domain: Domain, (default:
''
) - secure: Secure flag (default:
true
) - httpOnly: Http only flag (default:
true
)
tokenStorageModel
A model used for storing login cookie tokens.
default: 'RememberMe.RememberMeTokens'
always
When this option is set to true, a login cookie is always issued after authentication identified.
default: false
dropExpiredToken
When this option is set to true, drop expired tokens after authentication identified.
default: true
All versions of cakephp-remember-me with dependencies
ext-json Version *
cakephp/core Version ^5.0
cakephp/orm Version ^5.0
cakephp/authentication Version ^3.0