You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Service.Tests/UnitTests/SqlQueryExecutorUnitTests.cs
+26Lines changed: 26 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -850,6 +850,32 @@ public void TestObo_DifferentUsersGetDifferentPoolHashes()
850
850
"Different users should have different Application Names (different pool hashes)");
851
851
}
852
852
853
+
/// <summary>
854
+
/// Test that when OBO is enabled and a user is authenticated but missing required claims,
855
+
/// CreateConnection throws a DataApiBuilderException with OboAuthenticationFailure to prevent
856
+
/// cross-user connection pool contamination.
857
+
/// </summary>
858
+
[DataTestMethod,TestCategory(TestCategory.MSSQL)]
859
+
[DataRow("https://login.microsoftonline.com/tenant-id/v2.0","",DisplayName="Authenticated with iss only - missing oid/sub")]
860
+
[DataRow("","user-object-id-12345",DisplayName="Authenticated with oid only - missing iss")]
0 commit comments