Skip to content

curityio/netid-authenticator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetID Access Authenticator Plugin

Quality Availability

A NetID Access Authenticator Plugin for the Curity Identity Server.

Note: The plugin requires at least version 7.0. of the Curity Identity Server. It might not work with previous versions.

Building the Plugin

Build the plugin by issuing the command mvn package. This will produce a JAR file in the target directory, which can be installed.

Installing the Plugin

Installing from Release Package

To install the plugin, download the release zip archive, unpack it and copy the contents of the /usr/ to ${IDSVR_HOME}/usr/, on each node of the Curity Identity Server, including the admin node.

Installing from Source

To install the plugin after building, copy the contents of /target/usr/ to ${IDSVR_HOME}/usr/, on each node of the Curity Identity Server, including the admin node.

For more information about installing plugins, refer to the curity.io/plugins.

Required Dependencies

For a list of the dependencies and their versions, run mvn dependency:list. Ensure that all of these are installed in the plugin group; otherwise, they will not be accessible to this plug-in and run-time errors will result.

Configuring the Plugin

The plugin has the following configuration options:

  • Hostname - the hostname of the Net ID Access server.
  • Port - the port of the Net ID Access server.
  • Path - path of the Web Service endpoint.
  • Trust store - the server trust store that will be used during connections to the Net ID Access service. You can either provide the server's certificate, or a Certificate Authority. If left empty then the default Java trust store will be used (cacerts).
  • Key Store - the client key store that will be used during connections to the Net ID Access service. If left empty then the default Java key store will be used (cacerts).
  • Disable HTTPS - by default connections to the Net ID Access service are done using HTTPS. Turn this option on if an unsecured connection should be used instead.

Handling the Subject

The plugin sets a number of subject attributes based on the data it gets from NetID. Among these attributes are a few that can be picked up as the subject attribute. If any of the following attributes is present, it will be used as the subject attribute, in the following priority:

  1. personalNumber from the ResultCollect->userInfo element
  2. userId from the ResultCollect->userInfo element
  3. userUniqueName from the ResultCollect->userInfo element
  4. requestedUserId from the ResultCollect element

Migrating from Internal Plugin

If you are already running the internal Curity authenticator that was available in versions before 7.0, the configuration will need to be changed slightly.

Plugin Type

The type of the plugin changed from netidaccess to netidaccess-os. This affects an xml-tag and a namespace. Internal plugin config:

<authenticator>
    <id>NetIdAccess</id>
    <netidaccess xmlns="https://curity.se/ns/conf/authenticator/netid-access">
    …
    </netidaccess>
</authenticator>

Migrated config:

<authenticator>
    <id>NetIdAccess</id>
    <netidaccess-os xmlns="https://curity.se/ns/ext-conf/netidaccess-os">
    …
    </netidaccess>
</authenticator>

HTTP Client

The http-client is no longer used by the plugin and can be removed from the configuration. Instead, there are three new settings: Trust store, Key store and disable HTTPS. See Configuring the Plugin for details.

More Information

Please visit curity.io for more information about the Curity Identity Server.