Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.27 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.27 KB

WebFinger.Server.OidcDiscovery

An implementation of OpenID Connect Discovery 1.0 for ASP.NET Core

Table of Contents

Installation

See WebFinger.Server.OidcDiscovery.

Usage

var builder = WebApplication.CreateBuilder();
// ...
// e.g. with Keycloak (domain:my-custom-domain.com realm: my-custom-realm)
builder.Services.AddOidcWebFinger(new OidcIssuer(new Uri("https://my-custom-domain.com/realms/my-custom-realm")));
// ...
var app = builder.Build();
// ...
app.UseWebFinger();
// ...
app.Run();

In general the URI must point to the root of the OIDC provider so that client can take advantage of the well known routes. For details see https://openid.net/specs/openid-connect-discovery-1_0.html.

License

MIT