Browse Source

Update README.md to document how to properly register the OpenIddict context when using a custom key type

pull/140/head
Massimiliano Donini 10 years ago
committed by Kévin Chalet
parent
commit
8e6963765c
  1. 6
      README.md

6
README.md

@ -130,6 +130,12 @@ public class ApplicationDbContext : IdentityDbContext<ApplicationUser> {
}
```
> **Note:** if you change the default entity primary key (e.g. to `int` or `Guid` instead of `string`), make sure to register your Entity Framework context using the overload accepting a `TKey` generic argument:
```csharp
services.AddOpenIddict<ApplicationUser, IdentityRole<int>, ApplicationDbContext, int>()
```
## Enabling interactive flows support
Out-the-box, **OpenIddict only enables non-interactive flows** (resource owner password credentials, client credentials, refresh token).

Loading…
Cancel
Save