Skip to content

bluehands/WebFinger.Server.OidcDiscovery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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