Honor exact SGO passwords for managed domain users
This commit is contained in:
1 parent
738df9ceea
commit
843a1956d6
11 files changed
+224
-19
No files matched your search
@@ -46,6 +46,7 @@ public sealed class BrokerClientTests
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
Assert.Equal(BrokerDecisionKind.InvalidCredentials, decision.Kind);
|
||||
Assert.Equal("INVALID_INSTITUTIONAL_CREDENTIALS", decision.ErrorCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -61,6 +62,23 @@ public sealed class BrokerClientTests
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
Assert.Equal(BrokerDecisionKind.Unavailable, decision.Kind);
|
||||
Assert.Equal("NTLM_UPSTREAM_ERROR", decision.ErrorCode);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task SynchronizationFailureRetainsItsSpecificErrorCode()
|
||||
{
|
||||
using BrokerClient client = new(
|
||||
CreateSettings(),
|
||||
new CapturingHandler(HttpStatusCode.ServiceUnavailable, "{\"code\":\"DIRECTORY_SYNCHRONIZATION_FAILED\"}"));
|
||||
|
||||
BrokerDecision decision = await client.AuthenticateAsync(
|
||||
"AL250792",
|
||||
"SGOAccepted",
|
||||
TestContext.Current.CancellationToken);
|
||||
|
||||
Assert.Equal(BrokerDecisionKind.Unavailable, decision.Kind);
|
||||
Assert.Equal("DIRECTORY_SYNCHRONIZATION_FAILED", decision.ErrorCode);
|
||||
}
|
||||
|
||||
private static ProviderSettings CreateSettings() => new()
|
||||
|
||||
Reference in new issue
Block a user