Spiderly.Security
19.7.7
dotnet add package Spiderly.Security --version 19.7.7
NuGet\Install-Package Spiderly.Security -Version 19.7.7
<PackageReference Include="Spiderly.Security" Version="19.7.7" />
<PackageVersion Include="Spiderly.Security" Version="19.7.7" />
<PackageReference Include="Spiderly.Security" />
paket add Spiderly.Security --version 19.7.7
#r "nuget: Spiderly.Security, 19.7.7"
#:package Spiderly.Security@19.7.7
#addin nuget:?package=Spiderly.Security&version=19.7.7
#tool nuget:?package=Spiderly.Security&version=19.7.7
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.7)
- 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.7 | 100 | 4/28/2026 |
| 19.7.6 | 111 | 4/24/2026 |
| 19.7.5 | 110 | 4/20/2026 |
| 19.7.4 | 95 | 4/20/2026 |
| 19.7.3 | 118 | 4/16/2026 |
| 19.7.2 | 108 | 4/10/2026 |
| 19.7.1 | 112 | 4/5/2026 |
| 19.7.0 | 105 | 4/3/2026 |
| 19.6.7 | 123 | 3/30/2026 |
| 19.6.6 | 106 | 3/27/2026 |
| 19.6.5 | 110 | 3/26/2026 |
| 19.6.4 | 104 | 3/23/2026 |
| 19.6.3 | 116 | 3/20/2026 |
| 19.6.2 | 109 | 3/19/2026 |
| 19.6.1 | 107 | 3/17/2026 |
| 19.6.0 | 147 | 3/13/2026 |
| 19.5.4-preview.3 | 81 | 2/27/2026 |
| 19.5.4-preview.2 | 85 | 2/11/2026 |
| 19.5.4-preview.1 | 67 | 2/11/2026 |
| 19.5.4-preview.0 | 70 | 2/6/2026 |