Blazor的授权
原文英文,约600词,阅读约需3分钟。发表于: 。Disclaimer: based on my observation, not readings. Recently, I had to implement Firebase authentication for a Blazor WASM project. To my surprise, I discovered there's no ready-made authentication...
在Blazor WASM项目中实现Firebase认证时,由于没有现成的.NET库,我基于Firebase的JavaScript SDK构建了解决方案。通过重写AuthenticationStateProvider中的GetAuthenticationStateAsync方法来管理用户认证状态,并使用JS SDK进行Firebase认证后,将JWT存储在.NET Cookie中。