Spiderly.Security
19.1.0
dotnet add package Spiderly.Security --version 19.1.0
NuGet\Install-Package Spiderly.Security -Version 19.1.0
<PackageReference Include="Spiderly.Security" Version="19.1.0" />
<PackageVersion Include="Spiderly.Security" Version="19.1.0" />
<PackageReference Include="Spiderly.Security" />
paket add Spiderly.Security --version 19.1.0
#r "nuget: Spiderly.Security, 19.1.0"
#addin nuget:?package=Spiderly.Security&version=19.1.0
#tool nuget:?package=Spiderly.Security&version=19.1.0
Spiderly.Security
Spiderly.Security package provides authentication and authorization features using JWT tokens.
UI
When used in combination with our Angular library, you can achieve a UI like this: <div> <img src="https://github.com/filiptrivan/spiderly/blob/main/spiderly-login-demo.png" alt="Spiderly Login Demo UI"/> </div>
Customization
Controller
If you want to override some of the Security library controller's behavior, you can do so in your controller (e.g., SecurityController
), which extends our SecurityBaseController
, like this:
[HttpPost]
public override async Task<AuthResultDTO> Login(VerificationTokenRequestDTO request)
{
// Your custom code...
return _securityBusinessService.Login(request);
}
Authorization
If you want to override some of the Security library authorization's behavior, you can do so in your authorization business service (e.g. AuthorizationBusinessService
), which extends our AuthorizationBusinessServiceGenerated
, like this:
public override async Task AuthorizeUserExtendedReadAndThrow(long? userExtendedId)
{
await _context.WithTransactionAsync(async () =>
{
bool hasAdminReadPermission = await IsAuthorizedAsync<UserExtended>(BusinessPermissionCodes.ReadUserExtended);
bool isCurrentUser = _authenticationService.GetCurrentUserId() == userExtendedId;
if (isCurrentUser == false && hasAdminReadPermission == false)
throw new UnauthorizedException();
});
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
-
net9.0
- BCrypt.Net-Next (>= 4.0.3)
- Google.Apis.Auth (>= 1.68.0)
- LinqKit.Core (>= 1.2.5)
- Mapster (>= 7.4.0)
- Microsoft.EntityFrameworkCore.SqlServer (>= 9.0.1)
- Microsoft.Win32.Primitives (>= 4.3.0)
- Riok.Mapperly (>= 3.5.1)
- Spiderly.Shared (>= 19.1.0)
- System.Diagnostics.Debug (>= 4.3.0)
- System.Diagnostics.Tracing (>= 4.3.0)
- System.IdentityModel.Tokens.Jwt (>= 7.3.1)
- System.IO.FileSystem (>= 4.3.0)
- System.IO.FileSystem.Primitives (>= 4.3.0)
- System.Net.Primitives (>= 4.3.0)
- System.Runtime.Extensions (>= 4.3.0)
- System.Runtime.Handles (>= 4.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Spiderly.Security:
Package | Downloads |
---|---|
Spiderly.Infrastructure
Spiderly.Infrastructure is built on EF Core and offers features such as optimistic concurrency control, customizable table and column naming, and extensions for simplified database configuration. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
19.1.0 | 130 | 6/23/2025 |
19.1.0-preview.6 | 110 | 6/23/2025 |
19.1.0-preview.5 | 102 | 6/23/2025 |
19.1.0-preview.4 | 105 | 6/23/2025 |
19.1.0-preview.3 | 104 | 6/23/2025 |
19.1.0-preview.2 | 109 | 6/23/2025 |
19.1.0-preview.1 | 111 | 6/23/2025 |
19.1.0-preview.0 | 106 | 6/22/2025 |
19.0.9 | 128 | 6/14/2025 |
19.0.8 | 126 | 6/14/2025 |
19.0.7 | 127 | 6/14/2025 |
19.0.6 | 159 | 6/14/2025 |
19.0.5 | 159 | 6/14/2025 |
19.0.4 | 164 | 6/14/2025 |
19.0.3 | 149 | 6/6/2025 |
19.0.2 | 90 | 5/30/2025 |
19.0.1 | 91 | 5/30/2025 |
19.0.0 | 103 | 5/23/2025 |
1.0.18 | 151 | 5/4/2025 |
1.0.17 | 150 | 4/29/2025 |
1.0.16 | 157 | 4/28/2025 |
1.0.15 | 159 | 4/28/2025 |
1.0.14 | 148 | 4/28/2025 |
1.0.13 | 106 | 4/12/2025 |
1.0.12 | 91 | 4/11/2025 |