Download the PHP package moontechs/filament-webauthn without Composer
On this page you can find all versions of the php package moontechs/filament-webauthn. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download moontechs/filament-webauthn
More information about moontechs/filament-webauthn
Files in moontechs/filament-webauthn
Package filament-webauthn
Short Description Filament webauthn sign in and registration
License MIT
Homepage https://github.com/moontechs/filament-webauthn
Informations about the package filament-webauthn
Filament Webauthn Authentication (FIDO)
Passwordless login for your Filament app. Web Authentication server-side and front-end components.
The package has the following components:
- registration button and widget
- login form extension to redirect to the webauthn login page
- separate route and page with webauthn login form
Should work with HTTPS and not localhost only.
Installation
You can install the package via composer:
You should publish and run the migrations with:
You can publish the config file with:
This is the contents of the published config file:
Optionally, you can publish the views using
You can publish the translation file with:
Usage
- Install the package.
- Publish migrations and migrate.
Registration widget
Only signed-in users can register a device to be able to sign in to use it in the future.
- Register
Moontechs\FilamentWebauthn\Widgets\WebauthnRegisterWidget::class
widget. Add it to thewidgets.register
array of the Filament config.
Customization
- Publish the config file
widget.column_span
- widget width (docs)
Registration button (without widget)
- Add
<livewire:webauthn-register-button/>
in any view.
Customization
- Publish the config file
register_button.icon
- choose any available iconregister_button.class
- add more classes or change the default one
Redirect to the login page button
- Publish Filament login page view
php artisan vendor:publish --tag=filament-views
- Add
<x-filament-webauthn::login-form-extension />
in the end of the login form.
If you didn't want to use this button, you can use a simple redirect to a named route filament-webauthn.login
.
Login form
Customization
- Publish the config file
login_button.icon
- choose any available iconlogin_button.class
- add more classes or change the default one
Testing
Credits
- Michael Kozii
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-webauthn with dependencies
ext-openssl Version *
ext-json Version *
ext-sodium Version *
ext-gmp Version *
filament/filament Version ^2.0
illuminate/contracts Version ^9.0
madwizard/webauthn Version ^0.8.1
spatie/laravel-package-tools Version ^1.13.0