Giter Club home page Giter Club logo

webauthn-server's Introduction

WebAuthn Relying Party server library for PHP

Scrutinizer Code Quality Code Coverage Build Status License: MIT

**Work in progress - use for testing purposes only **

This library aims to implement the relying party server of the WebAuthn specification in PHP. The library is currently being development and not yet ready to be used. APIs may change at any time until the first stable release.

Installation

Installation via composer:

composer require madwizard/webauthn:^0.0.1

Library reference

Automatically built reference documentation (for both this library and the separate Symfony bundle):
https://madwizard-thomas.github.io/webauthn/

Symfony bundle

If you want to integrate this library in a symfony project, have a look at the webuathn-server-bundle package.

Support

This library is still in development! Currently supported features are:

Attestation types:

  • FIDO U2F
  • Packed
  • TPM
  • None

Attestation is not yet verified with trusted anchors or the metadata service but the attestation itself is validated for correctness and consistency.

Usage

The library is still in development so documentation is limited. The general pattern to follow is:

  1. Write a class implementing UserCredentialInterface.
  2. Implement CredentialStoreInterface.
  3. Create an instance of WebAuthnServer with a WebAuthnConfiguration object and the credential store.
  4. Use startRegistration/finishRegistration to register credentials. Be sure to store the temporary AttestationContext server side!
  5. and startAuthentication/finishAuthentication to authenticate. . Be sure to store the temporary AssertionContext server side!

Resources

WebAuthn specification

webauthn-server's People

Contributors

madwizard-thomas avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.