Skip to content

fix(auto-enroll-status): [PM-39004] POC pass SSO identifier as query param for auto-enroll-status#7808

Draft
Patrick-Pimentel-Bitwarden wants to merge 2 commits into
mainfrom
auth/pm-39004/poc-of-sso-identifier-url-encoding
Draft

fix(auto-enroll-status): [PM-39004] POC pass SSO identifier as query param for auto-enroll-status#7808
Patrick-Pimentel-Bitwarden wants to merge 2 commits into
mainfrom
auth/pm-39004/poc-of-sso-identifier-url-encoding

Conversation

@Patrick-Pimentel-Bitwarden

@Patrick-Pimentel-Bitwarden Patrick-Pimentel-Bitwarden commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-39004

📔 Objective

The org SSO identifier is admin-chosen and may contain reserved URL characters (e.g. '/'), which break the existing {identifier}/auto-enroll-status path route (no route matches -> 404).

  1. Add a new GET /organizations/auto-enroll-status?identifier=... route sharing the same logic, and mark the old path route [Obsolete] (kept functional for backward compatibility).

📸 Screenshots

The org SSO identifier is admin-chosen and may contain reserved URL characters (e.g. '/'), which break the existing {identifier}/auto-enroll-status path route (no route matches -> 404). Add a new GET /organizations/auto-enroll-status?identifier=... route sharing the same logic, and mark the old path route [Obsolete] (kept functional for backward compatibility).
@codecov

codecov Bot commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.23%. Comparing base (b4ca763) to head (5225874).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7808      +/-   ##
==========================================
+ Coverage   61.13%   61.23%   +0.09%     
==========================================
  Files        2173     2209      +36     
  Lines       96752    97722     +970     
  Branches     8726     8815      +89     
==========================================
+ Hits        59150    59836     +686     
- Misses      35490    35763     +273     
- Partials     2112     2123      +11     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sonarqubecloud

Copy link
Copy Markdown

sutProvider.GetDependency<IPolicyQuery>().RunAsync(organization.Id, PolicyType.ResetPassword).Returns(policy);

#pragma warning disable CS0618 // Type or member is obsolete - retained for backward compatibility, kept under test.
var result = await sutProvider.Sut.GetAutoEnrollStatus(organization.Id.ToString());
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