![]() |
VOOZH | about |
dotnet add package DS.Foundation.Authentication.AspNetCore --version 8.3.2
NuGet\Install-Package DS.Foundation.Authentication.AspNetCore -Version 8.3.2
<PackageReference Include="DS.Foundation.Authentication.AspNetCore" Version="8.3.2" />
<PackageVersion Include="DS.Foundation.Authentication.AspNetCore" Version="8.3.2" />Directory.Packages.props
<PackageReference Include="DS.Foundation.Authentication.AspNetCore" />Project file
paket add DS.Foundation.Authentication.AspNetCore --version 8.3.2
#r "nuget: DS.Foundation.Authentication.AspNetCore, 8.3.2"
#:package DS.Foundation.Authentication.AspNetCore@8.3.2
#addin nuget:?package=DS.Foundation.Authentication.AspNetCore&version=8.3.2Install as a Cake Addin
#tool nuget:?package=DS.Foundation.Authentication.AspNetCore&version=8.3.2Install as a Cake Tool
Integración con ASP.NET Core 8 para autenticación DS.
net8.0 o superior.System:Authentication:Jwt en configuración (User Secrets, Key Vault, etc.).builder.Services.AddJwtAuthentication(builder.Configuration); // emisión/validación fuera del pipeline
builder.Services.AddJwtBearerAuthentication(builder.Configuration);
builder.Services.AddApiKeyAuthentication();
builder.Services.AddJwtBearerAuthorization(builder.Configuration);
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers().RequireAuthorization();
UseJwtBearerAuthorization solo invoca UseAuthorization() por compatibilidad. El orden correcto es UseAuthentication() antes de UseAuthorization().
AddJwtBearerAuthentication — handler JwtBearer con validación criptográfica completaAddApiKeyAuthentication, ApiKeyAttribute, ApiKeyAuthorizationFilterAddJwtBearerAuthorization / UseJwtBearerAuthorizationUserToken desde HttpContext.User (claims validados)JwtBearerAuthenticationMiddleware (parseo sin validación).SecretKey y demás opciones JWT deben configurarse en System:Authentication:Jwt.Las extensiones de pipeline ASP.NET se movieron desde DS.Foundation.Authentication a este paquete.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. 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.