Giter VIP home page Giter VIP logo

simpleid-yubikey's Introduction

SimpleID Yubikey Authentication

This is a third-party extension for the SimpleID OpenID provider written in PHP that adds the possibility to authenticate using a Yubico Yubikey.

Installation

  1. Copy extensions/yubikey into the extensions folder below the webroot of your SimpleID installation.
  2. Edit config.php and add the Yubikey extension to the comma-separated list of extensions in the SIMPLEID_EXTENSIONS constant.
  3. Edit your identities and add the required information for Yubikey authentication. See the configuration section for all possible values and their meaning.

Identity Configuration

The following variables from identity pages have an effect on the Yubikey authentication store:

  • auth_method: This option controls whether a user can authenticate using a Yubikey or using the default password-based method. Since this extension hides the username field, you will probably want to set this to YUBIKEY for all your users. Note that Yubikey authentication will only be attempted with accounts that have auth_method set to YUBIKEY. Choosing Yubikey authentication requires a few keys in the yubikey section.

The following options in the [yubikey] identity file section control the authentication using Yubikeys:

  • client_id: The API key ID for the Yubikey validation server you want to use. For the official yubico.com infrastructure, you can get such a key at https://upgrade.yubico.com/getapikey/. If you run your own validation server, you probably know how to get this. Mandatory.
  • client_key: The API key corresponding to the API key ID. This is a short, base64-encoded string you usually get from whoever runs the validation server you use. Mandatory.
  • use_https: A boolean indicating whether the connection to the API server should use HTTPS. You should really set this to a value that will evaluate to true in PHP. Mandatory.
  • key_id[]: The IDs of the Yubikeys that should be able to log-in using the given identity. You can get this by stripping the last 32 characters from the output generated by your Yubikey. Mandatory.
  • URLs: Array-field that allows you to specify partial URLs to your own Yubikey validation servers. Do not specify the protocol (since that's controlled by the use_https option) and always use array brackets to add a value. Optional. Example: URLs[]=yubikey.yourdomain.tld:port/wsapi/2.0/verify.

An example identity file might look like this:

identity="https://my.example.com"
pass="unused"
auth_method="YUBIKEY"

[yubikey]
client_id="1"
client_key="AaAaAaAaAaAaAaAaAaAaAaAaAaA="
use_https=1
key_id[]="hdvbhdvbillt"
key_id[]="hdvbhdvvvqll"
URLs[]="yubikey1.example.com/wsapi/2.0/verify"
URLs[]="yubikey2.example.com/wsapi/2.0/verify"
URLs[]="yubikey3.example.com:8443/wsapi/2.0/verify"

simpleid-yubikey's People

Contributors

j0s3f avatar neverpanic avatar

Watchers

 avatar  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.