WALEED BENSUMAIDA
✅ How to Implement Blazor Web App Authentication and Authorization Using JWT with Auto Render mode
Hi everyone!
I'm working on a Blazor web app and I need a detailed tutorial on implementing authentication and authorization using JWT (JSON Web Tokens). Specifically, I'm looking for guidance on:
Setting up the authentication flow
Using auto render mode in Blazor
Securing API endpoints
Handling token storage and refresh
If anyone has resources, tutorials, or example projects that cover these topics, I would greatly appreciate it!
Thanks in advance!
5 replies
How to support offline CRUD operations using Blazor PWA
Hey everyone! I'm working on building a Blazor PWA that supports offline functionality and CRUD operations, and I could really use your help.
Specifically, I'm looking to leverage IndexedDB for offline data storage and syncing with the server when the internet is available again. The goal is to make the app installable on user devices and fully functional even when they don't have an internet connection.
I want to make sure I'm applying best practices and caching strategies to provide a seamless offline experience for users. If anyone has experience with this or can share any resources, demos, or articles that could help guide me, I'd be absolutely thrilled.
Some of the key things I'm looking to learn more about are:
- Implementing offline data storage and sync with IndexedDB in Blazor
- Caching strategies for Blazor PWAs to provide a great offline experience
- Best practices for handling network connectivity changes and conflict resolution
- Leveraging the Blazor ServiceWorkerInterop for offline functionality
If you have any insights or examples to share, I would greatly appreciate it. I'm really excited to build this PWA and make it work flawlessly both online and offline. Thanks in advance for your help!
4 replies
✅ Title: Issues with Authentication and Authorization using JWT with AutoRender Mode in Blazor NET8
Hello friends,
I am currently facing challenges with Authentication and Authorization using JWT with AutoRender Mode in Blazor NET8. Specifically, I'm encountering issues with the
<Authorized>
attribute in components, as it does not retrieve the user's state. Additionally, I would appreciate guidance on how to implement RevalidatingServerAuthenticationStateProvider and Persist State in a client project.
If any of you have experience working on a project involving JWT with AutoRender Mode, I would greatly appreciate any insights or sample projects that could help me overcome these obstacles.
Thank you in advance for your assistance!
Best regards4 replies