Skip to main content

Standalone/WSGI U2F server implementing the U2FVAL protocol

Project description

== Yubico U2F Validation Server == The Yubico U2F Validation Server (u2fval) is a server that provides U2F registration and authentication through a simple JSON based REST API.

=== Installation u2flib-server is installable by running the following command:

$ pip install u2fval

Alternatively, you can run:

$ pip install u2fval-<version>.tar.gz

Where the .tar.gz file is a source release of the project.

==== Check out the code Run these commands to check out the source code:

git clone https://github.com/Yubico/u2fval.git cd u2fval git submodule init git submodule update

==== Build a source release To build a source release tar ball, run this command:

python setup.py sdist

The resulting build will be created in the dist/ subdirectory.

=== Configuration === Configuration is kept in /etc/yubico/u2fval/u2fval.conf, see the default configuration file for more information.

The Yubico U2F Validation Server needs an SQL database to work. Optionally a memcached server can be used to store transient data which doesn’t need to be persisted to the database (if not available this data will be stored in the main database). Once the configuration file has been configured with database credentials, the database can be initialized by running the following command:

u2fval db init

=== API Clients === To be able to use the server, a client needs to be created. This is done using the u2fval client create command. For example:

u2fval client create example

-a https://example.com/app-identity.json -f https://example.com

==== Authenticating Clients ==== Each client request needs to be authenticated. This authentication is outside of the scope of the Yubico U2F Validation Server and can be handled by the webserver or some WSGI middleware. Once authenticated, the client name should be set in the REMOTE_USER server environment variable.

=== Deployment === The server can either be run standalone (intended for testing purposes) using the u2fval run command, or be hosted by any WSGI capable web server, such as Apache with mod_wsgi enabled.

=== Accessing the Server === Once the server is set up and at least one client has been created, the client can access the server via the REST API. Find the API documentation inthe doc/ directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

u2fval-0.9.1.tar.gz (31.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page