Skip to content

Commit

Permalink
Merge pull request #3 from bluehands/develop
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
Tyrrx committed Nov 27, 2023
2 parents 91a688e + 81bcfcc commit 55d48f3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,25 @@ An implementation of [OpenID Connect Discovery 1.0](https://openid.net/specs/ope

## Installation

See [WebFinger.Server.OidcDiscovery](https://www.nuget.org/packages/WebFinger.Server.OidcDiscovery).

## Usage

```csharp
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](https://openid.net/specs/openid-connect-discovery-1_0.html).
## License
[MIT](https://github.com/bluehands/WebFinger.Server.OidcDiscovery/blob/main/LICENSE)
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<!-- Source link requires git via https -->
<RepositoryUrl>https://github.com/bluehands/WebFinger.Server.OidcDiscovery.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<RepositoryBranch>main</RepositoryBranch>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 55d48f3

Please sign in to comment.