![]() |
VOOZH | about |
dotnet add package WebPack.Identity.CoreLib --version 0.12.1
NuGet\Install-Package WebPack.Identity.CoreLib -Version 0.12.1
<PackageReference Include="WebPack.Identity.CoreLib" Version="0.12.1" />
<PackageVersion Include="WebPack.Identity.CoreLib" Version="0.12.1" />Directory.Packages.props
<PackageReference Include="WebPack.Identity.CoreLib" />Project file
paket add WebPack.Identity.CoreLib --version 0.12.1
#r "nuget: WebPack.Identity.CoreLib, 0.12.1"
#:package WebPack.Identity.CoreLib@0.12.1
#addin nuget:?package=WebPack.Identity.CoreLib&version=0.12.1Install as a Cake Addin
#tool nuget:?package=WebPack.Identity.CoreLib&version=0.12.1Install as a Cake Tool
Identity Pack For ASP.NET Core
public class HogeBasicAuthenticationService : IBasicAuthenticationService {
//Use ORMIntegrator(ctor Injection...)
readonly SqlManager<HogeContext> _sqlManager;
public HogeBasicAuthenticationService(SqlManager<HogeContext> sqlManager) =>
_sqlManager = sqlManager;
public async ValueTask<(bool authenticateResult, Claim[] authenticatedUserClaims)> AuthenticateAsync(string username, string password) {
if (await _sqlManager.DbContext.MstHoges.FirstOrDefaultAsync(e => e.UserId == username && e.Password == password) is not MstPartner authenticatedUser) {
return (authenticateResult: false, authenticatedUserClaims: System.Array.Empty<Claim>());
}
return (
true,
new[] {
new Claim(ClaimTypes.NameIdentifier, authenticatedUser.PartnerId.ToString()),
new Claim(ClaimTypes.Name, authenticatedUser.UserId),
new Claim(ClaimTypes.Email, authenticatedUser.Email),
// Extend Claim Setting Point...
}
);
}
}
public void ConfigureServices(IServiceCollection services) {
//...
services.AddBasicAuthenticationService<HogeBasicAuthenticationService>();
}
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
// Always write UseAuthentication before UseAuthorization
app.UseAuthentication();
app.UseAuthorization();
}
| 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. |
Showing the top 2 NuGet packages that depend on WebPack.Identity.CoreLib:
| Package | Downloads |
|---|---|
|
Swagger.Extensions.DependencyInjection
For ASP.NET Core Swagger Extension; Include Default Builder; |
|
|
WebPack.Identity.Gcp.CoreLib
ASP.NET Core Identity Easy setting Package Case Gcp Way. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.12.1 | 45,111 | 6/20/2024 |
| 0.11.2 | 5,029 | 4/3/2024 |
| 0.11.1 | 2,339 | 3/26/2024 |
| 0.10.1 | 2,790 | 1/22/2024 |
| 0.9.4 | 14,101 | 9/13/2023 |
| 0.9.3 | 925 | 9/12/2023 |
| 0.9.2 | 1,922 | 8/5/2023 |
| 0.9.1 | 1,050 | 8/3/2023 |
| 0.8.1 | 1,821 | 7/20/2023 |
| 0.7.5 | 1,238 | 7/5/2023 |
| 0.7.4 | 5,845 | 5/11/2023 |
| 0.7.3 | 1,110 | 4/26/2023 |
| 0.6.1 | 1,768 | 3/13/2023 |
| 0.5.5 | 3,035 | 1/17/2023 |
| 0.5.4 | 1,720 | 1/11/2023 |
| 0.5.3 | 1,368 | 12/12/2022 |
Upgrade package.