Is there a way to implement openiddict to a dotnet core Grpc service, I added the following in Startup.cs :
services.AddOpenIddict().AddCore(options => {
options.UseEntityFrameworkCore()
.UseDbContext<DBContext>();
}).AddServer(options => {
options.AcceptAnonymousClients();
options.AllowPasswordFlow()
.AllowRefreshTokenFlow();
options.AddDevelopmentSigningCertificate();
}).AddValidation(options =>{
options.EnableAuthorizationValidation();
});
also added in Configure:
app.UseAuthentication();
app.UseAuthorization();
How do can I get GetOpenIddictServerRequest in my service and generate a token?