HttpContext does not contain definition for GetOpenIddictServerRequest
Solution 1:
If you want to use GetOpenIddictServerRequest()
method , you need to add NuGet Packages OpenIddict.AspNetCore
.
=================
IF you want to use it in Minimal Api , you can change some code like :
using Microsoft.AspNetCore;
//.........
app.MapPost("/connect/token", (HttpContext c) =>
{
var request = c.GetOpenIddictServerRequest();
//........
});