A pluggable ICAT authenticator that delegates trust rather than verifying credentials
itself: a caller presents a username (and optional mechanism name) alongside a shared secret token, and if the
token matches, authn.delegating simply vouches for that identity without checking a password. It's intended for a
trusted intermediary - an SSO gateway, another already-authenticated
service (SciGateway Auth) - to assert an identity to ICAT on a
user's
behalf.
It exposes the same REST contract as other authn.* plugins (POST /authenticate, GET /description), so it plugs
into icat.server via authn.list / authn.<mnemonic>.url.
Two properties, set via run.properties (see src/main/config/run.properties.example):
secretToken- the shared secret callers must present.ip- space-separated allow-list of caller IPs/hostnames/CIDR ranges. Since possession of the shared secret is the only credential check performed, IP restriction is the second line of defense.