AspNetCore.Authentication.SK.SmartId
1.0.0-alpha4
See the version list below for details.
dotnet add package AspNetCore.Authentication.SK.SmartId --version 1.0.0-alpha4
NuGet\Install-Package AspNetCore.Authentication.SK.SmartId -Version 1.0.0-alpha4
<PackageReference Include="AspNetCore.Authentication.SK.SmartId" Version="1.0.0-alpha4" />
paket add AspNetCore.Authentication.SK.SmartId --version 1.0.0-alpha4
#r "nuget: AspNetCore.Authentication.SK.SmartId, 1.0.0-alpha4"
// Install AspNetCore.Authentication.SK.SmartId as a Cake Addin #addin nuget:?package=AspNetCore.Authentication.SK.SmartId&version=1.0.0-alpha4&prerelease // Install AspNetCore.Authentication.SK.SmartId as a Cake Tool #tool nuget:?package=AspNetCore.Authentication.SK.SmartId&version=1.0.0-alpha4&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 | Versions 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. |
-
.NETCoreApp 3.1
- Rfc2253 (>= 1.0.0)
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 | 652 | 4/11/2022 |
1.0.0-alpha5 | 4,088 | 3/17/2021 |
1.0.0-alpha4 | 293 | 2/18/2021 |