Skip to content

Registering Authentication Plugin

Endi S. Dewata edited this page Oct 8, 2026 · 10 revisions

Overview

This page describes the process to register an authentication plugin.

Registering with pki-server ca-auth-plugin (Under Development)

$ pki-server ca-auth-plugin-add --class <class name> <plugin name>

Availability: Since PKI 11.10.2

Registering with pki-server ca-config

$ pki-server ca-config-set auths.impl.<plugin name>.class <class name>

Registering with pkiconsole (Deprecated)

  • Go to Configuration → Authentication → Authentication Plug-in Registration.

Dogtag PKI
  • Press the Register button, and a dialog box entitled Register Authentication Plug-in Implementation appears:

    • For the Plug-in name: field, type in SSNAuth.

    • For the Class name: field, type in the path to the SSNAuth.class class finishing with the name SSNAuth (do NOT type in the .class extension).

Dogtag PKI

NOTE: For the purposes of this tutorial, it is ONLY necessary to type in a Class Name of SSNAuth. This is due to the fact that the default search path order for plugins ALWAYS searches for plugins in the following order:

  1. the <pki-instance>/webapps/<pki-subsystem>/WEB-INF/classes directory (and all subdirectories under this directory for this specific instance)

  2. a combination of default PKI JAR files and default PKI JRE JAR files

For example, if the SSNAuth.class had been placed in a directory called <pki-instance>/webapps/<pki-subsystem>/WEB-INF/classes/mydir/mysubdir, the java source code would need to contain a package mydir.mysubdir; statement, be rebuilt, and the subsequent SSNAuth.class binary would then need to be placed into this directory. Finally, the user would need to type mydir.mysubdir.SSNAuth within this dialog box to register their plugin.

  • Press the OK button to dismiss the dialog box, and this plugin should now appear in alphabetical order on the list of authentication plugins displayed on this panel. If it does not, try pressing the Refresh button until it does:

Dogtag PKI

The following parameters should be configured in <instance>/conf/CS.cfg:

auths.impl.SSNAuth.class=SSNAuth

Clone this wiki locally