Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
abatishchev authored Feb 12, 2022
1 parent 20378ec commit d4dee86
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,8 @@ public void Configure(IApplicationBuilder app)
### Custom factories to produce Identity or AuthenticationTicket

```c#
options.IdentityFactory = dic => new ClaimsIdentity(
dic.Select(p => new Claim(p.Key, p.Value)));

options.TicketFactory = (identity, scheme) => new AuthenticationTicket(
new ClaimsPrincipal(identity),
new AuthenticationProperties(),
scheme.Name);
services.AddSingleton<IIdentityFactory, CustomIdentityFctory>();
services.AddSingleton<ITicketFactory, CustomTicketFactory>();
```

### Register middleware to validate JWT
Expand Down

0 comments on commit d4dee86

Please sign in to comment.