Download the PHP package seablast/auth without Composer
On this page you can find all versions of the php package seablast/auth. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download seablast/auth
More information about seablast/auth
Files in seablast/auth
Package auth
Short Description No-password authentication and authorisation library for Seablast for PHP
License MIT
Informations about the package auth
Seablast\Auth
A no-password authentication and authorization extension for Seablast for PHP apps. This extension facilitates secure user verification and efficient access control.
Optionally, Seablast\Auth
integrates with the HybridAuth library to support social authentication, allowing seamless sign-in through various social media platforms.
Integrable via Composer, it activates only when required, equipping your app with essential security features effortlessly.
If your Seablast-based application necessitates user authentication or resource authorization, incorporating Seablast\Auth
will equip it with these capabilities instantly.
(For applications that do not require these features, Seablast\Auth
can simple be not included to maintain a lighter application footprint.)
Usage
When just getting the identity of a logged-in user is needed:
To create the expected database table structure, just add the seablast/auth migration path to the phinx.php configuration, e.g.
Routing
/user
is expected, so configure it within your conf/app.conf.php
like this:
View
\Seablast\Auth\UserModel
returns arguments ($configuration, $csrfToken, $message, $showLogin, $showLogout) for the user.latte template:
Testing
Run ./test.sh for essential PHPUnit tests:
- create token and use it,
- check its disapperance as it's valid only once,
- invalid emails is not accepted,
- SQL injection attempts is not accepted.
User management
- user MUST have one role (admin, content manager, ordinary user)
- user MAY belong to various groups (based on subscription tariff, a promotion, etc.)
All versions of auth with dependencies
nette/utils Version ^2.4.8 || ^3.2.2
robmorgan/phinx Version ^0.10.6 || ^0.12.3
seablast/interfaces Version ^0.1
symfony/mailer Version ^4.4.49 || ^5 || ^6 || ^7
symfony/security-csrf Version ^4.4.37 || ^5 || ^6 || ^7
tracy/tracy Version ^2.4.10
webmozart/assert Version ^1.9.1