AspNetCore.Authentication.eIDEasy.IDCard 1.0.0-alpha4

This is a prerelease version of AspNetCore.Authentication.eIDEasy.IDCard.
dotnet add package AspNetCore.Authentication.eIDEasy.IDCard --version 1.0.0-alpha4                
NuGet\Install-Package AspNetCore.Authentication.eIDEasy.IDCard -Version 1.0.0-alpha4                
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="AspNetCore.Authentication.eIDEasy.IDCard" Version="1.0.0-alpha4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Authentication.eIDEasy.IDCard --version 1.0.0-alpha4                
#r "nuget: AspNetCore.Authentication.eIDEasy.IDCard, 1.0.0-alpha4"                
#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.
// Install AspNetCore.Authentication.eIDEasy.IDCard as a Cake Addin
#addin nuget:?package=AspNetCore.Authentication.eIDEasy.IDCard&version=1.0.0-alpha4&prerelease

// Install AspNetCore.Authentication.eIDEasy.IDCard as a Cake Tool
#tool nuget:?package=AspNetCore.Authentication.eIDEasy.IDCard&version=1.0.0-alpha4&prerelease                

AspNetCore.Authentication.eIDEasy.IDCard

AspNetCore.Authentication.eIDEasy.IDCard is an eIDEasy security middleware that you can use in your ASP.NET Core application to support eIDEasy embedded ID-card authentication.

eIDEasy provides several eID authentication methods like ID-card, Mobile-ID and Smart-ID. See more at their website eideasy.com.

Getting started

Register yourself at eideasy.com and configure your site there and take notes of Oauth client_id/secret, you will need them.

Add your client id and client secret to your configuration.

Add following lines to your Startup class:

public void ConfigureServices(IServiceCollection services)
{
    services.AddAuthentication()
                .AddEIdEasyIdCard<ApplicationUser>(options =>
                {
                    options.ClientId = Configuration["eIDEasy:ClientId"];
                    options.ClientSecret = Configuration["eIDEasy:ClientSecret"];
                    options.Country = "ee";
                });
}

public void Configure(IApplicationBuilder app)
{
    app.UseAuthentication();
    app.UseAuthorization();
}

See the /sample directory for a complete sample using ASP.NET Core MVC.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.

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
1.0.0-alpha4 4,624 2/26/2021
1.0.0-alpha3 231 2/18/2021