Skip to content

fix(auth): drop acr_values from OAuth flow, make no-acr the default - [PLT-107095]#608

Draft
Raina451 wants to merge 1 commit into
mainfrom
fix/no-acr-values-default
Draft

fix(auth): drop acr_values from OAuth flow, make no-acr the default - [PLT-107095]#608
Raina451 wants to merge 1 commit into
mainfrom
fix/no-acr-values-default

Conversation

@Raina451

@Raina451 Raina451 commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

acr_values was added in #364 so Identity could resolve the org partition during the OIDC flow (needed then for SSO silent login and MS Entra). But it made Identity route straight to the org's SSO/SAML IdP always, which blocked Basic Auth users in mixed-auth orgs. #408 then added an internal setMultiLogin() as an interim workaround: calling it dropped acr_values so the UiPath login picker showed instead of forced SSO.

Identity has now fixed the root cause, it now resolves the correct partition from client_id, so acr_values is no longer needed for any flow. This PR removes it entirely, makes no-acr the default, and drops the now-redundant setMultiLogin().

Tested in alpha, working across every login method:

  • Basic Auth (local users)
  • SSO / SAML, including MS Entra and silent login with an existing session
  • Directory-only SSO users
  • Mixed-auth orgs (SSO and Basic Auth users in the same app)

The SDK appended acr_values (tenant:/tenantName:) to the authorize URL,
which routes auth directly to the org's SAML IdP. That blocked Basic Auth
users in mixed-auth orgs ("account not found"). setMultiLogin() existed only
to skip acr_values as a workaround.

Alpha testing confirms Identity now resolves the target org from client_id
alone, so acr_values is never needed and all auth types work without it.
Make no-acr the permanent default and remove the now-redundant setMultiLogin()
(it was @internal and became a no-op).

BREAKING CHANGE: removes the @internal setMultiLogin() from UiPath and IUiPath.
No-acr behavior is now automatic, so callers should delete setMultiLogin() calls.

Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
@claude

claude Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

✅ No issues found. Checked for bugs and CLAUDE.md compliance.

@sonarqubecloud

Copy link
Copy Markdown

@Raina451 Raina451 changed the title fix(auth): drop acr_values from OAuth flow, make no-acr the default fix(auth): drop acr_values from OAuth flow, make no-acr the default - [PLT-107095] Jul 16, 2026
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.

1 participant