AspNetCore.Authentication.SK.SmartId 1.0.0-alpha5

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

// Install AspNetCore.Authentication.SK.SmartId as a Cake Tool
#tool nuget:?package=AspNetCore.Authentication.SK.SmartId&version=1.0.0-alpha5&prerelease

AspNetCore.Authentication.SK.SmartID

AspNetCore.Authentication.SK.SmartID is a Smart-ID security middleware that you can use in your ASP.NET Core application to support SK Smart-ID authentication. It is inspired by Microsoft Twitter authentication and SK Smart-ID java client. It is not perfect, but functional as external authentication.

The latest alpha release can be found on NuGet.

Getting started

Install live or demo SK root CA and intermediate certificates to your running computer or server from SK site. They have to be installed in propriate stores or received user certifiactes are not validated.

Add following lines to your Startup class:

public void ConfigureServices(IServiceCollection services)
{
    services.AddAuthentication()
        .AddSmartId<ApplicationUser>(SmartIdDefaults.DemoCertificatePublicKey, options =>
            {
                const string displayText = "Smart-ID ASP.NET Core";
                options.RelyingPartyUUID = Configuration["SmartID:RelyingPartyUUID"];
                options.RelyingPartyName = Configuration["SmartID:RelyingPartyName"];
                //options.UseDemo(true); // To use Smart-ID demo, use this.

                options.AllowedInteractions.Add(
                    new AllowedInteraction(AllowedInteractionType.VerificationCodeChoice, displayText));
                options.AllowedInteractions.Add(
                    new AllowedInteraction(AllowedInteractionType.DisplayTextAndPin, displayText));
            });
}

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

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-alpha6 625 4/11/2022
1.0.0-alpha5 4,071 3/17/2021
1.0.0-alpha4 281 2/18/2021