Skip to content

rawilk/laravel-webauthn

Repository files navigation

WebAuthn for Laravel

Latest Version on Packagist Tests Total Downloads PHP from Packagist License

Social image

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.