ASP.NET authentication module that enables an application to support Swedish BankID's (svenskt BankIDs) authentication workflow.
$ dotnet add package ActiveLogin.Authentication.BankId.AspNetCoreActiveLogin.Authentication enables an application to support Swedish BankID (svenskt BankID) authentication in .NET. Built on NET Standard and packaged as NuGet-packages they are easy to install and use on multiple platforms.
Free to use, commercial support and training is available if you need assistance or a quick start.
Sample usage of the ASP.NET authentication module.
services
.AddBankId(bankId =>
{
bankId.UseSimulatedEnvironment();
});
services
.AddAuthentication()
.AddBankIdAuth(bankId =>
{
bankId.AddSameDevice();
});
services
.AddBankId(bankId =>
{
bankId
.AddApplicationInsightsEventListener(options =>
{
options.LogUserPersonalIdentityNumberHints = true;
options.LogCertificateDates = true;
})
.UseProductionEnvironment()
.UseClientCertificateFromAzureKeyVault(Configuration.GetSection("ActiveLogin:BankId:ClientCertificate"))
.UseQrCoderQrCodeGenerator();
});
services
.AddAuthentication()
.AddBankIdAuth(bankId =>
{
bankId
.AddSameDevice()
.AddOtherDevice();
});
For full documentation and samples, see the Readme in our GitHub repo.
Active Login is an Open Source project built on .NET that makes it easy to integrate with leading Swedish authentication services like BankID.
Active Login is built, maintained and sponsored by Active Solution. Active Solution is located in Stockholm (Sweden) and provides IT consulting with focus on web, cloud and AI.
190.0K