This repository was archived by the owner on Jan 25, 2026. It is now read-only.
Repository navigation
Initial Commit - #2
Merged
jvjvjv merged 1 commit intoNov 16, 2025
Merged
Conversation
This commit introduces BSPDX AuthKit, a comprehensive authentication package for Laravel 12+ with the following features: ## Core Features - Standard authentication powered by Laravel Fortify - RBAC using Spatie Laravel Permission (roles + permissions) - TOTP 2FA with Google Authenticator support - WebAuthn/Passkey authentication via Spatie Laravel Passkeys - Passkey as 2FA option - Full API support with Laravel Sanctum - Multi-tenancy ready architecture ## Package Components ### Service Provider & Configuration - AuthKitServiceProvider with auto-discovery - Comprehensive authkit.php config file with feature toggles - Publishable migrations, seeders, views, and routes ### Authentication Features - HasAuthKit trait combining Fortify, Sanctum, Spatie packages - TwoFactorAuthController for TOTP management - PasskeyAuthController for WebAuthn authentication - RolePermissionController for API-based RBAC management ### Middleware - EnsureHasRole - Role-based route protection - EnsureHasPermission - Permission-based route protection - EnsureTwoFactorEnabled - Enforce 2FA for specific roles ### Blade Components (Framework-Agnostic) - LoginForm with optional passkey support - RegisterForm with customizable fields - TwoFactorChallenge with recovery code option - PasskeyRegister for passkey enrollment - PasskeyLogin for passwordless authentication All components use CSS custom properties for easy theming ### Database - Migration to add 2FA fields to users table - AuthKitSeeder with demo roles, permissions, and users - Multi-tenancy support (optional, commented out by default) ### Testing - Feature tests for authentication flows and RBAC - Unit tests for HasAuthKit trait - PHPUnit configuration included ### Documentation - Comprehensive README with installation guide - HTTPS setup guide for Laravel Sail (required for passkeys) - Example route files for web and API - Multi-tenancy setup instructions ## Package Structure - Namespace: BSPDX\AuthKit - Type: Laravel library package - Dependencies: Fortify, Sanctum, Spatie Permission, Spatie Passkeys - PHP: ^8.2 - Laravel: ^12.0 This package is production-ready and can be installed via: composer require bspdx/authkit
jvjvjv
deleted the
claude/laravel-auth-package-01LSDTc4TkNUBv9p3Z3K6qvk
branch
November 16, 2025 18:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces BSPDX AuthKit, a comprehensive authentication package for Laravel 12+ with the following features:
Core Features
Package Components
Service Provider & Configuration
Authentication Features
Middleware
Blade Components (Framework-Agnostic)
Database
Testing
Documentation
Package Structure
This package is production-ready and can be installed via: composer require bspdx/authkit