Sector Identifier#
Janssen Server supports sector identifier URI and pairwise subject IDs for OpenId Connect relying party.
As defined in OpenId Connect core specification, the
sector identifiers value is used to derive pairwise subject IDs. Janssen Server also supports Sector Identifier URI as
part of client configuration. Sector Identifier URI when used with pairwise subject type, enables a group of
websites under the same administrative control to receive the same subject identifiers.
Sector Identifier URI also allows clients to
change the host component of the redirect URI and still keep the subject identifiers unchanged.
Configuring Sector Identifier#
Janssen Server runs below mentioned checks on value configured for Sector Identifier URI:
- URI should have a
httpsschema - URI should be accessible to Janssen Server and the response should be a valid JSON array of redirect URIs
- All redirect URI received in response must exist in the list of the redirect URI provided by the client at the registration time
Note
If the client can not host an endpoint that will be reachable by Sector Identifier URI, then in order to use the pairwise
subject IDs, the client must supply a Redirect URI list where URIs have the same host component. The host component
value will be used as the sector identifier.
Security Considerations#
SSRF Protection#
Before fetching the content of a Sector Identifier URI, the Janssen Server resolves its host and rejects the URI if
it resolves to a private, loopback, or link-local IP address (e.g. 127.0.0.1, 10.0.0.0/8, 192.168.0.0/16,
169.254.0.0/16), or if the host cannot be resolved at all. This prevents Server-Side Request Forgery (SSRF) attacks,
where a registered Sector Identifier URI is used to make the Janssen Server issue requests to internal-only network
resources.
The requestUriBlockList configuration property can additionally be used to explicitly block specific hosts or URL
patterns from being used as a Sector Identifier URI, regardless of what they resolve to.
If a specific Sector Identifier URI legitimately needs to resolve to a private address (for example, in a closed
test or CI environment where the Janssen Server validates a sector identifier hosted on itself), it can be added to
the externalUriWhiteList configuration property. A matching entry in externalUriWhiteList explicitly bypasses the
private-address and unresolved-host checks for that URI only — it does not bypass the requestUriBlockList
check, which is still enforced regardless of whitelisting. externalUriWhiteList is empty by default, so private
addresses continue to be rejected for every host unless an administrator explicitly opts a specific one in.
Configuration With Pairwise Subject Type#
How sector identifier value is used to derive value for the pairwise subject identifier is detailed in the OIDC core specification.
Janssen Server allows clients/RPs to set subject type. The public subject type is the default and the client/RP can choose
to use the pairwise type. When using TUI, this can be configured from the client configuration screen below:

When the pairwise subject type is selected, the value for Sector Identifier URI can be left blank if all redirect
URIs have the same host component. If the list of redirect URIs contains multiple host names,
providing a Sector Identifier URI is a must. When Sector Identifier URI is provided, the host component of the URI is
used as a sector identifier.
Configuration Properties#
Janssen Server allows customization concerning sector identifiers using the properties below:
- sectorIdentifierCacheLifetimeInMinutes
- shareSubjectIdBetweenClientsWithSameSectorId
- requestUriBlockList
- externalUriWhiteList
Want to contribute?#
If you have content you'd like to contribute to this page in the meantime, you can get started with our Contribution guide.