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.
What you get
AddLumoAuth()andAddLumoAuthWebAppAuthentication()inProgram.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
| Variable | Value |
|---|---|
LumoAuth:BaseUrl | https://app.lumoauth.dev |
LumoAuth:OrgId | Your organization. |
LumoAuth:Login:ClientId | The client ID of a confidential application. |
LumoAuth:Login:ClientSecret | Its secret. |
Next steps
- Protect your API: Protect routes in each framework.