Skip to content

Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration) #515

Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration)

Authorization Support (Using ASP.NET Core Native AuthN/AuthZ Integration) #515

Triggered via pull request June 30, 2025 08:58
Status Failure
Total duration 4m 15s
Artifacts 6

ci-build-test.yml

on: pull_request
Matrix: build
publish-coverage  /  publish-coverage
publish-coverage / publish-coverage
Fit to window
Zoom out
Zoom in

Annotations

30 errors
build (macos-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
build (ubuntu-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
build (ubuntu-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
build (macos-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
build (windows-latest, Release)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
build (windows-latest, Debug)
Process completed with exit code 1.
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CannotAuthenticate_WithUnregisteredClient: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L164
Assert.Throws() Failure: Exception type was not an exact match Expected: typeof(Xunit.Sdk.EqualException) Actual: typeof(ModelContextProtocol.McpException) ---- ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'
ModelContextProtocol.AspNetCore.Tests.AuthTests.CanAuthenticate: /_/tests/ModelContextProtocol.AspNetCore.Tests/AuthTests.cs#L114
ModelContextProtocol.McpException : Failed to handle unauthorized response with 'Bearer' scheme. Failed to retrieve metadata for authorization server: 'https://localhost:7029/'

Artifacts

Produced during runtime
Name Size Digest
testresults-macos-latest-Debug Expired
1.28 MB
sha256:63440ba0593d9deb3181c4827b0763c458ea23d456b501196dc2f5346ca1d13f
testresults-macos-latest-Release Expired
1.16 MB
sha256:f41dccb0821137bd1283fcc03835b9fd72d0892b414d15df5ffa8c0054cd027e
testresults-ubuntu-latest-Debug Expired
1.28 MB
sha256:7b1c783fa00f72c4ebb10175f78522f2f7f0cdb095ca8a8c6260323ae20668d6
testresults-ubuntu-latest-Release Expired
1.16 MB
sha256:3eaf6db5981c856b658885887b7bf5ef3ee850c2e77ae5fe5c2830661e4c08de
testresults-windows-latest-Debug Expired
1.26 MB
sha256:6c1edcc31a91e7ed8626d28347ce12bd0ea628a410e743595587d52e2a6d1b2d
testresults-windows-latest-Release Expired
1.14 MB
sha256:2dc047f65776359ab24a7d4aa5750d23c926186f99066038661208943d0655af