-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[Blazor] Update AuthenticationStateProvider to use declarative persistent component state #62063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…FromPersistentComponentState Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
...bAssembly/WebAssembly.Authentication/src/Services/DeserializedAuthenticationStateProvider.cs
Outdated
Show resolved
Hide resolved
…sistent state Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
...bAssembly/WebAssembly.Authentication/src/Services/DeserializedAuthenticationStateProvider.cs
Outdated
Show resolved
Hide resolved
...bAssembly/WebAssembly.Authentication/src/Services/DeserializedAuthenticationStateProvider.cs
Show resolved
Hide resolved
…onent state properly Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
src/SignalR/clients/ts/signalr-protocol-msgpack/package.json.bak
Outdated
Show resolved
Hide resolved
...bAssembly/WebAssembly.Authentication/src/Services/DeserializedAuthenticationStateProvider.cs
Show resolved
Hide resolved
…component state Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
src/Components/WebAssembly/Server/src/AuthenticationStateSerializer.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/Server/src/AuthenticationStateSerializer.cs
Outdated
Show resolved
Hide resolved
…nent state Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
...embly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
…vider interface Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
src/Components/WebAssembly/Server/src/WebAssemblyRazorComponentsBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
…ttern Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
…ateProvider Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
src/Components/WebAssembly/Server/src/AuthenticationStateSerializer.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/Server/src/AuthenticationStateSerializer.cs
Outdated
Show resolved
Hide resolved
src/Components/WebAssembly/Server/src/WebAssemblyRazorComponentsBuilderExtensions.cs
Show resolved
Hide resolved
…ndant null check Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
…Provider Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
...embly/WebAssembly.Authentication/src/WebAssemblyAuthenticationServiceCollectionExtensions.cs
Outdated
Show resolved
Hide resolved
…ton in WASM Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
Same problem as #61992. The property with
or
|
…naming pattern Co-authored-by: ilonatommy <32700855+ilonatommy@users.noreply.github.com>
I've renamed the property from Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
This PR updates the
DeserializedAuthenticationStateProvider
to use the declarative persistent component state pattern with the[SupplyParameterFromPersistentComponentState]
attribute, matching the approach used for antiforgery token handling.Changes
[SupplyParameterFromPersistentComponentState]
attribute toDeserializedAuthenticationStateProvider
to receive authentication state data:Updated the constructor to use this property while maintaining backward compatibility with the existing
TryTakeFromJson
approach to ensure a smooth transitionMaintained the existing persistence key to ensure compatibility with the
AuthenticationStateSerializer
class which persists the data on the server sideBenefits
Fixes #60718.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.