Blazor and JWT Refresh Tokens
Вставка
- Опубліковано 14 вер 2023
- We've seen how refresh tokens work on the server, but how do we send them from the browser?
Source code available at: github.com/JasperKent/Blazor-...
Server code available at: github.com/JasperKent/WebApi-...
Topics include:
- Storing the refresh token
- Revoking the refresh token on logout
- Refreshing the JSON Web Token with the refresh token
- Resending the request with a new JWT - Наука та технологія
Anything more you want on authentication? Let me know in the comments.
Source code available at: github.com/JasperKent/Blazor-Wasm-Authentication
Server code available at: github.com/JasperKent/WebApi-Authentication
Remember to subscribe at ua-cam.com/channels/qWQzlUDdllnLmtgfSgYTCA.html
And if you liked the video, click the 👍.
These tutorials deserve 10 times more views than they currently have. Always clear and concise with no waffle. Many thanks, Jasper!
Hi! This tutorial is fantastic!
The explanation is so clear and thorough.
It's great to finally see someone explain the front-end circuit with the refresh token.
Thank you so much!!👏🎉👍🤩
greetings from Argentina!
Thank youuuu
very good. Thanks.
Best Tutorial !
Thank you for a Very nice tutorial, hope you will also make video of Blazor autorender mode authentication in .net 8 sir. hats off and have a blessed day :-)
do we get to OAuth2 as well? that subject is pretty complicated i would like to see your point of view MR Kent
I'll be doing a video on that soon.
What’s next on the queue? I wish u go over the implementation of a project using Kafka, redis and elastic service
I'll put them on the list.
@@CodingTutorialsAreGo Blazor 8 :)
@4:44 You use _factory.CreateClient yet the controller's /refresh is not protected because the factory client is not authenticated yet until the refresh is completed. Also during the refresh, @10:53, other simultaneous _factory calls don't get any data because _refreshing is true. How do I make those other simultaneous calls pending until the refresh is complete?
FYI, the pending seems to be solved by using SemaphoreSlim when _refreshing logic is true.
how can i update the password or remove the account (registration)? please make a tutorial about it
I'll put it on the list.
can you please make a tutorial of aspNet web api + Blazor webassembly (not a BlazorApp or Blazor server templates) Identity auth tutotial?