Lyo.Authentication.AspNetCore
1.0.1
dotnet add package Lyo.Authentication.AspNetCore --version 1.0.1
NuGet\Install-Package Lyo.Authentication.AspNetCore -Version 1.0.1
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="Lyo.Authentication.AspNetCore" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Authentication.AspNetCore" Version="1.0.1" />
<PackageReference Include="Lyo.Authentication.AspNetCore" />
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 Lyo.Authentication.AspNetCore --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Lyo.Authentication.AspNetCore, 1.0.1"
#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 Lyo.Authentication.AspNetCore@1.0.1
#: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=Lyo.Authentication.AspNetCore&version=1.0.1
#tool nuget:?package=Lyo.Authentication.AspNetCore&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Lyo.Authentication.AspNetCore
ASP.NET Core integration for Lyo.Authentication. Three schemes coexist behind a single dispatcher:
LyoApiToken— validates Format-B opaque tokens (lyo_pat_live_...) -LyoJwt— validates Lyo-signed Ed25519 JWTs (ey...) -LyoBearer(the default) — sniffs theAuthorization/X-Api-Keyheader and forwards to one of the above
app.UseAuthentication(); app.UseAuthorization(); app.MapLyoJwks(); ```
Per-endpoint scope-based authorization uses the `scope:<name>` policy convention. The `ScopeAuthorizationPolicyProvider` creates these policies on demand, so endpoints can simply do:
```csharp endpoints.MapGet("/people", ...).RequireAuthorization("scope:people.read"); ```
or, when working with `EndpointAuth` from `Lyo.Api`:
```csharp GetAuth = EndpointAuth.RequireAuthorization("scope:people.read") ```
## Dependencies
Generated from `ProjectReference` / `PackageReference` (same model as `docs/Lyo.ProjectGraph.html`).
- `Lyo.Api.Models` — (direct, lyo)
- `Lyo.Authentication` — (direct, lyo)
- `Lyo.Common` — (direct, lyo)
- `Lyo.Diagnostic` — (direct, lyo)
- `Lyo.Exceptions` — (direct, lyo)
- `Lyo.Authentication.Models` — (transitive, lyo)
- `Lyo.DateAndTime` — (transitive, lyo)
- `Lyo.Hashing` — (transitive, lyo)
- `Lyo.KeyStore` — (transitive, lyo)
- `Lyo.PackageMetadata` — (transitive, lyo)
- `Lyo.Query.Models` — (transitive, lyo)
- `BouncyCastle.Cryptography` `2.6.2` — (transitive, third-party)
- `Konscious.Security.Cryptography.Argon2` `1.3.1` — (transitive, third-party)
- `Microsoft.Bcl.AsyncInterfaces` `10.0.5` — (transitive, microsoft, netstandard2.0)
- `Microsoft.Extensions.Configuration.Binder` `10.0.5` — (transitive, microsoft)
- `Microsoft.Extensions.DependencyInjection.Abstractions` `10.0.5` — (transitive, microsoft, net10.0, netstandard2.0)
- `Microsoft.Extensions.Hosting.Abstractions` `10.0.5` — (transitive, microsoft)
- `Microsoft.Extensions.Logging.Abstractions` `10.0.5` — (transitive, microsoft)
- `Microsoft.Extensions.Options` `10.0.5` — (transitive, microsoft)
- `System.IO.Hashing` `10.0.5` — (transitive, microsoft, net10.0)
- `System.Memory` `4.6.3` — (transitive, microsoft, netstandard2.0)
- `System.Text.Json` `10.0.5` — (transitive, microsoft, netstandard2.0)
- `System.Threading.Tasks.Extensions` `4.6.3` — (transitive, microsoft)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Lyo.Api.Models (>= 1.0.1)
- Lyo.Authentication (>= 1.0.1)
- Lyo.Common (>= 1.0.1)
- Lyo.Diagnostic (>= 1.0.1)
- Lyo.Exceptions (>= 1.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Lyo.Authentication.AspNetCore:
| Package | Downloads |
|---|---|
|
Lyo.Config.Api
Central HTTP API exposing Lyo.Config PostgreSQL-backed IConfigStore for microservices (polling-friendly ETags). Embed via AddConfigApi / MapConfigApiEndpoints. |
GitHub repositories
This package is not used by any popular GitHub repositories.