Register Auth Providers at Runtime #62305
-
Hi all, Currently in Blazor, authentication providers are registered with the web application builder and then consumed when the host is running. Is there a mechanism which would allow these providers to be added at runtime, such as through a view in an admin control panel? I'd like to empower my admins with configuring OAuth/SAML authentication from within the app and have it work without requiring a restart. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @TheBrambleShark, |
Beta Was this translation helpful? Give feedback.
Hello @TheBrambleShark,
in Blazor, authentication providers must be registered at startup. There’s no built-in way to add OAuth/SAML providers dynamically at runtime without restarting the app. To achieve runtime configurability, you can implement a custom authentication handler that reads provider settings from a database on each request, or delegate auth to an external identity provider that supports dynamic configuration.