Spiderly.Security
19.7.6
dotnet add package Spiderly.Security --version 19.7.6
NuGet\Install-Package Spiderly.Security -Version 19.7.6
<PackageReference Include="Spiderly.Security" Version="19.7.6" />
<PackageVersion Include="Spiderly.Security" Version="19.7.6" />
<PackageReference Include="Spiderly.Security" />
paket add Spiderly.Security --version 19.7.6
#r "nuget: Spiderly.Security, 19.7.6"
#:package Spiderly.Security@19.7.6
#addin nuget:?package=Spiderly.Security&version=19.7.6
#tool nuget:?package=Spiderly.Security&version=19.7.6
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 _securityService.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. AuthorizationService), which extends our AuthorizationServiceGenerated, like this:
public override async Task AuthorizeUserExtendedReadAndThrow(long? userExtendedId)
{
await _context.WithTransactionAsync(async () =>
{
bool hasAdminReadPermission = await IsAuthorizedAsync<UserExtended>(PermissionCodes.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.Extensions.Caching.StackExchangeRedis (>= 10.0.1)
- Riok.Mapperly (>= 3.5.1)
- Spiderly.Shared (>= 19.7.6)
- System.IdentityModel.Tokens.Jwt (>= 8.7.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.7.6 | 0 | 4/24/2026 |
| 19.7.5 | 101 | 4/20/2026 |
| 19.7.4 | 90 | 4/20/2026 |
| 19.7.3 | 114 | 4/16/2026 |
| 19.7.2 | 100 | 4/10/2026 |
| 19.7.1 | 109 | 4/5/2026 |
| 19.7.0 | 101 | 4/3/2026 |
| 19.6.7 | 115 | 3/30/2026 |
| 19.6.6 | 103 | 3/27/2026 |
| 19.6.5 | 105 | 3/26/2026 |
| 19.6.4 | 102 | 3/23/2026 |
| 19.6.3 | 112 | 3/20/2026 |
| 19.6.2 | 105 | 3/19/2026 |
| 19.6.1 | 104 | 3/17/2026 |
| 19.6.0 | 144 | 3/13/2026 |
| 19.5.4-preview.3 | 77 | 2/27/2026 |
| 19.5.4-preview.2 | 83 | 2/11/2026 |
| 19.5.4-preview.1 | 64 | 2/11/2026 |
| 19.5.4-preview.0 | 69 | 2/6/2026 |
| 19.5.3 | 140 | 1/24/2026 |