PHPackages                             mrvanes/simplesamlphp-module-authwebauthn - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. mrvanes/simplesamlphp-module-authwebauthn

ActiveSimplesamlphp-module[Authentication &amp; Authorization](/categories/authentication)

mrvanes/simplesamlphp-module-authwebauthn
=========================================

Webauthn authproc module.

49751PHP

Since Oct 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/mrvanes/authWebauthn)[ Packagist](https://packagist.org/packages/mrvanes/simplesamlphp-module-authwebauthn)[ RSS](/packages/mrvanes-simplesamlphp-module-authwebauthn/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

SimpleSAMLphp authwebauthn authproc module
==========================================

[](#simplesamlphp-authwebauthn-authproc-module)

This module implements a simpleSAMLphp authproc that can be used to enforce second factor authentication using Webauthn compatible security devices.

Thanks to [David Earl](https://github.com/davidearl/webauthn) for his excelent headstart on PHP based Webauthn implementation!

Requirements
------------

[](#requirements)

This module uses a php-sqlite3 database to store user/key combinations.

Installation
------------

[](#installation)

`composer require mrvanes/simplesamlphp-module-authwebauthn:dev-master`

Usage
-----

[](#usage)

The authproc can be configured as registration or validation proc. Enable the proc on any authsource. E.g. one for registration purposes and one for validation purposes:

```
    'sp-register' => [
        'saml:SP',
        'entityID' => null,
        'idp' => 'idp-register',
        'discoURL' => null,
        'authproc' => [
            // Add Webauthn second factor registration
            100 => ['class' => 'authwebauthn:WebAuthn',
                    'id' => 'uid',
                    'database' => '/var/tmp/keys.sq3',
                    'purpose' => 'register'
                    ],
        ],
    ],
    'sp-login' => [
        'saml:SP',
        'entityID' => null,
        'idp' => 'idp-login',
        'discoURL' => null,
        'authproc' => [
            // Add Webauthn second factor validation
            100 => ['class' => 'authwebauthn:WebAuthn',
                    'id' => 'uid',
                    'database' => '/var/tmp/keys.sq3',
                    'purpose' => 'validate'
                    ],
        ],
    ],

```

Or on hosted IdP using fallback scenario (register if unable to validate, i.e. Trust On First Use)

```
$metadata['__DYNAMIC:1__'] = [
    'host' => '__DEFAULT__',
    'privatekey' => 'server.pem',
    'certificate' => 'server.crt',
    'auth' => 'example-userpass',
    'attributes.NameFormat' => 'urn:oasis:names:tc:SAML:2.0:attrname-format:uri',
    'authproc' => [
            // Add Webauthn second factor validation
            100 => ['class' => 'authwebauthn:WebAuthn',
                    'id' => 'uid',
                    'database' => '/var/tmp/keys.sq3',
                    'purpose' => 'fallback'
                    ],
        ],
    ],
];

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f375c50a7a7f00f8e8c7718e87d950db84f064b5cbe532dc625fc15f7fd2fae?d=identicon)[mrvanes](/maintainers/mrvanes)

---

Top Contributors

[![mrvanes](https://avatars.githubusercontent.com/u/1901782?v=4)](https://github.com/mrvanes "mrvanes (19 commits)")

### Embed Badge

![Health badge](/badges/mrvanes-simplesamlphp-module-authwebauthn/health.svg)

```
[![Health](https://phpackages.com/badges/mrvanes-simplesamlphp-module-authwebauthn/health.svg)](https://phpackages.com/packages/mrvanes-simplesamlphp-module-authwebauthn)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
