Solidus.Middleware.Authentication 0.1.0

dotnet add package Solidus.Middleware.Authentication --version 0.1.0
                    
NuGet\Install-Package Solidus.Middleware.Authentication -Version 0.1.0
                    
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="Solidus.Middleware.Authentication" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Solidus.Middleware.Authentication" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Solidus.Middleware.Authentication" />
                    
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 Solidus.Middleware.Authentication --version 0.1.0
                    
#r "nuget: Solidus.Middleware.Authentication, 0.1.0"
                    
#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.
#:package Solidus.Middleware.Authentication@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Solidus.Middleware.Authentication&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Solidus.Middleware.Authentication&version=0.1.0
                    
Install as a Cake Tool

Solidus.Middleware.Authentication

Build and Test NuGet Version

The middleware that handles authentication scenarios.

NuGet Package

dotnet add package Solidus.Middleware.Authentication

Provided API

  • Account Sign Up : POST /account/sign-up

    Request body:

    {
        "name": "string",
        "password": "string",
        "rememberMe": "boolean",
        "metadata": {
            "key": "value",
            ...
        }
    }
    
  • Account Sign In : POST /account/sign-up

    Request body:

    {
        "name": "string",
        "password": "string",
        "rememberMe": "boolean"
    }
    
  • Session Sign Out : POST /sign-out

  • Session Status : GET /status

    Response body:

    {
        "claims": {
            "type": "value",
            ...
        }
    }
    

Service registrations

Namespace: Solidus.Middleware.Authentication

AuthenticationBuilder.AddSolidus() - Registers Solidus authentication

IMvcBuilder.AddSolidusAuthenticationControllers - Registers authentication API controllers

Endpoint registrations

Namespace: Solidus.Middleware.Authentication

IEndpointRouteBuilder.MapSolidusAuthenticationStatusAction - Maps /status route that provides current session information

IEndpointRouteBuilder.MapSolidusAuthenticationSignOutAction - Maps /sign-out route that signs out of authenticated session

Namespace: Solidus.Middleware.Authentication.Account

IEndpointRouteBuilder.MapSolidusAccountSignInAction - Maps /account/sign-in route that is responsible of logging in to account

IEndpointRouteBuilder.MapSolidusAccountSignUpAction - Maps /account/sign-up route that is responsible of creating a new account

Authentication Abstractions

Namespace: Solidus.Middleware.Authentication

IAuthenticationService - Authentication session management

Namespace: Solidus.Middleware.Authentication.Account

IAccountClaimsFactory - Authenticated account claims factory

IAccountPasswordHasher - Password hashing and validation

IAccountProvider - An account data provider

IAccountService - An account management

IAccountStorage - An account storage

Example usage

See demo instructions here

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 575 2/27/2024