ActiveLogin.Authentication.BankId.AzureKeyVault 11.0.0-rc-1

Prefix Reserved
This is a prerelease version of ActiveLogin.Authentication.BankId.AzureKeyVault.
dotnet add package ActiveLogin.Authentication.BankId.AzureKeyVault --version 11.0.0-rc-1
                    
NuGet\Install-Package ActiveLogin.Authentication.BankId.AzureKeyVault -Version 11.0.0-rc-1
                    
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.AzureKeyVault" Version="11.0.0-rc-1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ActiveLogin.Authentication.BankId.AzureKeyVault" Version="11.0.0-rc-1" />
                    
Directory.Packages.props
<PackageReference Include="ActiveLogin.Authentication.BankId.AzureKeyVault" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ActiveLogin.Authentication.BankId.AzureKeyVault --version 11.0.0-rc-1
                    
#r "nuget: ActiveLogin.Authentication.BankId.AzureKeyVault, 11.0.0-rc-1"
                    
#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.
#addin nuget:?package=ActiveLogin.Authentication.BankId.AzureKeyVault&version=11.0.0-rc-1&prerelease
                    
Install ActiveLogin.Authentication.BankId.AzureKeyVault as a Cake Addin
#tool nuget:?package=ActiveLogin.Authentication.BankId.AzureKeyVault&version=11.0.0-rc-1&prerelease
                    
Install ActiveLogin.Authentication.BankId.AzureKeyVault as a Cake Tool

ActiveLogin.Authentication.BankId.AzureKeyVault

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
    .AddBankId(bankId =>
    {
        bankId.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 net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.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
11.0.0-rc-1 212 3/7/2025
10.1.0 1,076 1/23/2025
10.1.0-rc-1 88 1/21/2025
10.0.1 3,722 10/18/2024
10.0.0 600 9/27/2024
10.0.0-rc-2 104 8/27/2024
10.0.0-rc-1 131 8/23/2024
10.0.0-beta-1 126 4/30/2024
9.0.0 3,919 4/30/2024
9.0.0-rc-1 142 4/18/2024
8.0.0 4,524 2/21/2024
8.0.0-beta-1 185 1/8/2024
8.0.0-alpha-1 132 1/3/2024
7.0.0 8,176 6/30/2023
7.0.0-rc-1 149 6/28/2023
7.0.0-beta-1 145 6/8/2023
7.0.0-alpha-1 161 5/22/2023
6.0.3 10,737 10/5/2022
6.0.2 943 9/8/2022
6.0.1 439 9/1/2022
6.0.0 487 8/25/2022
6.0.0-rc-1 197 8/25/2022
6.0.0-beta-2 235 6/22/2022
6.0.0-beta-1 183 6/3/2022