November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
All the option classes are still available, have you tried:
services.Configure<OpenIddictServerOptions>(options =>
{
options.Handlers.Add(new OpenIddictServerHandlerDescriptor
{
...
});
});
There is probably an extension method available to make this code nicer, so you don't have to construct the descriptor. It also look like you have to add the descriptor to the container:
var descriptor = new OpenIddictServerHandlerDescriptor
{
...
};
services.Add(descriptor.ServiceDescriptor);
services.Configure<OpenIddictServerOptions>(options =>
{
options.Handlers.Add(descriptor);
});
I've added to our backlog that we should look into exposing OpenIddictBuilder, which makes the code a bit cleaner when you want to extend our code.
Thanks, works like a charm!
+1 if it could be exposed as part of the Episerver package.
When using AddOpenIDConnect() we have no access to the underlying calls that adds the OpenIddict server, for adding e.g. eventhandlers.
https://kevinchalet.com/2018/07/02/implementing-advanced-scenarios-using-the-new-openiddict-rc3-events-model/
Has anyone found away around this? I'm thinkning that the Episerver.OpenIdConnect package should expose the OpenIddict internals in some way to allow us to do this sort of customization. An alternative of course is to implement OpenIddict without the Episerver package but it feels overkill.