Skip to content

Fortified IDDocs

SAML Broker

Fortified ID can act as a SAML Broker (sometimes also referred to as an IdP proxy).

To learn more about how Fortified ID Access supports SAML, please click LINK.

This authenticator acts as a SAML Broker (sometimes also referred to as an IdP proxy).

Typically used in SAML brokering scenarios when one or more methods of identification reside on a remote IdP.
Note. Fortified ID Access has native authenticators for some remote IdPs, for example Swedish BankID and Freja. However, if you use BankID or Freja through a third-party provider, you need to configure them using a SAML Broker.

Common Authenticator configuration can be found here.

NameDescriptionDefault valueMandatory
issue_as_sp_entityWhen sending authentication request, what is the entity id used.N/Atrue
target_idp_entityThe remote IDP entity id to trust.N/Atrue
custom_identifierCustom identifier to be set in the event logging entryN/Afalse
authn_request_policyPer-attempt ForceAuthn, IsPassive and RequestedAuthnContext policy. See Authentication requirements.{}false
force_auth_requestShould the auth request force re-authenticationfalsefalse
assertion_consumer_service_urlOptional override for the outgoing AuthnRequest's AssertionConsumerServiceURL. If omitted or empty, use the first ACS URL in the internal SP metadata. The target IdP must accept this URL.false
sign_authn_requestOptional boolean controlling AuthnRequest signing. true always signs; false sends unsigned requests. If omitted, follow the target IdP metadata's WantAuthnRequestsSigned setting.false
sign_algorithmWhich signature algorithm to use if signing authn-requests. Ensure it is working with the private key used. Used whenever the broker signs an AuthnRequest, whether required by IdP metadata or enabled explicitly.http://www.w3.org/2001/04/xmldsig-more#rsa-sha256false
sign_digest_methodWhich digest method to use if signing authn-requests. Ensure it is working with the selected signature algorithm. Used whenever the broker signs an AuthnRequest, whether required by IdP metadata or enabled explicitly.http://www.w3.org/2001/04/xmlenc#sha256false
validate_audience_restrictionsOptional validation rule (true/false)falsefalse
validate_destinationOptional validation rule (true/false)falsefalse
validate_authn_instantOptional validation rule (true/false)falsefalse
validate_session_timestampOptional validation rule (true/false)falsefalse
skew_time_secondsMaximum acceptable time difference (seconds)60false
authn_context_class_refValue sent in AuthnContextClassRefN/Afalse
replay_max_node_clock_offset_secondsMaximum pairwise node clock difference used to retain replay markers. All nodes sharing the SP must use the same value and clock skew.60false
allowed_authn_context_class_refLegacy response allowlist. Values must also satisfy the effective static and incoming requirements; this list cannot broaden an exact requirement. Configure as array: "allowed_authn_context_class_ref":["xxx","yyy"]N/Afalse

Access remains the IdP for the initiating SP and a separate SP towards the external IdP. The broker creates its own request ID, issuer, destination, ACS, RelayState and signature. It carries selected authentication requirements, not a copy of the original AuthnRequest.

The following behavior is available for testing in Access 3.9.3-RC8. Functional acceptance is pending. Configure authn_request_policy inside the broker's config object:

{
"id": "external-idp",
"type": "SAMLSPBroker",
"config": {
"base_path": "/authn",
"issue_as_sp_entity": "https://access.example.test/sp",
"target_idp_entity": "https://external.example.test/idp",
"authn_request_policy": {
"force_authn": "incoming",
"is_passive": "incoming",
"requested_authn_context": { "mode": "incoming" }
}
}
}

The entity IDs must match the configured internal SP and trusted external IdP metadata. The example names are placeholders.

Property Values Default
force_authn disabled, incoming, required disabled
is_passive disabled, incoming, required disabled

required adds a local requirement. In every mode, an incoming true remains effective: neither disabled, incoming, false nor an omitted value can turn off an applicable requirement. Omitting the policy preserves static configuration, but does not permit a successful response with unmet incoming requirements.

Effective ForceAuthn combines the initiating SP's flag, broker force_auth_request, broker force_authn=required, and the IdP's global or SP-specific force_re_auth. These use OR semantics. A local freshness requirement on a broker directly listed in the IdP chain prevents reuse of the Access controller's cached authentication. This applies to both chain and legacy required_authenticators; explicit chain takes precedence, even when empty.

For forced external authentication, the verified AuthnInstant must be no older than the outbound request, allowing one second for timestamp precision. This check applies independently of the optional validate_authn_instant setting and its general clock-skew configuration. Synchronize the participating nodes' clocks. Access returns the verified external time and context to the SP; issuing a new assertion does not make an old external login fresh.

IsPassive is effective when requested by the initiating SP or added by is_passive=required. A valid completed Access session can be reused if the other requirements allow it. Otherwise, configure the broker directly in the IdP chain. The controller checks the actual redirect destination after chain ordering, including start_location and continuation. Selectors, nested chains and destinations that cannot be verified as initialized brokers are rejected with NoPassive before dispatch. Local broker policy is discovered from brokers directly listed in that chain; do not rely on it to make a selector or nested route passive.

Combining ForceAuthn and IsPassive requires fresh authentication without visible interaction. An external IdP that cannot meet both must return an error; Access does not fall back to an interactive flow.

requested_authn_context is an object inside authn_request_policy.

Property Meaning Default
mode disabled, incoming, configured or mapped, as described below. disabled
class_refs Nonempty ordered array of context URIs for configured or mapped. No configured list
comparison exact, minimum, maximum or better. exact
accepted_class_refs Top-level allowlist for configured context when no mapping replaces it. For comparison rules or mappings, use the list inside that rule or mapping. An exact list can only narrow its requested references. No additional list
comparison_rules Rules matching the full ordered class_refs and comparison, each with a nonempty accepted_class_refs list. No rules
mappings Explicit translations between incoming and configured requirements, including the permitted external results and asserted context. No mappings

The modes are:

  • disabled: retain the static authn_context_class_ref request. Incoming requirements are still checked against the verified result.
  • incoming: send the incoming references in their original order and preserve Comparison. If no context is requested, retain the static context. Existing static constraints remain enforced.
  • configured: use this object's class_refs and comparison. A different incoming requirement needs an explicit mapping before it can be replaced.
  • mapped: apply the same configured-context and mapping rules, with a name that makes administrative translation explicit.

Access does not infer a strength ordering between vendor-specific URIs. Identity can satisfy exact, minimum and maximum. Other permitted results require an explicit matching comparison rule; better requires an explicitly permitted result. For example, this requested_authn_context object allows a known stronger result:

{
"mode": "incoming",
"comparison_rules": [
{
"class_refs": ["urn:example:level-2"],
"comparison": "better",
"accepted_class_refs": ["urn:example:level-3"]
}
]
}

A mapping explicitly attests that the external requirement is equivalent to or stronger than the incoming requirement. It matches both complete ordered lists and their comparisons. accepted_class_refs lists permitted verified external results; asserted_class_ref is the context returned to the SP and must satisfy its original requirement. For example:

{
"mode": "mapped",
"class_refs": ["urn:external:mfa"],
"comparison": "exact",
"mappings": [
{
"incoming": { "class_refs": ["urn:caller:mfa"], "comparison": "exact" },
"configured": { "class_refs": ["urn:external:mfa"], "comparison": "exact" },
"accepted_class_refs": ["urn:external:mfa"],
"asserted_class_ref": "urn:caller:mfa"
}
]
}

Replace these synthetic URIs with reviewed values for the integration. An exact accept list cannot authorize a different external context URI, including in a comparison rule or mapping target. Do not retain a contradictory static authn_context_class_ref; the legacy allowed_authn_context_class_ref list cannot relax the effective static or incoming requirements. Invalid modes and incomplete rules or mappings fail initialization. AuthnContextDeclRef requests are rejected with NoAuthnContext.

Proxy restrictions apply even when authn_request_policy is omitted or disabled:

  • ProxyCount=0 prevents another broker request and yields ProxyCountExceeded on the broker path. Direct authentication can still satisfy the original request.
  • A positive count is sent as one less: 1 becomes 0, 2 becomes 1. A missing count remains missing.
  • An incoming IDPList is preserved in outbound Scoping, including entries, order and attributes. The configured target_idp_entity must be present in its explicit entries; otherwise Access returns NoSupportedIDP. Unavailable configured metadata or endpoints yield NoAvailableIDP when detected as unavailable.
  • Access does not fetch GetComplete or dynamically select or add an IdP. GetComplete is preserved with the list; it does not replace the explicit target check.

Issuer, ID, IssueInstant, Destination, ACS and signature remain Access's own outbound values. Other unsupported fields, such as arbitrary Extensions or NameIDPolicy, are not transparently forwarded.

NoPassive, NoAuthnContext, AuthnFailed, ProxyCountExceeded, NoSupportedIDP and NoAvailableIDP terminate the affected protocol flow. Required errors are returned to the initiating SP even when the IdP's send_failed_response is false. External error status is used only after verifying the signed response envelope, trusted issuer, destination, request correlation and time. Error text from the external IdP is not copied to the SP.

Before upgrading, verify the integration with existing Access and external IdP sessions, the actual returned contexts and timestamps, passive flows, multi-broker proxy limits, SP error handling, and a new login after success, failure and cancellation. Test routing, cookies/session storage and configuration reload together in the deployed runtime. Use synthetic test accounts and data.

Set assertion_consumer_service_url in the broker configuration to override the AssertionConsumerServiceURL in outgoing AuthnRequests. If omitted or empty, the broker uses the first AssertionConsumerService URL in the internal SP metadata.

The override does not modify SP metadata or the ProtocolBinding, which still comes from the first ACS entry. Incoming HTTP request parameters cannot override this configuration. The URL is set before signing, so a signed AuthnRequest protects the selected URL.

When validate_destination is enabled, the configured override is accepted as an additional response destination alongside the ACS URLs from SP metadata. Other destinations are still rejected. Omitting the override keeps the existing metadata-based destination validation.

The receiving IdP must accept the selected URL; otherwise it may reject the request. Configure only a trusted endpoint intended to receive the SAML response.

When Access finds exactly one distinct local SAML IdP logout URL, it adds that URL to the broker SP metadata for any missing HTTP-Redirect or HTTP-POST SingleLogoutService entry. The logout URL uses the public SAML IdP sign-in URL with /samlslo appended to its path. The broker's AssertionConsumerService URL, including any query parameters, stays as configured for sign-in.

An explicit SingleLogoutService entry takes precedence for its binding. If Access finds no unique local SAML IdP logout URL, set SingleLogoutService in the SP metadata template for each binding you use. Point it to the public logout URL of the SAML IdP that handles the logout for that broker.

After updating the generated SP metadata, refresh or re-import it at the external IdP if that IdP caches a copy.

sign_authn_request takes precedence over the target IdP metadata:

Configuration Outbound AuthnRequest
true Always signed, regardless of WantAuthnRequestsSigned.
false Always unsigned, even when WantAuthnRequestsSigned is enabled.
Omitted Signed when the target IdP metadata enables WantAuthnRequestsSigned; otherwise unsigned. This preserves existing behavior.

Signing uses the internal SP's signing certificate and private key, together with sign_algorithm and sign_digest_method. If signing is required but the certificate or private key is missing, request generation fails with a clear error. It does not fall back to an unsigned request.

Authentication must start at the broker. The pending request binds the selected IdP, request ID and receiving ACS; unsolicited IdP-initiated login responses are rejected.

The response and assertion issuers must exactly match the selected IdP, with absent or entity issuer format. A trusted signature must protect the assertion, on the response or the assertion itself. If both are signed, both signatures are verified. Encrypted assertions are decrypted before validation.

A bearer SubjectConfirmation must match the receiving ACS and pending request ID, contain an unexpired NotOnOrAfter, and omit NotBefore. A signed response must also match the request ID in its own InResponseTo. For successful authentication, response status, response issue time and assertion validity timestamps are checked. Signed external protocol errors follow the separate checks in Protocol errors. Request correlation is mandatory; the former validate_in_response_to setting cannot disable it.

validate_destination, validate_audience_restrictions, validate_authn_instant and validate_session_timestamp enable additional checks. The broker validates returned authentication context against the requested and allowed values before recording replay state or exporting attributes. With validate_authn_instant: true, the broker retains the legacy exclusive age limit of skew_time_seconds and rejects timestamps beyond the allowed future skew. The broker does not read the AuthN SAMLSP module's max_authn_age_seconds property.

The validated issuer and assertion ID are registered atomically before authentication and session exports. Reuse or replay-store failure rejects login. Nodes in the same Vert.x cluster sharing the SP entity ID share replay protection; unclustered instances have independent local state. Retention covers bearer validity plus clock skew and replay_max_node_clock_offset_seconds; cache_ttl_seconds no longer controls it.

Keep node clocks within the configured pairwise offset bound and use identical skew and offset values on all nodes sharing the SP. Changing this policy requires a coordinated restart clearing replay state and pending sessions. Replay state is not guaranteed to survive a complete cluster restart. Restart pending logins created before upgrading to request-bound validation.

On request sent to remote IDP:

  • WEB_100027("Sent auth request to remote IDP")
  • IDENTIFIER (user traceid)
  • SOURCE_SERVICE_NAME (entity id from requesting SP)
  • SOURCE_ADDRESS (user IP address)
  • AUTHENTICATOR_ID, Configured id and display_anme
  • CUSTOMER_IDENTIFIER (if configured)

On a successful authentication event is logged containing the following:

  • WEB_100014("Authenticated using SP-broker method")
  • IDENTIFIER (user traceid)
  • SOURCE_SERVICE_NAME (entity id from the SAML response)
  • SOURCE_USER_NAME (name id from the issued assertion)
  • SOURCE_ADDRESS (user IP address)
  • AUTHENTICATOR_ID, Configured id and display_anme
  • CUSTOMER_IDENTIFIER (if configured)
  • All attributes in the incoming assertion with value(s). Multivalued attributes att joined using comma ",".

On a failed response from remote IDP

  • WEB_100026("Authenticated failed using SP-broker method")
  • IDENTIFIER (user traceid)
  • SOURCE_SERVICE_NAME (entity id from the SAML response)
  • SOURCE_ADDRESS (user IP address)
  • AUTHENTICATOR_ID, Configured id and display_anme
  • CUSTOMER_IDENTIFIER (if configured)

When consuming and validating the response only one assertion is allowed. Either response or assertion must be signed. No signatures will produce error.

After successful validation, data stored in the global state are:

  • nameID - containing the name-id reported in the assertion.
  • remoteIssuer - value of the IDP entityID issuing the assertion.
  • Attributes whose names start with __saml_ are reserved and are not imported from the assertion.
  • All other additional attributes from the assertion. Multivalued attributes are merged into a comma-separated string. FriendlyName is favoured over Name.
    • if an incoming attribute with Name urn:oid:2.5.4.42 and FriendlyName givenName, givenName is used as key in global state.
    • If no FriendlyNAme attribute is present Name is used.