RestEase.Authentication
0.0.3
dotnet add package RestEase.Authentication --version 0.0.3
NuGet\Install-Package RestEase.Authentication -Version 0.0.3
<PackageReference Include="RestEase.Authentication" Version="0.0.3" />
<PackageVersion Include="RestEase.Authentication" Version="0.0.3" />
<PackageReference Include="RestEase.Authentication" />
paket add RestEase.Authentication --version 0.0.3
#r "nuget: RestEase.Authentication, 0.0.3"
#:package RestEase.Authentication@0.0.3
#addin nuget:?package=RestEase.Authentication&version=0.0.3
#tool nuget:?package=RestEase.Authentication&version=0.0.3
RestEase.Authentication
An extension to RestEase which supports Bearer, Basic and ApiKey authentication.
Usage
Example appsettings.json for Bearer
-Authentication
{
"DocumentApiClientOptions": {
"AuthenticationType": "Bearer",
"Value": "0418ee68-40b5-44a1-b092-aa26b888a7ca",
"BaseAddress": "https://localhost:44319"
}
}
Example appsettings.json for Basic
-Authentication
{
"DocumentApiClientOptions": {
"AuthenticationType": "Basic",
"UserName": "u",
"Password": "p",
"BaseAddress": "https://localhost:44319"
}
}
Example appsettings.json for Header
-Authentication
{
"DocumentApiClientOptions": {
"AuthenticationType": "Header",
"HeaderName": "X-API-KEY",
"Value": "0418ee68-40b5-44a1-b092-aa26b888a7ca",
"BaseAddress": "https://localhost:44319"
}
}
Example C# register DI
var section = configuration.GetSection("DocumentApiClientOptions");
services.UseWithAuthenticatedRestEaseClient<IDocumentApi>(section);
🌐 Links
- See also: RestEase.Authentication.Azure
Sponsors
Entity Framework Extensions and Dapper Plus are major sponsors and proud to contribute to the development of RestEase.Authentication.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.16)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RestEase.HttpClientFactory (>= 1.6.4)
- Stef.Validation.Options (>= 0.1.1)
-
.NETStandard 2.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.16)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RestEase.HttpClientFactory (>= 1.6.4)
- Stef.Validation.Options (>= 0.1.1)
-
.NETStandard 2.1
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.16)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RestEase.HttpClientFactory (>= 1.6.4)
- Stef.Validation.Options (>= 0.1.1)
-
net6.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.16)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RestEase.HttpClientFactory (>= 1.6.4)
- Stef.Validation.Options (>= 0.1.1)
-
net8.0
- Microsoft.Extensions.Configuration.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Http.Polly (>= 8.0.16)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- RestEase.HttpClientFactory (>= 1.6.4)
- Stef.Validation.Options (>= 0.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RestEase.Authentication:
Package | Downloads |
---|---|
n8n.SDK
This unofficial (RestEase based) client enables working with the n8n REST Interface (https://docs.n8n.io/api/api-reference/) |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
0.0.3 | 71 | 7/5/2025 |
0.0.2 | 395 | 6/13/2025 |
0.0.1 | 119 | 6/7/2025 |
0.0.1-preview-02 | 104 | 6/7/2025 |
0.0.1-preview-01 | 100 | 6/6/2025 |
# 0.0.3 (05 July 2025)
- #3 Rename AuthenticateHttpRequestMessage to AuthenticateHttpRequestMessageAsync [enhancement]
The full release notes can be found here: https://github.com/StefH/RestEase.Authentication/blob/main/ReleaseNotes.md