{"id":31029039,"url":"https://github.com/activelogin/activelogin.authentication","last_synced_at":"2025-09-13T21:58:27.064Z","repository":{"id":37706330,"uuid":"139032835","full_name":"ActiveLogin/ActiveLogin.Authentication","owner":"ActiveLogin","description":"Support Swedish BankID (svenskt BankID) authentication in .NET. Unofficial package, not created by BankID.","archived":false,"fork":false,"pushed_at":"2025-09-12T09:19:05.000Z","size":3884,"stargazers_count":226,"open_issues_count":24,"forks_count":74,"subscribers_count":21,"default_branch":"main","last_synced_at":"2025-09-12T09:34:35.699Z","etag":null,"topics":["activelogin","authentication","azure","bankid","csharp","hacktoberfest","netcore","netstandard"],"latest_commit_sha":null,"homepage":"https://activelogin.net","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ActiveLogin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":["https://activelogin.net/#support","https://www.activesolution.se/kunderbjudande/active-login/"]}},"created_at":"2018-06-28T14:56:14.000Z","updated_at":"2025-09-12T09:16:12.000Z","dependencies_parsed_at":"2024-03-05T15:45:02.494Z","dependency_job_id":"87beca98-252a-4c31-9004-4432ecf4bda3","html_url":"https://github.com/ActiveLogin/ActiveLogin.Authentication","commit_stats":null,"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/ActiveLogin/ActiveLogin.Authentication","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveLogin%2FActiveLogin.Authentication","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveLogin%2FActiveLogin.Authentication/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveLogin%2FActiveLogin.Authentication/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveLogin%2FActiveLogin.Authentication/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ActiveLogin","download_url":"https://codeload.github.com/ActiveLogin/ActiveLogin.Authentication/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ActiveLogin%2FActiveLogin.Authentication/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275032803,"owners_count":25393761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["activelogin","authentication","azure","bankid","csharp","hacktoberfest","netcore","netstandard"],"created_at":"2025-09-13T21:58:25.992Z","updated_at":"2025-09-13T21:58:27.047Z","avatar_url":"https://github.com/ActiveLogin.png","language":"C#","funding_links":["https://activelogin.net/#support","https://www.activesolution.se/kunderbjudande/active-login/"],"categories":[],"sub_categories":[],"readme":"# ActiveLogin.Authentication\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-orange.svg)](https://opensource.org/licenses/MIT)\n[![Build Status](https://github.com/ActiveLogin/ActiveLogin.Authentication/actions/workflows/build.yml/badge.svg)](https://github.com/ActiveLogin/ActiveLogin.Authentication/actions/workflows/build.yml)\n[![Live demo](https://img.shields.io/static/v1?label=Demo\u0026message=Live%20demo\u0026color=008bc3)](https://demo.activelogin.net/)\n[![Docs](https://img.shields.io/static/v1?label=Docs\u0026message=Documentation\u0026color=008bc3)](https://docs.activelogin.net/)\n[![Discussion](https://img.shields.io/github/discussions/ActiveLogin/ActiveLogin.Authentication)](https://github.com/ActiveLogin/ActiveLogin.Authentication/discussions)\n[![Twitter Follow](https://img.shields.io/badge/Twitter-@ActiveLoginSE-blue.svg?logo=twitter)](https://twitter.com/ActiveLoginSE)\n\n\nActiveLogin.Authentication enables an application to support Swedish BankID (svenskt BankID) authentication in .NET.\n\n[Active Login is licensed](LICENSE.md) is provided under the very permissive [MIT license](https://opensource.org/licenses/MIT) for you to be able to use it in commercial or non-commercial applications without many restrictions.\nActive Login is provided \"as is\", without any warrany of any kind. If you need support, [commercial support and training](#support--training) is available.\n\nActive Login is not a product created by BankID. It is an unofficial project that was developed by Active Solution. All trademarks are the property of their respective owners.\n\n## Features\n\n- :id: Supports BankID Auth (API, Flow and UI)\n- :pencil: Supports BankID Sign (API, Flow and UI)\n- :phone::id: Supports BankID Phone Auth (API)\n- :phone::pencil: Supports BankID Phone Sign (API)\n- :relaxed: Supports BankID Verify digital ID card (API)\n- :penguin: Cross platform: Targets .NET Standard 2.0 and .NET 8\n- :six: Built on V6.0 (the latest) BankID JSON API\n- :checkered_flag: Supports BankID animated QR code (Secure start)\n- :cloud: Designed with Microsoft Azure in mind (KeyVault, Monitor, Application Insights, AD B2C etc.)\n- :earth_americas: Multi language support with English and Swedish out of the box\n- :wrench: Customizable and extensible\n- :diamond_shape_with_a_dot_inside: Can be used as a [Custom Identity Provider for Azure AD B2C](#how-do-i-use-active-login-to-get-support-for-bankid-in-azure-ad-active-directory-b2c)\n\n\n## Screenshots\n\n_Screenshots on how the default UI for Native BankID looks on different devices._\n\n![Active Login Screenshots](https://alresourcesprod.blob.core.windows.net/docsassets/active-login-screenshots.png)\n\n_Screenshot on monitoring dashboard._\n\n![Active Login Monitor](https://alresourcesprod.blob.core.windows.net/docsassets/active-login-monitor-screenshot_1.png)\n\n\n## Table of contents\n\n___Note:___ This Readme reflects the state of our main branch and the code documented here might not be released as packages on NuGet.org yet. For early access, see our [CI builds](#projects--packages-overview).\n\n- [ActiveLogin.Authentication](#activeloginauthentication)\n  - [Features](#features)\n  - [Screenshots](#screenshots)\n  - [Table of contents](#table-of-contents)\n  - [Projects \\\u0026 Packages overview](#projects--packages-overview)\n  - [Usage \\\u0026 Docs](#usage--docs)\n  - [Samples](#samples)\n  - [Tests](#tests)\n  - [FAQ](#faq)\n    - [What version of .NET is supported?](#what-version-of-net-is-supported)\n    - [How do I build the solution locally?](#how-do-i-build-the-solution-locally)\n      - [Devcontainer and GitHub Codespaces](#devcontainer-and-github-codespaces)\n    - [How do I run the samples locally?](#how-do-i-run-the-samples-locally)\n    - [How do I use Active Login to get support for BankID in Azure AD (Active Directory) B2C?](#how-do-i-use-active-login-to-get-support-for-bankid-in-azure-ad-active-directory-b2c)\n  - [Active Login](#active-login)\n    - [Security](#security)\n    - [Contribute](#contribute)\n      - [Contributors](#contributors)\n    - [Stay updated and join the discussion](#stay-updated-and-join-the-discussion)\n    - [License](#license)\n    - [Acknowledgements](#acknowledgements)\n    - [Sponsors](#sponsors)\n    - [Support \\\u0026 Training](#support--training)\n\n\n## Projects \u0026 Packages overview\n\nCI-builds from main of all packages are available in our [GitHub Packages feed](https://github.com/orgs/ActiveLogin/packages).\n\n| Project | Description | NuGet | Downloads |\n| ------- | ----------- | ----  | --------- |\n| [BankId.Api](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.Api) | API client for the Swedish BankID REST API. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.Api.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.Api/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.Api.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.Api/) |\n| [BankId.Core](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.Core) | Core functionality for the BankID flow. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.Core.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.Core/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.Core.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.Core/) |\n| [BankId.AspNetCore](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.AspNetCore) | ASP.NET authentication module for Swedish BankID. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.AspNetCore.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AspNetCore/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.AspNetCore.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AspNetCore/) |\n| [BankId.AzureKeyVault](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.AzureKeyVault) | Azure KeyVault integrations for the AspNetCore package. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.AzureKeyVault.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AzureKeyVault/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.AzureKeyVault.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AzureKeyVault/) |\n| [BankId.AzureMonitor](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.AzureMonitor) | Azure Monitor (Application Insights) integrations for the AspNetCore package. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.AzureMonitor.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AzureMonitor/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.AzureMonitor.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.AzureMonitor/) |\n| [BankId.QRCoder](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.QRCoder) | QR code generation using QRCoder the AspNetCore package. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.QRCoder.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.QRCoder/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.QRCoder.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.QRCoder/) |\n| [BankId.UAParser](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/src/ActiveLogin.Authentication.BankId.UACoder) | Device and browser detection using UAParser. | [![NuGet](https://img.shields.io/nuget/vpre/ActiveLogin.Authentication.BankId.UAParser.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.UAParser/) | [![NuGet (Pre)](https://img.shields.io/nuget/dt/ActiveLogin.Authentication.BankId.UAParser.svg)](https://www.nuget.org/packages/ActiveLogin.Authentication.BankId.UAParser/) |\n\n\n## Usage \u0026 Docs\n\nFull documentation with step by step instructions, samples, customization and details on how to configure the options is available here:\n\n[Documentation for ActiveLogin.Authentication.BankID](docs/articles/bankid.md)\n\nActive Login is designed to make it easy to get started with BankID in .NET. The most basic setup looks like this:\n\n```csharp\n// Common\nservices\n    .AddBankId(bankId =\u003e\n    {\n        bankId.UseTestEnvironment();\n    });\n\n// Auth\nservices\n    .AddAuthentication()\n    .AddBankIdAuth(bankId =\u003e\n    {\n        bankId.AddSameDevice();\n    });\n\n// Sign\nservices\n    .AddBankIdSign(bankId =\u003e\n    {\n        bankId.AddSameDevice();\n    });\n```\n\n\n---\n\n\n## Samples\n\nFor more use cases, samples and inspiration; feel free to browse our [unit tests](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test) and [samples](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples).\n\n_Note: These are samples on how to use Active Login in different situations and might not represent optimal way of setting up ASP.NET MVC, IdentityServer or other components. Please see them as inspiration._\n\n| Project | Description |\n| ------- | ----------- |\n| [IdentityServer.ClientSample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/IdentityServer.ClientSample) | ASP.NET MVC site using the IdentityServer.ServerSample as auth provider. |\n| [IdentityServer.ServerSample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/IdentityServer.ServerSample) | IdentityServer with Active Login as auth provider for BankID. |\n| [Standalone.MvcSample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/Standalone.MvcSample) | ASP.NET MVC with Active Login as auth provider for BankID. Also demo of Sign. |\n| [AzureProvisioningSample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/AzureProvisioningSample) | ARM template with Azure KeyVault, Azure App Service, Azure Monitor / Application Insights etc. |\n| [Phone.ConsoleSample](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/samples/Phone.ConsoleSample) | Console application with a simple Phone Auth/Sign example |\n\n_Please note that IdentityServer.ClientSample uses IdentityServer.ServerSample as the IdentityProvider, so the IdentityServer.ClientSample is a good place to start._\n\nA live demo is available at [https://demo.activelogin.net/](https://demo.activelogin.net/).\n\n## Tests\n\n* [BankId.Api.Test](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test/ActiveLogin.Authentication.BankId.Api.Test)\n* [BankId.Core.Test](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test/ActiveLogin.Authentication.BankId.Core.Test)\n* [BankId.AspNetCore.Test](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test/ActiveLogin.Authentication.BankId.AspNetCore.Test)\n* [BankId.UAParser.Test](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test/ActiveLogin.Authentication.BankId.UAParser.Test)\n* [BankId.AzureKeyVault.Test](https://github.com/ActiveLogin/ActiveLogin.Authentication/tree/main/test/ActiveLogin.Authentication.BankId.AzureKeyVault.Test)\n\n\n---\n\n\n## FAQ\n\nHere is a summary of common, general technical questions.\n\nThe [docs for ActiveLogin.Authentication.BankId](docs/articles/bankid.md) contains an FAQ specific to BankID.\n\nFor commercial / business related questions, see the [FAQ at ActiveLogin.net](https://activelogin.net/#faq).\n\n\n### What version of .NET is supported?\n\nThe API-wrapper (ActiveLogin.Authentication.BankId.Api) target .NET Standard 2.0, so it can be used from .NET \u003e= 5.0, .NET Core \u003e= 2.0 and .NET Framework \u003e= 4.6.1, [see full reference here](https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support). The package that target .NET Standard is strong named as it can be used from .NET Framework where strong naming can be relevant.\n\nThe authentication module (*.AspNetCore), depend on ASP.NET 8 and therefore requires .NET 8.\nThe core module (*.Core), and related packages, depend on and requires .NET 8.\n\nOur samples target .NET 8 and follow the conventions used there.\n\n\n### How do I build the solution locally?\n\nActive Login is built using .NET, make sure you have the relevant version of the SDK and runtime installed.\n\nRun the following command in the root to build all projects:\n\n```console\ndotnet build\n```\n\nRun the following command in the root to run all tests:\n\n```console\ndotnet test\n```\n\n#### Devcontainer and GitHub Codespaces\n\nWe also support [devcontainer.json](https://code.visualstudio.com/docs/remote/containers#_create-a-devcontainerjson-file) so that you can [build the solution in a container](https://code.visualstudio.com/docs/remote/containers) and use [GitHub Codespaces](https://docs.github.com/en/codespaces/overview).\n\n### How do I run the samples locally?\n\nThe samples are configured to run for the test environment (no BankID certificate required as it's bundled with the library) by default.\nThe _Standalone.MvcSample_ is using the the most basic sample and is a good start.\n\nTo run the sample: Navigate to `/Samples/Standalone.MvcSample/` and run:\n\n```console\ndotnet run\n```\n\n\n### How do I use Active Login to get support for BankID in Azure AD (Active Directory) B2C?\n\nAzure AD B2C supports using custom identity providers that supports [Open ID Connect](https://docs.microsoft.com/sv-se/azure/active-directory-b2c/active-directory-b2c-reference-oidc). If you deploy Active Login as part of IdentityServer (see our samples) you can configure your Azure AD B2C to federate to that instance and by doing so get BankID support.\n\n![Active Login with Azure AD B2C](https://alresourcesprod.blob.core.windows.net/docsassets/active-login-setup-azuread-b2c.png)\n\n\n---\n\n\n## Active Login\n\nActive Login is an Open Source project built on .NET that makes it easy to integrate with leading Swedish authentication services like [BankID](https://www.bankid.com/).\n\n\n### Security\n\nIn our [Security Policy](SECURITY.md) you can read about how to report a vulnerability, how to subscribe to security alerts and what packages we currently support.\n\n\n### Contribute\n\nWe are very open to community contributions to Active Login.\nPlease see our [contribution guidelines](CONTRIBUTING.md) before getting started.\n\n#### Contributors\n\nThank you to all who have and are contributing to this project!\n\n![Contributors](https://contrib.rocks/image?repo=ActiveLogin/ActiveLogin.Authentication)\n\n\n### Stay updated and join the discussion\n\nThe three primary ways to interact and stay updated with Active Login are:\n\n- [Watch our GitHub repo](https://github.com/ActiveLogin/ActiveLogin.Authentication/watchers)\n- [Interact on GitHub Discussions](https://github.com/ActiveLogin/ActiveLogin.Authentication/discussions)\n- [Follow us on Twitter](https://twitter.com/ActiveLoginSE)\n\n\n### License\n\n[Active Login is licensed](LICENSE.md) under the very permissive [MIT license](https://opensource.org/licenses/MIT) for you to be able to use it in commercial or non-commercial applications without many restrictions.\n\nThe BankID certificates from the BankID documentation are released as part of Active Login with the permission from BankID (Finansiell ID-Teknik BID AB).\n\n*All trademarks are the property of their respective owners.*\n\n\n### Acknowledgements\n\nActive Login is built on or uses the following great open source products:\n\n* [.NET](https://github.com/dotnet/core)\n* [ASP.NET](https://github.com/aspnet/Home)\n* [XUnit](https://github.com/xunit/xunit)\n* [QRCoder](https://github.com/codebude/QRCoder)\n* [UAParser](https://github.com/ua-parser/uap-csharp)\n* [AngleSharp](https://github.com/AngleSharp/AngleSharp)\n* [Moq](https://github.com/moq/moq)\n* [Bootstrap](https://github.com/twbs/bootstrap)\n* [Loading.io](https://loading.io/)\n\nFor samples, these great products are used:\n\n* [Duende IdentityServer](https://duendesoftware.com/products/identityserver)\n\n\n### Sponsors\n\nActive Solution is the main sponsor of Active Login. Active Solution is located in Sweden and provides IT consulting with focus on web, Azure and AI.\n\n\n![Active Solution](https://alresourcesprod.blob.core.windows.net/docsassets/activesolution-logo.svg)\n\n_Bright cloud solutions - System development that shines. Together, we create systems that will rocket your business._\n\nAnd yes, [we are hiring](https://www.activesolution.se/jobb/) :woman_technologist: :)\n\n[https://www.activesolution.se/](https://www.activesolution.se/)\n\n\n### Support \u0026 Training\n\nIf you need help with implementing Active Login, there are commercial support \u0026 training options available.\n\nWe can help you out with:\n\n- Education and training on:\n\t- Active Login\n\t- IdentityServer\n\t- Azure AD B2C\n\t- Authentication on the .NET platform in general\n- Hands on implementing BankID using Active Login\n- Implement BankID as a custom Identity Provider for Azure AD B2C\n- Continuous support for Active Login\n\nSee [ActiveLogin.net](https://activelogin.net#support) for more details on how to get in touch with us :telephone_receiver:.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivelogin%2Factivelogin.authentication","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factivelogin%2Factivelogin.authentication","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factivelogin%2Factivelogin.authentication/lists"}