![]() |
VOOZH | about |
dotnet add package Rystem.Api.Client.Authentication.BlazorWasm --version 10.0.8
NuGet\Install-Package Rystem.Api.Client.Authentication.BlazorWasm -Version 10.0.8
<PackageReference Include="Rystem.Api.Client.Authentication.BlazorWasm" Version="10.0.8" />
<PackageVersion Include="Rystem.Api.Client.Authentication.BlazorWasm" Version="10.0.8" />Directory.Packages.props
<PackageReference Include="Rystem.Api.Client.Authentication.BlazorWasm" />Project file
paket add Rystem.Api.Client.Authentication.BlazorWasm --version 10.0.8
#r "nuget: Rystem.Api.Client.Authentication.BlazorWasm, 10.0.8"
#:package Rystem.Api.Client.Authentication.BlazorWasm@10.0.8
#addin nuget:?package=Rystem.Api.Client.Authentication.BlazorWasm&version=10.0.8Install as a Cake Addin
#tool nuget:?package=Rystem.Api.Client.Authentication.BlazorWasm&version=10.0.8Install as a Cake Tool
Rystem.Api.Client.Authentication.BlazorWasm adds bearer-token request enhancers for generated Rystem.Api.Client proxies in Blazor WebAssembly applications.
Like the Blazor Server package, it is an enhancer layer, not a full auth/client registration package.
dotnet add package Rystem.Api.Client.Authentication.BlazorWasm
The package exposes:
| Method | Scope |
|---|---|
AddAuthenticationForAllEndpoints(settings) |
all generated clients |
AddAuthenticationForEndpoint<T>(settings) |
one generated client |
AuthorizationSettings currently exposes only:
ScopesThere are no social-auth variants in this package.
var scopes = new[] { builder.Configuration["AzureAd:Scopes"]! };
builder.Services.AddMsalAuthentication(options =>
{
builder.Configuration.Bind("AzureAd", options.ProviderOptions.Authentication);
options.ProviderOptions.DefaultAccessTokenScopes.Add(scopes[0]);
});
builder.Services.AddBusiness();
builder.Services.AddClientsForAllEndpointsApi(http =>
{
http.ConfigurationHttpClientForApi(client =>
{
client.BaseAddress = new Uri("https://api.myapp.io");
});
});
builder.Services.AddAuthenticationForAllEndpoints(settings =>
{
settings.Scopes = scopes;
});
The package registers a request enhancer (TokenManager / TokenManager<T>) that:
IAccessTokenProvider for an access tokenBearer <token> to the outgoing requestIf Scopes is configured, token acquisition uses those scopes. Otherwise it requests the default token.
You still need:
Rystem.Api.ClientAddClientsForAllEndpointsApi(...) or AddClientForEndpointApi<T>(...)The package exposes AddAuthenticationForEndpoint<T>(...), but the base token manager currently resolves AuthorizationSettings without using the named client key.
So per-endpoint auth settings are not as isolated as the API shape suggests.
When token acquisition fails, the current implementation can produce an empty token string rather than a cleaner null-or-challenge flow.
So treat this package as a lightweight enhancer, not as a replacement for the richer AuthorizationMessageHandler patterns in custom Blazor WASM code.
If you need the separate social-login helpers from this repo, they are not part of the WASM auth package.
src/Api/Client/Rystem.Api.Client.Authentication.BlazorWasm/DefaultInterceptor/ServiceCollectionExtensionsForAuthenticator.cssrc/Api/Client/Rystem.Api.Client.Authentication.BlazorWasm/Authorization/TokenManager.cssrc/Api/Test/Rystem.Api.Test.Domain/ServiceCollectionExtensions.csUse this package when you already have Blazor WebAssembly MSAL auth configured and you want generated Rystem.Api.Client calls to pick up bearer tokens automatically.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 net10.0 is compatible. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.8 | 5,501 | 5/13/2026 |
| 10.0.7 | 139 | 3/26/2026 |
| 10.0.6 | 433,508 | 3/3/2026 |
| 10.0.5 | 137 | 2/22/2026 |
| 10.0.4 | 138 | 2/9/2026 |
| 10.0.3 | 147,945 | 1/28/2026 |
| 10.0.1 | 209,115 | 11/12/2025 |
| 9.1.3 | 261 | 9/2/2025 |
| 9.1.2 | 764,495 | 5/29/2025 |
| 9.1.1 | 97,817 | 5/2/2025 |
| 9.0.32 | 186,706 | 4/15/2025 |
| 9.0.31 | 5,815 | 4/2/2025 |
| 9.0.30 | 88,871 | 3/26/2025 |
| 9.0.29 | 9,040 | 3/18/2025 |
| 9.0.28 | 266 | 3/17/2025 |
| 9.0.27 | 266 | 3/16/2025 |
| 9.0.26 | 270 | 3/13/2025 |
| 9.0.25 | 52,144 | 3/9/2025 |
| 9.0.20 | 19,607 | 3/6/2025 |
| 9.0.19 | 323 | 3/6/2025 |