Skip to content

Ability to send dynamic query parameter to external SAML IDP via Identity Brokering #45301

Description

@stianst

Description

Customer wants to pass some dynamic query parameter from Keycloak to their external SAML IdP (e.g Ping Federate).

The customer's main use-case here is basically forwarding parameters from authorization requests to the IDP. Specifically, they have some insurance documents and a parameter named "Business Key" which is associated to a specific document. If there was no identity brokering, they would be passing the "Business Key" directly to Ping Federate in the SAML 2.0 SSO service URL which then will give a SAML Assertion based on the user and this "Business Key". It's functionally fine-grained authorization on a resource.

As of today, the Keycloak SAML IdP broker doesn't allow a client application to set any value from client input except the login hint.
Users need would need "destination" to have some sort of parameterized input to meet the request, but since "destination" is read exclusively from the config it's not possible. There's no other field that is a likely good candidate for their goals.

We already have a similar capability in Keycloak but for Social and OIDC-based brokers. Basically, it works by storing request parameters in the authentication session until a certain limit (configurable via provider config). For social and OIDC-based brokers, users can specify in a configuration setting which parameters to forward when building the authorization request to the identity provider.

For SAML, we would need to have the same mechanism.

Value Proposition

Enable context-aware SSO by safely forwarding allow-listed request parameters (e.g., business_key, tenant_id, etc...) through Keycloak's SAML broker so that external IdPs (e.g., PingFederate, ADFS...) can make fine-grained, resource/tenant-scoped decisions without custom proxies.
SAML is legacy but still a big thing in the IAM space. This improves the integration and streamlines the SAML login process with popular 3rd-party IAM solutions in the market. Hence good for the RH-SSO/ RHBK users base by satisfying their requirements in cross-IdP architectures context.

Goals

  • Forward some "allow-listed" parameters from the incoming authorization request into the outgoing SAML authn request sent to the external IdP.
  • Customer should be able to validate this for their "Document-scoped SSO" use case scenario by passing a "business_key" so that the IdP issues an assertion tied to a specific insurance document.

Activity

  1. added
    area/identity-brokering
    on Jan 9, 2026
  2. added
    kind/feature
    on Jan 9, 2026
  3. added theissue type on Jan 9, 2026
  4. added this to the Future milestone on Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/identity-brokeringkind/featureteam/core-iam

    Fields

    Value

    None yet

    Effort

    None yet

    Votes

    None yet

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions