Passwordless.AspNetCore 2.0.0

Prefix Reserved
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Passwordless.AspNetCore --version 2.0.0
                    
NuGet\Install-Package Passwordless.AspNetCore -Version 2.0.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="Passwordless.AspNetCore" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Passwordless.AspNetCore" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Passwordless.AspNetCore" />
                    
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 Passwordless.AspNetCore --version 2.0.0
                    
#r "nuget: Passwordless.AspNetCore, 2.0.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.
#addin nuget:?package=Passwordless.AspNetCore&version=2.0.0
                    
Install Passwordless.AspNetCore as a Cake Addin
#tool nuget:?package=Passwordless.AspNetCore&version=2.0.0
                    
Install Passwordless.AspNetCore as a Cake Tool

Passwordless ASP.NET Core Integration

Version Downloads

The official Bitwarden Passwordless.dev ASP.NET Identity integration. Automatically adds endpoints to verify passwordless signin and sign the user in using the existing ASP.NET Identity code.

Install

  • NuGet: dotnet add package Passwordless.AspNetCore

Usage

💡 See the full Getting started guide in the official documentation.

Using Minimal APIs

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddIdentity<MyUser, MyRole>()
      .AddEntityFrameworkStores<MyDbContext>()
      .AddPasswordless(builder.Configuration.GetRequiredSection("Passwordless"));

var app = builder.Build();

app.MapPasswordless();

app.Run();

Using Startup class

// In Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    services.AddIdentity<MyUser, MyRole>()
      .AddEntityFrameworkStores<MyDbContext>()
      .AddPasswordless(Configuration.GetRequiredSection("Passwordless"));

    services.AddControllers();
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
    app.UseRouting();

    app.UseAuthentication();
    app.UseAuthorization();

    app.UseEndpoints(endpoints =>
    {
        endpoints.MapPasswordless();
        endpoints.MapControllers();
    });
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 (1)

Showing the top 1 popular GitHub repositories that depend on Passwordless.AspNetCore:

Repository Stars
bitwarden/passwordless-server
Bitwarden Passwordless.dev infrastructure/backend (API, database, Docker, etc).
Version Downloads Last updated
2.1.0-beta.4 2,076 10/4/2024
2.1.0-beta.3 401 9/9/2024
2.1.0-beta.2 740 8/26/2024
2.1.0-beta.1 722 8/14/2024
2.0.0 538 8/13/2024
2.0.0-beta9 137 7/29/2024
2.0.0-beta8 3,056 4/11/2024
2.0.0-beta7 2,032 3/11/2024
2.0.0-beta6 275 2/16/2024
2.0.0-beta5 9,963 11/8/2023
2.0.0-beta4 126 10/27/2023
2.0.0-beta3 109 10/25/2023
2.0.0-beta2 141 10/4/2023
2.0.0-beta10 308 8/6/2024
2.0.0-beta1 1,286 9/29/2023
1.0.3 2,445 9/5/2023
1.0.2 165 9/4/2023
0.0.13 548 8/28/2023
0.0.12 182 8/8/2023
0.0.11 176 8/8/2023
0.0.0-ci-d5f30b6 103 5/21/2024