Egov.Integrations.MPass.Saml 10.0.2

Prefix Reserved
dotnet add package Egov.Integrations.MPass.Saml --version 10.0.2
                    
NuGet\Install-Package Egov.Integrations.MPass.Saml -Version 10.0.2
                    
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="Egov.Integrations.MPass.Saml" Version="10.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Egov.Integrations.MPass.Saml" Version="10.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Egov.Integrations.MPass.Saml" />
                    
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 Egov.Integrations.MPass.Saml --version 10.0.2
                    
#r "nuget: Egov.Integrations.MPass.Saml, 10.0.2"
                    
#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 Egov.Integrations.MPass.Saml@10.0.2
                    
#: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=Egov.Integrations.MPass.Saml&version=10.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Egov.Integrations.MPass.Saml&version=10.0.2
                    
Install as a Cake Tool

Egov.Integrations.MPass.Saml

MPass SAML 2.0 Authentication Handler for ASP.NET Core.

Installation

You can install the package via NuGet:

dotnet add package Egov.Integrations.MPass.Saml

Usage

1. Configure Services

In your Program.cs, add the MPass SAML authentication handler:

builder.Services.AddAuthentication(options =>
{
    options.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
    options.DefaultChallengeScheme = MPassSamlDefaults.AuthenticationScheme;
})
.AddCookie()
.AddMPassSaml(builder.Configuration.GetSection("MPassSaml"));

2. Configure Endpoints

Map the MPass SAML endpoints:

app.UseAuthentication();
app.MapMPassSaml();

3. Configuration

Add the following configuration to your appsettings.json:

{
  "MPassSaml": {
    "MetadataAddress": "https://mpass.gov.md/saml/metadata",
    "ServiceProviderEntityId": "https://your-app.md",
    "CallbackPath": "/signin-mpass",
    "SignedOutCallbackPath": "/signout-callback-mpass"
  }
}

Health Checks

You can also add a health check for MPass SAML:

builder.Services.AddHealthChecks()
    .AddMPassSamlHealthCheck();

app.MapHealthChecks("/health");

License

This project is licensed under the MIT License.

Product 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.2 239 4/9/2026
8.0.56 317 12/12/2025
8.0.55 152 12/11/2025
8.0.54 140 12/11/2025
8.0.53 154 12/11/2025