Skip to content

feat(samlconnection): add configurable login_hint - #575

Merged
NicolasLopes7 merged 1 commit into
v3from
nicolas/saml-login-hint
Jul 14, 2026
Merged

feat(samlconnection): add configurable login_hint#575
NicolasLopes7 merged 1 commit into
v3from
nicolas/saml-login-hint

Conversation

@NicolasLopes7

Copy link
Copy Markdown
Contributor

On a SAML SSO sign-in, a login_hint is sent to the identity provider to pre-fill the user's identifier. There is currently no way to configure or disable that hint through the SDK.

This adds an optional login_hint object to the SAML connection create and update params, and to the SAMLConnection response:

  • modeemail_address (send the typed identifier), custom_attribute (send a value resolved from the user's public metadata), or off (send nothing).
  • source — the public-metadata key to read when mode is custom_attribute.

The field is optional on write and mirrors the existing force_authn shape, so it is fully backward compatible.

Add a login_hint object to the SAML connection create and update params
and to the connection response. The object carries a mode and an optional
source, letting callers configure the login hint sent to the identity
provider when initiating a sign-in.
@NicolasLopes7
NicolasLopes7 force-pushed the nicolas/saml-login-hint branch from a74fdbf to bf900fd Compare July 14, 2026 15:01
@NicolasLopes7
NicolasLopes7 marked this pull request as ready for review July 14, 2026 15:02
@NicolasLopes7
NicolasLopes7 requested a review from a team as a code owner July 14, 2026 15:02
@NicolasLopes7
NicolasLopes7 merged commit 09ce2f0 into v3 Jul 14, 2026
7 checks passed
@NicolasLopes7
NicolasLopes7 deleted the nicolas/saml-login-hint branch July 14, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants