Spiderly.Security 19.1.0-preview.2

This is a prerelease version of Spiderly.Security.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Spiderly.Security --version 19.1.0-preview.2
                    
NuGet\Install-Package Spiderly.Security -Version 19.1.0-preview.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spiderly.Security" Version="19.1.0-preview.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spiderly.Security" Version="19.1.0-preview.2" />
                    
Directory.Packages.props
<PackageReference Include="Spiderly.Security" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spiderly.Security --version 19.1.0-preview.2
                    
#r "nuget: Spiderly.Security, 19.1.0-preview.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Spiderly.Security&version=19.1.0-preview.2&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Spiderly.Security&version=19.1.0-preview.2&prerelease
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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 107 6/23/2025
19.1.0-preview.3 105 6/23/2025
19.1.0-preview.2 110 6/23/2025
19.1.0-preview.1 112 6/23/2025
19.1.0-preview.0 107 6/22/2025
19.0.9 129 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 149 4/28/2025
1.0.13 106 4/12/2025
1.0.12 91 4/11/2025