Skip to content

jengo/auth ​

jengo/auth is a unified authentication and authorization engine for CodeIgniter 4 and the Jengo Framework, powered by Vima.


What's Inside ​

SectionDescription
Key CapabilitiesA summary of everything the package ships with.
InstallationInstall via Composer, run setup, and migrate.
Route PublishingConfigure standard, customized, selective, and controller-overridden routes.
Quick StartCheck auth state, attempt logins, and issue Personal Access Tokens.
Protecting Routes and ControllersGlobal auth filter, Authenticate attributes, and guards.
Authorization with VimaRoles, permissions, ABAC policies, grants, and denies.
Declarative PHP 8 Attributes#[Authenticate], #[Can], #[Role], and #[Guest].
Post-Auth ActionsEmail 2FA, Email Activator, and custom post-auth verification steps.
Form HandlersBuilt-in login, registration, password reset, and magic link form handlers.
Response ModifiersSwitch between HTML views, JSON envelopes, and Inertia responses.
API & Payload ReferenceFull HTTP endpoint specifications, request payloads, and response structures.
Custom Notification SendersQueue or replace auth emails and codes.
Social / OAuth2 AuthenticationThird-party sign-in with Google, GitHub, email auto-linking, and password provisioning.
Custom Guards & TokensRegister custom authentication drivers and manage token abilities.
CLI CommandsAll jengo:auth and vima Spark commands.

Key Capabilities ​

Released under the MIT License.