Version 2 (modified by 2 years ago) ( diff ) | ,
---|
Installing the WebAuthn authentication extension
To avoid locking everybody out of BASE it is recommended that the Password login form is enabled before starting the installation for the first time. Login to BASE and go to the Administrate ›› Plug-ins & extensions ›› Overview page. Locate the Login form customization extension point to find it. Once it has been verified that WebAuthn login works properly the Password login form can be disabled if desired.
Installation and updating
- Download the latest
webauthn-x.y.tar.gz
file from the WebAuthn main page. - Unpack the downloaded file to a directory of your choice.
- If this is a FIRST-TIME INSTALLATION:
- Update the BASE database with additional columns in the users table (see below)
- Make additional configuration settings (see below)
- Copy the
webauthn.jar
file to your BASE plug-ins directory. Look in yourbase.config
file if you don't know where this is. - Log in to BASE as an administrator and go to the Administrate ›› Plug-ins & Extensions ›› Overview page.
- If this is a FIRST-TIME INSTALLATION:
- Verify that the Password login form is enabled.
- Run the installation wizard and select to install
webauthn.jar
. - Done
FIRST-TIME INSTALLATION
Before installing the WebAuthn extension for the first time there are a few configuration steps that must be performed. Unless otherwise noted, these steps only need to be done the first time.
A. Update the BASE database with additional columns in the users table
- Move or copy the
webauthn-extended-properties.xml
file to theWEB-INF/classes/extended-properties
directory. - Shut down the BASE server including any job agents.
- Run the
updatedb.sh
script shipped with the BASE installation. This should create additional column in theUsers
table that are used to store WebAuthn-related information. - Restart the BASE server and job agents.
Additional configuration settings
There are some additional configuration settings that can be made in the webauthn.properties
file. This step is optional. If you are installing multiple login managers on the same system you probably want to check the value for the allow-other-authentication
setting. The authentication methods published by this extension are named webauthn
and webauthn-passwordless
. You may need this when configuring the other login managers.
Note! Changes to the configuration file are automatically detected and applied. There is no need to re-start the server.
no-webauthn
Comma- or whitespace- separated list of application ids for which WebAuthn login should be disabled. For example, if you have installed the FTP server but do not want to use WebAuthn for that:
no-webauthn = net.sf.basedb.clients.ftp
require-webauthn
Comma- or whitespace- separated list of application ids for which WebAuthn login is required. Users without a WebAuthn Security Key will not be able to use those clients. For example, to force all users of the web client to use WebAuthn:
require-webauthn = net.sf.basedb.clients.web
allow-other-authentication
Comma- or whitespace- separated list of other authentication methods that are allowed even if a user has configured a WebAuthn Security Key. Use *
as a wildcard for all other authentication methods (including password authentication). Examples:
# Also allow password authentication even if a user has a security key allow-other-authentication = password # Allow all other authentication methods allow-other-authentication = * # If the YubiKey and/or OTP login extension is also installed we can # allow users to use either WebAuthn, YubiKey or OTP (with or without password) allow-other-authentication = otp-only otp+password yubikey
relying-party-id
This ID is typically the name of the webserver that the browser connects to. This is is typically picked up automatically, but if that doesn't work it is possible to specify the correct name here.
relying-party-allow-origin-port
If the port number is not the default https port, this flag need to be enabled.
relying-party-allow-origin-subdomain
This flag can be set to allow subdomains to the relying-party-id value.
relying-party-disable-signature-counter
If this flag is set, the signature counter is not verified. The counter is intended to prevent replay attacks but not all security keys support it.