Skip to main content

ASP.NET Core

An ASP.NET Core app with cookie sign-in, bearer tokens for its API, and permission attributes.

StarterPlanned
This example is planned. Not built yet. This page is the specification for the example.
Works with
C# / .NETASP.NET Core

What you get​

  • AddLumoAuth() and AddLumoAuthWebAppAuthentication() in Program.cs.
  • A minimal API endpoint with .RequirePermission(...).
  • A health check.

Create it​

dotnet new web -n MyApp
cd MyApp
dotnet add package LumoAuth.AspNetCore

Settings​

VariableValue
LumoAuth:BaseUrlhttps://app.lumoauth.dev
LumoAuth:OrgIdYour organization.
LumoAuth:Login:ClientIdThe client ID of a confidential application.
LumoAuth:Login:ClientSecretIts secret.

Next steps​