What is WebAuthn?¶
WebAuthn defines an API enabling the creation and use of strong, attested, scoped, public key-based credentials by web applications, for the purpose of strongly authenticating users.
The complete specification can be found on the W3C dedicated page.
This framework contains PHP libraries and Symfony bundle to allow developers to integrate that authentication mechanism into their web applications.
Class, constant and property names¶
Naming things may be complicated. That’s why the following rule applies on the whole framework: the name of classes, constants and properties are identical to the ones you will find in the specification.
As an example, the section 5.2.2 “Web Authentication Assertion” shows an object named AuthenticatorAssertionResponse that extends AuthenticatorResponse with the following properties:
authenticatorDatasignature-
userHandleYou will find EXACTLY the same structure in the PHP class provided by the library.
Supported features¶
- Attestation Types
- Empty
- Basic
- Self
- Private CA
- Anonymization CA
- Attestation Formats
- None
- FIDO U2F
- Packed
- TPM
- Android Key
- Apple
- Compound (new in 5.3.0)
- Cose Algorithms
- RS1, RS256, RS384, RS512
- PS256, PS384, PS512
- ES256, ES256K, ES384, ES512
- ED25519
- Extensions
- Supported (not fully tested)
- appid extension (compatibility with FIDO U2F authenticator)
- Signal API (new in 5.3.0)
- AllAcceptedCredentials
- CurrentUserDetails
- UnknownCredential
- Passkey Endpoints (new in 5.3.0)
- .well-known/passkey-endpoints discovery
- Conditional Create (new in 5.3.0)
- Auto-register credentials after password authentication
Compatible authenticators¶
As of January 2023, our framework supports every authenticator with full feature and algorithm support, achieving a 100% success rate across all tests. Official FIDO Alliance testing tools have validated its compliance.
We ensure continuous conformity through rigorous unit and functional testing throughout the development process.
Info
See https://github.com/herrjemand/awesome-webauthn/pull/61 and https://github.com/herrjemand/awesome-webauthn#server-libs
Support¶
I bring solutions to your problems and answer your questions.
If you really love this project and the work I have done, or if you want me to prioritize your issues, then you can help me out for a couple of🍻 or more!
Contributing¶
Requests for new features, bug fixes and all other ideas to make this framework useful are welcome.
If you feel comfortable writing code, you could try to fix opened issues where help is wanted or those that are easy to fix.
Do not forget to follow these best practices.
Danger
If you think you have found a security issue, DO NOT open an issue. You MUST submit your issue here.