ActiveLogin.Authentication.BankId.AspNetCore.Azure 5.0.0-rc-2

Prefix Reserved
Suggested Alternatives

ActiveLogin.Authentication.BankId.AzureKeyVault

Additional Details

This package is renamed into "ActiveLogin.Authentication.BankId.AzureKeyVault" from version 6.0.0.

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

// Install ActiveLogin.Authentication.BankId.AspNetCore.Azure as a Cake Tool
#tool nuget:?package=ActiveLogin.Authentication.BankId.AspNetCore.Azure&version=5.0.0-rc-2&prerelease                

ActiveLogin.Authentication.BankId.AspNetCore.Azure

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

Sample usage of the extension method to use client certificates for BankID from Azure KeyVault.

Adds the UseClientCertificateFromAzureKeyVault(...) extension method.

services
    .AddAuthentication()
    .AddBankId(builder =>
    {
        builder
            .UseClientCertificateFromAzureKeyVault(Configuration.GetSection("ActiveLogin:BankId:ClientCertificate"));
    });

By default, the DefaultAzureCredential will be used as credentials. For info on how to use that, see Microsoft docs. The minimal configuration then looks like this:

{
    "ActiveLogin:BankId:ClientCertificate" {
        "AzureKeyVaultUri": "TODO-ADD-YOUR-VALUE",
        "AzureKeyVaultSecretName": "TODO-ADD-YOUR-VALUE"
    }
}

You can override the specific managed identity client id to use:

{
    "ActiveLogin:BankId:ClientCertificate" {
        "AzureKeyVaultUri": "TODO-ADD-YOUR-VALUE",
        "AzureKeyVaultSecretName": "TODO-ADD-YOUR-VALUE",

        "AzureManagedIdentityClientId": ""
    }
}

You can also override to use client credentials:

{
    "ActiveLogin:BankId:ClientCertificate" {
        "AzureKeyVaultUri": "TODO-ADD-YOUR-VALUE",
        "AzureKeyVaultSecretName": "TODO-ADD-YOUR-VALUE",

        "AzureAdTenantId": "",
        "AzureAdClientId": "",
        "AzureAdClientSecret": ""
    }
}

They will be evaluated in the order:

  1. ClientSecretCredential with AzureAdTenantId + AzureAdClientId + AzureAdClientSecret (if specified)
  2. DefaultAzureCredential with AzureManagedIdentityClientId (if specified)
  3. DefaultAzureCredential

Full documentation

For full documentation and samples, see the Readme in our GitHub repo.

Active Login

Active Login is an Open Source project built on .NET that makes it easy to integrate with leading Swedish authentication services like BankID.

https://www.activelogin.net/

Active Solution

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.

https://www.activesolution.se/

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
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
5.0.0 4,360 4/28/2022 5.0.0 is deprecated.
5.0.0-rc-2 226 4/28/2022 5.0.0-rc-2 is deprecated.
5.0.0-rc-1 201 4/26/2022 5.0.0-rc-1 is deprecated.
5.0.0-alpha-3 271 2/19/2022 5.0.0-alpha-3 is deprecated.
5.0.0-alpha-2 194 2/7/2022 5.0.0-alpha-2 is deprecated.
4.0.0 13,938 10/27/2020 4.0.0 is deprecated.
4.0.0-rc-1 447 6/15/2020 4.0.0-rc-1 is deprecated.
4.0.0-beta-4 448 6/10/2020 4.0.0-beta-4 is deprecated.
4.0.0-beta-3 478 6/2/2020 4.0.0-beta-3 is deprecated.
4.0.0-beta-2 458 5/18/2020 4.0.0-beta-2 is deprecated.
4.0.0-beta-1 438 5/15/2020 4.0.0-beta-1 is deprecated.
3.0.0 7,318 1/21/2020 3.0.0 is deprecated.
3.0.0-rc-1 571 1/13/2020 3.0.0-rc-1 is deprecated.
3.0.0-beta-2 532 12/20/2019 3.0.0-beta-2 is deprecated.
3.0.0-beta-1 709 12/3/2019 3.0.0-beta-1 is deprecated.
3.0.0-alpha-1 492 11/21/2019 3.0.0-alpha-1 is deprecated.
2.0.1 1,871 9/11/2019 2.0.1 is deprecated.
2.0.0 959 9/6/2019 2.0.0 is deprecated.
2.0.0-rc-1 744 4/30/2019 2.0.0-rc-1 is deprecated.
1.0.0 1,179 2/5/2019 1.0.0 is deprecated.
1.0.0-rc-4 633 2/4/2019 1.0.0-rc-4 is deprecated.
1.0.0-rc-3 619 2/1/2019 1.0.0-rc-3 is deprecated.
1.0.0-rc-2 643 1/25/2019 1.0.0-rc-2 is deprecated.
1.0.0-rc-1 717 12/16/2018 1.0.0-rc-1 is deprecated.
1.0.0-alpha-4 755 10/27/2018 1.0.0-alpha-4 is deprecated.
1.0.0-alpha-1 743 9/23/2018 1.0.0-alpha-1 is deprecated.
0.3.4 1,361 7/23/2018 0.3.4 is deprecated.
0.3.3 1,266 7/22/2018 0.3.3 is deprecated.
0.3.2 1,289 7/22/2018 0.3.2 is deprecated.
0.3.1 1,299 7/20/2018 0.3.1 is deprecated.