AspNetCore.HealthChecks.OpenIdConnectServer 9.0.0
OpenID Connect Server Health Check
This health check verifies that an OpenID Connect server (like Duende IdentityServer, Microsoft Entra ID, etc.) is responding. Internally, it downloads the discovery document and checks existence of document's properties.
Example Usage
Use the following snippet to register an OpenID Connect server accessible at https://myoidcserver.com.
public void ConfigureServices(IServiceCollection services)
{
services
.AddHealthChecks()
.AddOpenIdConnectServer(oidcSvrUri: new Uri("https://myoidcserver.com"));
}
Use the following snippet to additionally specify a different discovery endpoint path. The default value if not specified is .well-known/openid-configuration
.
public void ConfigureServices(IServiceCollection services)
{
services
.AddHealthChecks()
.AddOpenIdConnectServer(
oidcSvrUri: new Uri("https://myoidcserver.com"),
discoverConfigurationSegment: "discovery/endpoint");
}
You can additionally specify the following parameters:
name
: The health check name. Default if not specified isoidcserver
.failureStatus
: TheHealthStatus
that should be reported when the health check fails. Default isHealthStatus.Unhealthy
.tags
: A list of tags that can be used to filter sets of health checks.timeout
: ASystem.TimeSpan
representing the timeout of the check.
No packages depend on AspNetCore.HealthChecks.OpenIdConnectServer.
.NET 8.0
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.11)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Net.Http.Json (>= 8.0.1)
.NET Standard 2.0
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.11)
- Microsoft.Extensions.Http (>= 8.0.0)
- System.Net.Http.Json (>= 8.0.1)
Version | Downloads | Last updated |
---|---|---|
9.0.0 | 1 | 01/18/2025 |
8.0.1 | 3 | 10/05/2024 |
8.0.0 | 3 | 09/20/2024 |
7.0.0 | 3 | 10/20/2024 |
7.0.0-rc2.4 | 2 | 11/21/2024 |
7.0.0-rc2.3 | 4 | 10/05/2024 |
7.0.0-rc2.2 | 3 | 10/06/2024 |
7.0.0-rc2.1 | 3 | 10/04/2024 |
6.0.2 | 9 | 03/18/2023 |
6.0.1 | 51 | 01/25/2022 |
6.0.1-rc1.3 | 3 | 10/06/2024 |
6.0.0 | 4 | 10/06/2024 |
5.0.1 | 168 | 12/16/2021 |
5.0.0 | 2 | 10/05/2024 |
5.0.0-preview1 | 3 | 09/12/2024 |
3.1.1 | 2 | 09/18/2024 |
3.1.0 | 2 | 09/15/2024 |
3.0.0 | 2 | 10/07/2024 |
2.2.2 | 3 | 09/15/2024 |
2.2.1 | 3 | 09/11/2024 |
2.2.0 | 3 | 08/31/2024 |