AuthenticationWithClientSideBlazor | Companion code sample for my blog post | Frontend Framework library
kandi X-RAY | AuthenticationWithClientSideBlazor Summary
kandi X-RAY | AuthenticationWithClientSideBlazor Summary
Companion code sample for my blog post - Authentication with client-side Blazor using WebAPI and ASP.NET Core Identity
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AuthenticationWithClientSideBlazor
AuthenticationWithClientSideBlazor Key Features
AuthenticationWithClientSideBlazor Examples and Code Snippets
Community Discussions
Trending Discussions on AuthenticationWithClientSideBlazor
QUESTION
We are currently developing a Blazor
app which is secured using short lived (10 minute) Jwt with Refresh Tokens.
Currently we have the Jwt implemented and through the Blazor server side web api can login, generate the Jwt and generate the refresh token.
From the client side I have used the following link;
Authentication With client-side Blazor
and extended the ApiAuthenticationStateProvider.cs
as follows;
ANSWER
Answered 2019-Aug-24 at 16:05So often, we are thinking on Blazor as an MVC but it is not. It's more like a desktop app running inside browser. I use JWT and renewing tokens in this way: after login, I have an infinite loop that is pinging backend and keeping the session and renewing the tokens. Simplifying:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AuthenticationWithClientSideBlazor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page