C#C
C#12mo ago
Kaybi

Implementing OpenIddict in Blazor Hybrid

Hello there 👋
I'm developping an app and I am looking for some advices!

The solution is currently architectured like this:
  • ASP.NET Core app
  • Blazor webapp (from the NET9 template with WASM and SSR prerendering)
  • Shared Razor Class Library
  • MAUI
What I would like to achieve:
  • Be free and open-source
  • Provide a secured local authentication
  • Provide a device code flow authentication
  • Allowing users to potentially authenticate from an external OIDC provider (Authentik, GitHub, etc)
  • When authenticating from an external OIDC provider, create a local user and be authenticated as local
  • Allowing a user to merge a local user and a user created from an external OIDC provider
  • (later) Have some kind of federation (allow users from one instance1 to access resources from instance2 without having to authenticate as well to instance2)
Questions I have:
  • Is OpenIddict the go-to for what I want to achieve ?
  • Is a BFF (would be my SSR project I suppose) required in my case for WASM and MAUI ?
  • Where should the login page be located (Blazor WASM, Blazor SSR, ASP.NET) ?
  • Is pre-rendering too hard/not worth to implement (should I skip it and go WASM standalone) ?
Thanks a lot!! 🙏
Was this page helpful?