Overview of CodeIgniter Shield features
developCodeIgniter Shield is the official authentication and authorization framework for CodeIgniter 4. It provides a flexible, security-focused foundation that can be extended or overridden to meet specific application needs.
Supported Authentication Methods
- Session-based Authentication: Traditional ID/Password login with 'Remember-me' functionality.
- Stateless Authentication: Supports Access Token, HMAC SHA256 Token, or JWT (JSON Web Token).
Key Security and Access Control Features
- Two-Factor Authentication (2FA): Optional email-based 2FA after login.
- Email Verification: Optional verification during account registration.
- Magic Link Login: Allows users to log in via email if they forget their password.
- Access Control: Uses flexible Group-based Access Control (similar to Roles) and individual Permissions.
Extensibility and Integration
- User Management: Includes a ready-to-use User Entity and User Provider (
UserModel). - Settings: Integrates with the CodeIgniter
settingslibrary, allowing configuration to be stored in version control or updated in the database. - Customization: Provides easily extendable controllers and views that can be swapped out for custom implementations.
- Auth Helper: A simple helper is provided for common authentication actions.