Knowit.NemLogin.Web
0.1.0
dotnet add package Knowit.NemLogin.Web --version 0.1.0
NuGet\Install-Package Knowit.NemLogin.Web -Version 0.1.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="Knowit.NemLogin.Web" Version="0.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Knowit.NemLogin.Web" Version="0.1.0" />
<PackageReference Include="Knowit.NemLogin.Web" />
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 Knowit.NemLogin.Web --version 0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Knowit.NemLogin.Web, 0.1.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.
#:package Knowit.NemLogin.Web@0.1.0
#: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=Knowit.NemLogin.Web&version=0.1.0
#tool nuget:?package=Knowit.NemLogin.Web&version=0.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Knowit.NemLogin.Web
ASP.NET Core integration for Knowit.NemLogin — authentication handler, endpoint mappings, claims transformation. Targets NemLog-in 3 (OIOSAML 3 and 4).
Package family
| Package | Role |
|---|---|
| Knowit.NemLogin | Core SAML primitives, framework-agnostic (pulled in transitively) |
| Knowit.NemLogin.Web | ASP.NET Core authentication handler + endpoint mappings. (you are here) |
| Knowit.NemLogin.Umbraco | Umbraco Members integration — auto-provisioning, group mapping, Members-scheme sign-in |
| Knowit.NemLogin.AzureKeyVault | ICertificateProvider backed by Azure Key Vault — keep SP signing/encryption certs out of source control |
What's in this package
NemLoginAuthenticationHandler— ASP.NET CoreRemoteAuthenticationHandlerfor the NemLog-in scheme. Plug-and-play with[Authorize],AuthorizationPolicy, cookie sign-in scheme.MapNemLoginEndpoints— maps/nemlogin/login,/nemlogin/callback,/nemlogin/logout,/nemlogin/slo,/nemlogin/metadata.xmlto the handler / service surface.NemLoginWebOptions— handler config (paths, correlation cookie, state format, events).SameSite=None+Secure+__Secure-prefix on the correlation cookie by default, so the cross-site POST callback from NemLog-in works without configuration.NemLoginRemoteAuthenticationEventsextendsRemoteAuthenticationEventswithOnSignedIn— fires after the ticket is built and carries the typedNemLoginAttributesplusHttpContextfor scoped DI. The right hook for "after sign-in, in request scope" work.
Quick start
// Core options.
builder.Services.Configure<NemLoginOptions>(o =>
{
builder.Configuration.GetSection("NemLogin").Bind(o);
o.SigningCertificates.Add(CertificateReference.FromFile("sp.pfx", "<password>"));
});
// Auth pipeline.
builder.Services
.AddAuthentication(o =>
{
o.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
o.DefaultChallengeScheme = NemLoginDefaults.AuthenticationScheme;
})
.AddCookie()
.AddNemLogin(o =>
{
o.Events.OnSignedIn = ctx =>
{
// ctx.HttpContext, ctx.Principal, ctx.Attributes (typed),
// ctx.AssertionId, ctx.SessionIndex, ctx.AssertionNotOnOrAfter
return Task.CompletedTask;
};
});
app.MapNemLoginEndpoints();
Repository
github.com/mustap/Knowit-NemLogin — getting-started, hooks cookbook, production checklist, operational runbook.
License
MIT — see LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 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
- ITfoxtec.Identity.Saml2 (>= 4.18.0)
- Knowit.NemLogin (>= 0.1.0)
-
net8.0
- ITfoxtec.Identity.Saml2 (>= 4.18.0)
- Knowit.NemLogin (>= 0.1.0)
- Microsoft.Extensions.DependencyInjection (>= 10.0.7)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 10.0.7)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- Microsoft.Extensions.Options.DataAnnotations (>= 10.0.7)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Knowit.NemLogin.Web:
| Package | Downloads |
|---|---|
|
Knowit.NemLogin.Umbraco
Umbraco Members integration for Knowit.NemLogin — auto-provisioning, claim-to-property mapping, member group resolution. Targets Umbraco 13 LTS on net8.0 and Umbraco 17 on net10.0. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0 | 103 | 5/13/2026 |