Blazor 8 – Render mode InteractiveWebAssembly keep JWT token update beetwen server and client
I have to build a Blazor 8 solution with Rendermode InteractiveWebAssembly
(probability without Pre-Render
).
Any page are under authorization and the login process is performed by an external service(a web api controller) that giving username and password return a JWT access and a JWT refresh tokens. The refresh token can be used once to obtains another couple of tokens. With this tokens, I have to authenticate the user for the UI and authenticate calls to an expternal webApi. The calls to external webapi service may be performed from the serverpages(no interactive) and from the webassembly interactive pages.
For the UI authentication I want to use AddIdentityCookies
of Microsoft.AspNetCore.Identity
, I not want to rewrite this part, But I will not use Microsoft.AspNetCore.Identity.EntityFrameworkCore
, because manage the users is the role of the external authenticator service.