Download the PHP package jeffersongoncalves/filament-multifactor-passkeys without Composer

On this page you can find all versions of the php package jeffersongoncalves/filament-multifactor-passkeys. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-multifactor-passkeys

![Filament Multifactor Passkeys](https://raw.githubusercontent.com/jeffersongoncalves/filament-multifactor-passkeys/2.x/art/jeffersongoncalves-filament-multifactor-passkeys.png)

Filament Multifactor Passkeys

Buy Me A Coffee

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Multi-factor authentication for Filament panels using WebAuthn passkeys, powered by spatie/laravel-passkeys.

Compatibility

Branch Filament Laravel PHP Tag format
1.x v4 11 / 12 ^8.2 1.x.y
2.x v5 12 / 13 ^8.2 2.x.y

Installation

Install the package via composer:

Publish and run the migrations from spatie/laravel-passkeys:

Publish the spatie/laravel-passkeys config (optional, to tweak relying party, allowed origins, etc.):

Publish this package's config (optional):

Usage

1. Prepare your User model

Add the Spatie InteractsWithPasskeys trait and implement the package's HasPasskeyAuthentication contract (which extends Spatie's HasPasskeys interface):

2. Register the MFA provider in your panel

In your PanelProvider, register PasskeyAuthentication in the multiFactorAuthentication() array. To also expose a "Sign in with a passkey" button on the login screen, register the plugin as well:

That's it. The MFA section in the user profile page now shows a "Passkey verification" entry with Set up / Turn off buttons. The plugin also injects a passkey login button after the standard login form, allowing users to authenticate without typing email/password. After registering a passkey, the next login can use it directly.

The package auto-registers Spatie's Route::passkeys() macro (under the web middleware group) so the login button works out of the box. If you've already registered them yourself, the auto-registration is skipped.

3. Customising the redirect URL

By default, after a successful registration or assertion the user is redirected to the current panel home (Filament::getCurrentPanel()->getUrl()). To override:

You can also set a static URL via config/filament-multifactor-passkeys.php:

How it works

This package is a thin Filament adapter on top of spatie/laravel-passkeys. The WebAuthn ceremony (challenge generation, browser API, attestation/assertion verification, persistence) is fully handled by Spatie's package and its Blade components (<x-create-passkey> and <x-authenticate-passkey>), which are embedded inside Filament modals and the MFA challenge schema.

Development

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-multifactor-passkeys with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^5.3
spatie/laravel-package-tools Version ^1.14.0
spatie/laravel-passkeys Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jeffersongoncalves/filament-multifactor-passkeys contains the following files

Loading the files please wait ...