Shield is a comprehensive Identity & Access Management solution for Lucky framework. It features robust authentication and authorization, including user registrations, logins and logouts, password resets and more.
Shield is secure by default, and exploits defence-in-depth strategies, including the option to pin an authentication session to the IP address that started it -- the session is invalidated if the IP address changes.
User IDs are never saved in session. Instead, each authentication gets a unique ID and token, which is saved in session, and checked against their corresponding salted SHA-256 hashes in the database.
When a user changes their password, Shield logs out the user on all devices (except the current one), to ensure that an attacker no longer has access to a previously compromised account.
Shield supports API authentication, with regular passwords or with user-generated bearer tokens. In addition, Shield comes with tools to build your own OAuth 2.0 authorization server.
Shield is designed to be resilient against critical application vulnerabilities, including brute force, user enumeration, denial of service and timing attacks.
On top of these, Shield offers seamless integration with your application. For the most part,
include a bunch of
modules in the appropriate
classes, and you are good to go!
Shield maintains no knowledge of any secrets, and stores them such that they are irrecoverable, either by the application or by the user, if the user loses them.
Hashing over encryption
In line with the Zero Knowledge principle, Shield prefers hashing to encryption, keeping knowledge of all secrets to the user that generated them.
Handles over assertions
In Shield, the server is the source of truth, ensuring that all secrets can be revoked server-side, and instantly, whenever the need arises.
Deny by default
Shield locks everything down, by default, and requires explicit action by the developer. This posture makes it difficult for an application to be insecure by accident.
Get started quickly using Penny. Penny is a Lucky application scaffold that gets you up and running with Shield.
Find the complete documentation of Shield in the
docs/ directory of this repository.
Update the file with your own details. Then run tests with
- Fork it
- Switch to the
git checkout master
- Create your feature branch:
git checkout -b my-new-feature
- Make your changes, updating changelog and documentation as appropriate.
- Commit your changes:
- Push to the branch:
git push origin my-new-feature
- Submit a new Pull Request against the