A2v10.Identity.ApiKey
10.1.8348
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package A2v10.Identity.ApiKey --version 10.1.8348
NuGet\Install-Package A2v10.Identity.ApiKey -Version 10.1.8348
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="A2v10.Identity.ApiKey" Version="10.1.8348" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add A2v10.Identity.ApiKey --version 10.1.8348
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: A2v10.Identity.ApiKey, 10.1.8348"
#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 A2v10.Identity.ApiKey as a Cake Addin #addin nuget:?package=A2v10.Identity.ApiKey&version=10.1.8348 // Install A2v10.Identity.ApiKey as a Cake Tool #tool nuget:?package=A2v10.Identity.ApiKey&version=10.1.8348
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
About
A2v10.Identity.ApiKey allows the ApiKey authorization for the A2v10 platform applications.
How to use
The ApiKey may be plain text (KeyType.ApiKey) or contain encoded user claims (KeyType.EncodedClaims).
If you use KeyType.EncodedClaims, you must specify the encryption key and vector.
Use
ApiKeyUserHelper<T>.GenerateApiKey(User, Сonfiguration)
for generate encoded ApiKey.
// T - type of user identifier
.AddApiKeyAuthorization<T>(options => {
// options is read only
});
// configure
services.Configure<ApiKeyConfigurationOptions>(options =>
{
options.KeyType = KeyType.EncodedClaims; /* or KeyType.ApiKey */
/* for KeyType.EncodedClaims */
options.AesEncryptKey = "Aes_Encrypt_Key";
options.AesEncryptVector = "Aes_Encrypt_Vector";
options.SkipCheckUser = true;
/* or */
options.Configure<Int64>(KeyType.EncodedClaims, Configuration);
});
appsettings.json (for KeyType.EncodedClaims)
"AesEncrypt": {
"Key": "my_encrypt_key_1", /* 16 chars min */
"Vector": "my_encrypt_vector_1" /* 16 chars min */
}
Related Packages
Feedback
A2v10.Identity.ApiKey is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- A2v10.Identity.Core (>= 10.1.8348)
- Microsoft.OpenApi (>= 1.6.22)
-
net7.0
- A2v10.Identity.Core (>= 10.1.8348)
- Microsoft.OpenApi (>= 1.6.22)
-
net8.0
- A2v10.Identity.Core (>= 10.1.8348)
- Microsoft.OpenApi (>= 1.6.22)
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 |
---|---|---|
10.1.8500 | 33 | 11/19/2024 |
10.1.8363 | 109 | 11/3/2024 |
10.1.8360 | 112 | 10/25/2024 |
10.1.8358 | 87 | 10/25/2024 |
10.1.8351 | 137 | 10/9/2024 |
10.1.8348 | 87 | 10/5/2024 |
10.1.8347 | 89 | 10/1/2024 |
10.1.8346 | 98 | 9/29/2024 |
10.1.8341 | 123 | 9/6/2024 |
10.1.8340 | 87 | 9/2/2024 |
10.1.8339 | 136 | 8/24/2024 |
10.1.8338 | 129 | 8/23/2024 |
10.1.8332 | 99 | 8/7/2024 |
10.1.8328 | 66 | 7/31/2024 |
10.1.8327 | 78 | 7/25/2024 |
10.1.8325 | 74 | 7/23/2024 |
10.1.8322 | 116 | 7/17/2024 |
10.1.8319 | 94 | 7/10/2024 |
10.1.8315 | 101 | 7/5/2024 |
10.1.8306 | 135 | 6/20/2024 |
10.1.8305 | 102 | 6/18/2024 |
10.1.8303 | 93 | 6/13/2024 |
10.1.8301 | 105 | 6/8/2024 |
10.1.8296 | 119 | 5/28/2024 |
10.1.8295 | 94 | 5/28/2024 |
10.1.8286 | 108 | 5/14/2024 |
10.1.8282 | 116 | 5/8/2024 |
10.1.8280 | 154 | 4/26/2024 |
10.1.8276 | 154 | 4/15/2024 |
10.1.8275 | 138 | 4/7/2024 |
10.1.8271 | 142 | 3/30/2024 |
10.1.8268 | 156 | 3/18/2024 |
10.1.8267 | 113 | 3/18/2024 |
10.1.8266 | 107 | 3/16/2024 |
10.1.8261 | 149 | 3/8/2024 |
10.1.8259 | 140 | 2/28/2024 |
10.1.8255 | 112 | 2/25/2024 |
10.1.8251 | 112 | 2/23/2024 |
10.1.8235 | 136 | 2/3/2024 |
10.1.8233 | 127 | 1/30/2024 |
10.1.8226 | 140 | 1/18/2024 |
10.1.8222 | 126 | 1/11/2024 |
10.1.8220 | 122 | 1/10/2024 |
10.1.8214 | 142 | 1/2/2024 |
10.1.8213 | 121 | 12/31/2023 |
10.1.8198 | 126 | 12/21/2023 |
10.1.8188 | 154 | 12/9/2023 |
10.1.8186 | 155 | 11/29/2023 |
10.1.8184 | 127 | 11/24/2023 |
10.1.8183 | 139 | 11/23/2023 |
10.1.8180 | 134 | 11/18/2023 |
10.1.8171 | 151 | 11/9/2023 |
10.1.8168 | 161 | 11/6/2023 |
10.1.8159 | 140 | 9/27/2023 |
10.1.8152 | 175 | 9/11/2023 |
10.1.8150 | 164 | 9/3/2023 |
10.1.8147 | 190 | 9/2/2023 |
10.1.8143 | 224 | 8/22/2023 |
10.1.8134 | 204 | 8/5/2023 |
10.1.8126 | 201 | 7/25/2023 |
10.1.8114 | 224 | 7/7/2023 |
10.1.8109 | 226 | 6/12/2023 |
10.1.8097 | 222 | 4/21/2023 |
10.1.8096 | 215 | 4/10/2023 |
10.1.8095 | 230 | 4/9/2023 |
10.1.8094 | 202 | 4/9/2023 |
10.1.8093 | 258 | 3/22/2023 |
10.1.8092 | 247 | 3/12/2023 |
10.1.8091 | 219 | 3/7/2023 |
10.1.8090 | 263 | 3/7/2023 |
10.1.8089 | 254 | 3/2/2023 |
10.1.8088 | 287 | 2/10/2023 |
10.1.8087 | 296 | 1/31/2023 |
10.1.8086 | 341 | 1/29/2023 |
10.1.8085 | 343 | 1/22/2023 |
10.1.8084 | 332 | 1/20/2023 |
10.1.8083 | 312 | 1/12/2023 |
10.1.8078 | 333 | 12/8/2022 |
10.1.8076 | 461 | 10/21/2022 |
10.1.8075 | 481 | 10/19/2022 |