We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d747e72 commit 910a979Copy full SHA for 910a979
1 file changed
tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs
@@ -25,6 +25,9 @@ public AuthTests(ITestOutputHelper outputHelper)
25
{
26
// Let the HandleAuthorizationUrlAsync take a look at the Location header
27
SocketsHttpHandler.AllowAutoRedirect = false;
28
+ // The dev cert may not be installed on the CI, but AddJwtBearer requires an HTTPS backchannel by default.
29
+ // The easiest workaround is to disable cert validation for testing purposes.
30
+ SocketsHttpHandler.SslOptions.RemoteCertificateValidationCallback = (_, _, _, _) => true;
31
32
var oAuthServerProgram = new TestOAuthServer.Program(XunitLoggerProvider, KestrelInMemoryTransport);
33
_oAuthRunTask = oAuthServerProgram.RunServerAsync(cancellationToken: _testCts.Token);
0 commit comments