ride/web-security

Security integration for a Ride web application.

1.2.0 2024-06-26 09:44 UTC

This package is auto-updated.

Last update: 2024-12-26 10:57:09 UTC


README

This module implements the security layer for a Ride web application.

Parameters

  • security.hash: Name of the password hash algorithm, eg. sha1, md5, ...
  • security.unique: Flag to force unique sessions which forbids a user to login with multiple clients.
  • security.voter.strategy: Set the strategy of the voter chain: affirmative, consensus or unanimous
  • system.security.model.default: Dependency id of the default security model
  • system.security.model.cache: Dependency id of the cached security model
  • system.cache.security: Path to the PHP file of the security layer's cache implementation.

Events

  • security.password.update: Invoked before saving a user when the password has changed. This event passes the user instance and the plain text password as argument.
  • security.authentication.login: Invoked after the user has been authenticated with username and password. This event passes the user instance as argument.

Related Modules

Installation

You can use Composer to install this application.

composer require ride/web-security