You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// This is a server-side AuthenticationStateProvider that uses PersistentComponentState to flow the // authentication state to the client which is then fixed for the lifetime of the WebAssembly application.
and PersistentAuthenticationStateProvider:
// This is a client-side AuthenticationStateProvider that determines the user's authentication state by // looking for data persisted in the page when it was rendered on the server. This authentication state will // be fixed for the lifetime of the WebAssembly application. So, if the user needs to log in or out, a full // page reload is required.
Context: The application is running in InteractiveWebAssembly render mode.
What does "fixed" mean in this context? If the authentication state changes (like the user session is killed in the identity provider, or the access token times out) does that state get streamed to the client from the server in realtime? Or does "fixed" mean it is rendered the one time, on app start and literally never changes for any reason while the user is interacting with the application?
If it is not kept up to date, then what is the best, simplest way to do this? I really need to have that state fed from the server instantly and for the app to stay in sync. Any help would be appreciated!!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
From PersistingAuthenticationStateProvider:
// This is a server-side AuthenticationStateProvider that uses PersistentComponentState to flow the // authentication state to the client which is then fixed for the lifetime of the WebAssembly application.
and PersistentAuthenticationStateProvider:
// This is a client-side AuthenticationStateProvider that determines the user's authentication state by // looking for data persisted in the page when it was rendered on the server. This authentication state will // be fixed for the lifetime of the WebAssembly application. So, if the user needs to log in or out, a full // page reload is required.
Context: The application is running in InteractiveWebAssembly render mode.
What does "fixed" mean in this context? If the authentication state changes (like the user session is killed in the identity provider, or the access token times out) does that state get streamed to the client from the server in realtime? Or does "fixed" mean it is rendered the one time, on app start and literally never changes for any reason while the user is interacting with the application?
If it is not kept up to date, then what is the best, simplest way to do this? I really need to have that state fed from the server instantly and for the app to stay in sync. Any help would be appreciated!!
Beta Was this translation helpful? Give feedback.
All reactions