rawilk / laravel-webauthn
Add webauthn functionality to Laravel
Fund package maintenance!
rawilk
Installs: 8 404
Dependents: 1
Suggesters: 0
Security: 0
Stars: 22
Watchers: 2
Forks: 5
Open Issues: 5
Requires
- php: ^8.1|^8.2
- illuminate/contracts: ^9.12|^10.0
- nyholm/psr7: ^1.5
- spatie/laravel-package-tools: ^1.9
- symfony/psr-http-message-bridge: ^2.1
- web-auth/webauthn-lib: ^4.0
Requires (Dev)
- laravel/pint: ^1.5
- nunomaduro/collision: ^6.0
- orchestra/testbench: ^7.0|^8.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- pestphp/pest-plugin-parallel: ^1.2
- spatie/laravel-ray: ^1.26
Suggests
- web-token/jwt-key-mgmt: Required for the AndroidSafetyNet Attestation Statement support
- web-token/jwt-signature-algorithm-ecdsa: Required for the AndroidSafetyNet Attestation Statement support
- web-token/jwt-signature-algorithm-eddsa: Required for the AndroidSafetyNet Attestation Statement support
- web-token/jwt-signature-algorithm-rsa: Required for the AndroidSafetyNet Attestation Statement support
This package is auto-updated.
Last update: 2024-12-09 23:16:30 UTC
README
Add the ability to add a hardware based two-factor authentication via a security key, fingerprint or biometric data. Using WebAuthn as a second factor of authentication can help your users better secure their accounts on your application. For more info on WebAuthn, please check out this guide.
Documentation
For more documentation, please visit the docs.
Installation
You can install the package via composer:
composer require rawilk/laravel-webauthn
You can publish and run the migrations with:
php artisan vendor:publish --tag="webauthn-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="webauthn-config"
You can view the default configuration here: https://github.com/rawilk/laravel-webauthn/blob/main/config/laravel-webauthn.php
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
Please review my security policy on how to report security vulnerabilities.
Credits
This package is heavily inspired from Larapass and asbiin/laravel-webauthn.
Since the v1.0.1
patch, a considerable amount of the JavaScript portion of this package has been sourced from the SimpleWebAuthn package made by Matthew Miller. His copyright has been added to the license file, and copyright notices have been placed in JS files where the code is extremely close to what his is.
Alternatives
This package aims to provide only the bare necessities required to utilize WebAuthn in your application, which provides the freedom to incorporate it into your project based on your own needs and desires. If you're looking for a more complete solution, consider one of these alternatives:
Disclaimer
This package is not affiliated with, maintained, authorized, endorsed or sponsored by Laravel or any of its affiliates.
License
The MIT License (MIT). Please see License File for more information.