Skip to content

Commit

Permalink
Add logger for v6
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Guijt committed Jun 18, 2024
1 parent a32c8a3 commit 9f47378
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions IdentityServer/v6/docs/content/ui/login/dynamicproviders.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ For example:
```cs
class CustomOidcConfigureOptions : ConfigureAuthenticationOptions<OpenIdConnectOptions, OidcProvider>
{
public CustomOidcConfigureOptions(IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
public CustomOidcConfigureOptions(IHttpContextAccessor httpContextAccessor,
ILogger<CustomOidcConfigureOptions> logger) : base(httpContextAccessor, logger)
{
}

Expand All @@ -131,7 +132,7 @@ class CustomOidcConfigureOptions : ConfigureAuthenticationOptions<OpenIdConnectO
The above class would need to be configured in DI (as before):

```cs
public void Configure(IServiceCollection services)
public void ConfigureServices(IServiceCollection services)
{
services.ConfigureOptions<CustomOidcConfigureOptions>();
}
Expand Down

0 comments on commit 9f47378

Please sign in to comment.