Update the migration guide to mention that oi_scp claims are only usable with the OpenIddict validation handler

This commit is contained in:
Kévin Chalet 2021-08-25 15:51:51 +02:00
parent 99e72d2406
commit f0b957810c

View File

@ -171,6 +171,10 @@ services.AddAuthorization(options =>
}); });
``` ```
> [!CAUTION]
> These 2 options only work with the OpenIddict validation handler as the `oi_scp` claims are not populated by the JWT bearer handler developped by Microsoft.
> If you can't migrate to the OpenIddict validation handler, consider splitting the standard `scope` claim manually to determine whether it contains a specific value.
## Add and apply migrations, if necessary ## Add and apply migrations, if necessary
If your application uses Entity Framework Core or Entity Framework 6, add a migration to react to the schema changes listed below and apply it. If your application uses Entity Framework Core or Entity Framework 6, add a migration to react to the schema changes listed below and apply it.