You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Add/Remove/Configure Authentication Middleware at Runtime #1132
Is it possible to add and remove AuthenticationMiddleware at Runtime?
I wan't to configure/add/remove OpenIdConnectAuthenticationProviders inside a WebGui.
I was thinking about storing the ProviderOptions in a Database, with the AuthenticationScheme as GUID.
In my special case i wan't to use IdentityServer4 for multiple Customers.
If an new Customer arrives, i will add a new "Provider" to the Database an register it as Middleware in the pipeline. On the other side, i have to unregister the Provider and delete from Database.
Or maybe is it possible to query the Database on every Challenge if the AuthenticationScheme exists??
Any Ideas?
I have the need to add/remove/configure OpenIdConnectAuthentication without recompile or restart the Asp.net Core WebApplication...
Where's this at? Is this now possible? Is there documentation on how to do it? I need to be able to add/remove these via a UI without having to restart our api layer every time.
Activity
Tratcher commentedon Feb 21, 2017
Not today, @hoak is building this feature right now: #1113, your feedback would be appreciated.
windischb commentedon Feb 21, 2017
Thanks!
HaoK commentedon Feb 21, 2017
I'll add a unit test today to make sure we support adding and removing schemes dynamically works in the new stack
daboul commentedon Feb 22, 2017
Hi. I was wondering the exact same thing and just asked about it on SO.
http://stackoverflow.com/questions/42365743/installing-a-new-middleware-at-runtime-in-asp-net-core
I'll definitively give it a try when it's out.
Thanks.
HaoK commentedon Feb 22, 2017
See d92d923 for what it currently looks like, basically its just associating a schemeName with a handlerType in a new service.
Eilon commentedon Feb 23, 2017
We need to carefully consider threading scenarios such as:
HaoK commentedon Apr 13, 2017
Tracked via #1179
JohnGalt1717 commentedon Nov 20, 2018
Where's this at? Is this now possible? Is there documentation on how to do it? I need to be able to add/remove these via a UI without having to restart our api layer every time.
Thanks!
Tratcher commentedon Nov 20, 2018
Here's a sample: https://github.com/aspnet/AspNetCore/tree/5a6b6c90b6e32ecab4975c546228cc63199f168b/src/AuthSamples/samples/DynamicSchemes