Lewee.Auth.Api 0.40.3

dotnet add package Lewee.Auth.Api --version 0.40.3
                    
NuGet\Install-Package Lewee.Auth.Api -Version 0.40.3
                    
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="Lewee.Auth.Api" Version="0.40.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lewee.Auth.Api" Version="0.40.3" />
                    
Directory.Packages.props
<PackageReference Include="Lewee.Auth.Api" />
                    
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 Lewee.Auth.Api --version 0.40.3
                    
#r "nuget: Lewee.Auth.Api, 0.40.3"
                    
#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 Lewee.Auth.Api@0.40.3
                    
#: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=Lewee.Auth.Api&version=0.40.3
                    
Install as a Cake Addin
#tool nuget:?package=Lewee.Auth.Api&version=0.40.3
                    
Install as a Cake Tool

Lewee.Auth.Api

FastEndpoints integration and HTTP contracts for Lewee authentication operations.

Features

  • Exposes user provisioning through a reusable FastEndpoints endpoint
  • Maps HTTP requests to Lewee.Auth.Application commands
  • Uses the standard Lewee command-result HTTP response mapping
  • Supports first-login provisioning before an application session is established

Dependencies

Configuration

Register the auth application layer and include this assembly when configuring FastEndpoints:

using FastEndpoints;
using Lewee.Auth.Api;
using Lewee.Auth.Application;

services
    .AddLeweeAuthApplication()
    .AddFastEndpoints(options =>
    {
        options.Assemblies = [typeof(CreateUserRequest).Assembly];
    });

Configure the normal Lewee MediatR, persistence, correlation, and FastEndpoints middleware in the hosting API.

Endpoints

Method Route Authentication Request
POST /users Anonymous CreateUserRequest
var request = new CreateUserRequest
{
    ExternalUserId = externalUserId,
};

The endpoint dispatches CreateUserCommand. Provisioning is idempotent and creates users without tenant memberships.

Main Types

Type Purpose
CreateUserRequest HTTP request containing the external user identifier
CreateUserEndpoint Handles anonymous first-login user provisioning
Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
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.40.3 49 11/22/2026