Skip to content

Commit

Permalink
Merge pull request #4 from bluehands/feature/service-provider-registr…
Browse files Browse the repository at this point in the history
…ation

Feature/service provider registration
  • Loading branch information
Tyrrx authored Nov 22, 2024
2 parents 55d48f3 + dda592f commit 2171054
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionPrefix>1.1.0</VersionPrefix>
<Title>WebFinger OpenID Connect Discovery 1.0</Title>
<Description>An implementation of OpenID Connect Discovery 1.0 for ASP.NET Core</Description>
<PackageTags>oidc discovery webfinger</PackageTags>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ public static IServiceCollection AddOidcWebFinger(this IServiceCollection servic
return services;
}

// ReSharper disable once UnusedMember.Global
public static IServiceCollection AddOidcWebFinger(this IServiceCollection services,
Func<IServiceProvider, OidcIssuer> createIssuer)
{
services.AddWebFinger(sp => new OidcResourceDescriptorProvider(createIssuer(sp)));
return services;
}

private class OidcResourceDescriptorProvider : IResourceDescriptorProvider
{
private readonly OidcIssuer issuer;
Expand Down
7 changes: 0 additions & 7 deletions src/WebFinger.Server.OidcDiscovery/global.json

This file was deleted.

0 comments on commit 2171054

Please sign in to comment.