Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer
9.0.3
dotnet add package Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer --version 9.0.3
NuGet\Install-Package Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer -Version 9.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer" Version="9.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer --version 9.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer, 9.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer as a Cake Addin #addin nuget:?package=Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer&version=9.0.3 // Install Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer as a Cake Tool #tool nuget:?package=Rystem.RepositoryFramework.Api.Client.Authentication.BlazorServer&version=9.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
What is Rystem?
Services extensions
HttpClient to use your API (example)
You can add a client for a specific url
builder.Services.AddRepository<User, string>(builder =>
{
builder
.WithApiClient()
.WithHttpClient("localhost:7058");
});
Default interceptor for Authentication with JWT
You may use the default interceptor to deal with the identity manager in .Net DI.
builder.Services.AddDefaultAuthorizationInterceptorForApiHttpClient();
This line of code inject an interceptor that works with ITokenAcquisition, injected by the framework during OpenId integration (for example AAD integration). Automatically it adds the token to each request.
You may use the default identity interceptor not on all repositories, you can specificy them with
builder.Services.AddRepository(builder => {
builder
.WithApiClient()
.WithHttpClient("localhost:7058")
.AddDefaultAuthorizationInterceptorForApiHttpClient<T, TKey>();
});
Remember to add
builder.Services.AddAuthentication(OpenIdConnectDefaults.AuthenticationScheme)
.AddMicrosoftIdentityWebApp(builder.Configuration.GetSection("AzureAdB2C or AzureAd"))
.EnableTokenAcquisitionToCallDownstreamApi(new string[] { "your_scope/access_as_user" })
.AddInMemoryTokenCaches();
builder.Services.AddServerSideBlazor()
.AddMicrosoftIdentityConsentHandler();
builder.Services.AddControllersWithViews()
.AddMicrosoftIdentityUI();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Identity.Abstractions (>= 7.2.0)
- Rystem.Authentication.Social.Blazor (>= 9.0.4)
- Rystem.RepositoryFramework.Api.Client (>= 9.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
9.0.3 | 0 | 12/22/2024 |
9.0.2 | 21 | 12/21/2024 |
9.0.1 | 537 | 12/21/2024 |
9.0.0 | 172,887 | 11/16/2024 |
9.0.0-rc.1 | 77 | 10/18/2024 |
6.2.0 | 219,025 | 10/10/2024 |
6.1.1 | 92 | 10/9/2024 |
6.1.0 | 47,878 | 9/29/2024 |
6.0.24 | 125 | 9/11/2024 |
6.0.23 | 98 | 7/18/2024 |
6.0.21 | 115 | 6/18/2024 |
6.0.20 | 113 | 6/16/2024 |
6.0.19 | 100 | 6/14/2024 |
6.0.18 | 105 | 6/14/2024 |
6.0.17 | 108 | 6/14/2024 |
6.0.16 | 97 | 6/10/2024 |
6.0.15 | 104 | 6/9/2024 |
6.0.14 | 110 | 5/24/2024 |
6.0.13 | 112 | 5/23/2024 |
6.0.12 | 103 | 5/23/2024 |
6.0.11 | 121 | 5/20/2024 |
6.0.9 | 121 | 5/20/2024 |
6.0.7 | 105 | 5/18/2024 |
6.0.6 | 109 | 5/13/2024 |
6.0.5 | 108 | 5/10/2024 |
6.0.4 | 123 | 4/3/2024 |
6.0.3 | 125 | 3/25/2024 |
6.0.2 | 127 | 3/11/2024 |
6.0.0 | 286 | 11/21/2023 |
6.0.0-rc.6 | 96 | 10/25/2023 |
6.0.0-rc.5 | 85 | 10/25/2023 |
6.0.0-rc.4 | 75 | 10/23/2023 |
6.0.0-rc.3 | 67 | 10/19/2023 |
6.0.0-rc.2 | 79 | 10/18/2023 |
6.0.0-rc.1 | 74 | 10/16/2023 |
5.0.20 | 191 | 9/25/2023 |
5.0.19 | 233 | 9/10/2023 |
5.0.18 | 201 | 9/6/2023 |
5.0.17 | 170 | 9/6/2023 |
5.0.16 | 175 | 9/5/2023 |
5.0.15 | 145 | 9/5/2023 |
5.0.14 | 171 | 9/5/2023 |
5.0.13 | 140 | 9/1/2023 |
5.0.12 | 174 | 8/31/2023 |
5.0.11 | 150 | 8/30/2023 |
5.0.10 | 178 | 8/29/2023 |
5.0.9 | 180 | 8/24/2023 |
5.0.8 | 174 | 8/24/2023 |
5.0.7 | 174 | 8/23/2023 |