Introduction to the Sweden Connect Technical Framework

2026-10-19

Registration number: 2019-267


Table of Contents

  1. Introduction

    1.1. Overview

    1.2. The Assurance Framework and Levels of Assurance

    1.3. Service for Collection, Administration and Publishing of Metadata

    1.4. Discovery Service

    1.5. Relying Party Integration

    1.6. Signatures

    1.7. The Technical Framework and eIDAS

    1.7.1. Foreign eID Authentication

    1.7.2. Signing using a Foreign eID

    1.7.3. Handling of Identities

    1.7.4. Swedish eIDs in Foreign Services

  2. Technical Specifications

    2.1. Common Specifications

    2.1.1. Sweden Connect – Registry for Identifiers

    2.1.2. Sweden Connect – Security Requirements

    2.2. Profiles and Specifications for SAML

    2.2.1. Deployment Profile for the Swedish eID Framework

    2.2.2. Attribute Specification for the Swedish eID Framework

    2.2.3. Entity Categories for the Swedish eID Framework

    2.2.4. eIDAS Constructed Attributes Specification for the Swedish eID Framework

    2.2.5. Principal Selection in SAML Authentication Requests

    2.2.6. User Message Extension in SAML Authentication Requests

    2.3. Profiles and Specifications for OpenID Connect

    2.3.1. OpenID Connect Profile for Sweden Connect

    2.3.2. OpenID Connect Claims and Scopes Specification for Sweden Connect

    2.4. Signature Specifications

    2.4.1. Implementation Profile for using OASIS DSS in Central Signing Services

    2.4.2. DSS Extension for Federated Central Signing Services

    2.4.3. Certificate Profile for Certificates Issued by Central Signing Services

    2.4.4. Signature Activation Protocol for Federated Signing

    2.5. The Sweden Connect Federation

    2.5.1. Tekniska anslutningsregler för Sweden Connect-federationen

    2.5.2. Sweden Connect – OpenID Federation Rules and Policies

    2.5.3. Sweden Connect – OpenID Federation Structure

    2.5.4. Sweden Connect – OpenID Connect Metadata Requirements

    2.5.5. OIDC Sweden – OpenID Federation Profiles and Specifications

  3. References

    3.1. Digg

    3.2. OIDC Sweden

    3.3. Other References

1. Introduction

1.1. Overview

The Sweden Connect Technical Framework, also referred to as the Swedish eID Framework, is adapted for identity federations based on SAML 2.0 and OpenID Connect.

Relying parties receive identity assertions in a standardized format from an identity provider. In SAML, the identity assertion is a SAML assertion. In OpenID Connect, the identity information is delivered in an ID Token and, optionally, in the response from the UserInfo endpoint.

In SAML, e-services and other relying parties take the role of Service Providers (SP), and services that authenticate users and issue identity assertions take the role of Identity Providers (IdP). In OpenID Connect, the corresponding roles are Relying Parties (RP) and OpenID Providers (OP). This document uses the terms "relying party" and "identity provider" when the text applies to both protocols.

Relying parties that require electronic signatures do not need to adapt to different signature techniques for different types of eIDs. Instead, a relying party makes use of a signature service, where users sign digital documents by authenticating at an identity provider.

As both personal identity information and other attributes linked to users are provided through identity assertions, all types of eIDs that have an identity provider within the federation can be used by a relying party that requires specific identity attributes, even if a particular eID does not hold this information.

1.2. The Assurance Framework and Levels of Assurance

The basis for the level of security applied when a user authenticates is the level of assurance for the eID required by the relying party. In order for these levels to be comparable within the federation, four assurance levels (1 to 4) are defined in the Swedish eID Assurance Framework [TrustFramework], and three assurance levels (low, substantial, high) are defined by the EU regulation eIDAS. Any service issuing identity assertions must prove that the process of issuing identity assertions meets the requirements of a given level. This includes:

1.3. Service for Collection, Administration and Publishing of Metadata

A federation provides information about its participants through metadata. The participants of a federation are services that provide identity and attribute assertions, and relying parties that consume these services.

Through the federation's metadata, participants obtain information about other participants' services, including the information required for a secure exchange of information between services. Each party needs to keep its metadata updated, and the metadata must conform to agreed conditions.

The main purpose of metadata is to provide the keys and certificates required for secure communication and information exchange between services. In addition to keys, metadata also contains other information needed for collaboration between services, for example, addresses of required functions, information about assurance levels, service categories and user interface information.

In the SAML part of the federation, the metadata is a register in XML format that is signed with the federation operator's certificate. The file contains information about the federation members, including their certificates. Because the metadata file is signed, it is sufficient to compare a certificate with its equivalent in metadata. An infrastructure based on a central federation register requires that the register is constantly updated and that the federation members always use the latest version of the file.

In the OpenID Connect part of the federation, metadata is handled according to OpenID Federation [OpenID.Federation]. Each entity publishes its metadata in a signed Entity Configuration, and the Trust Anchor, along with any Intermediate Entities, issues signed Subordinate Statements about the entities registered below it. Trust in an entity's metadata is established by resolving a Trust Chain from the entity up to a Trust Anchor operated by the federation, and the metadata policies of the federation are applied to the metadata during this process. See Section 2.5 for the specifications that apply.

1.4. Discovery Service

Within an identity federation, it is possible to offer and consume a common Discovery Service that lists the identity providers (or eIDs) that a user can choose from to authenticate. The purpose of such a service is to relieve the individual relying parties of the federation from implementing support for how users choose how to authenticate.

By making the discovery service available within the identity federation, relying parties may direct their users there for the choice of how to authenticate. The discovery service interacts with the user, who makes the choice, and directs the user back to the relying party along with the selected authentication choice. The relying party then knows to which identity provider the user should be directed for authentication.

Currently, there is no common discovery service available within the Sweden Connect federation.

1.5. Relying Party Integration

Relying parties integrate with identity providers using standardized messages and consume identity assertions that also have a standardized format.

For SAML, the Sweden Connect Technical Framework is influenced by the interoperability profile "SAML V2.0 Deployment Profile for Federation Interoperability" [SAML2Int]. For OpenID Connect, the framework builds on "The Swedish OpenID Connect Profile" [OIDC.Sweden.Profile], published by OIDC Sweden, which profiles OpenID Connect Core [OpenID.Core]. Both protocols are supported by several commercial products as well as open source libraries, which facilitates the integration on the relying party side.

Most relying parties use stand-alone authentication servers, which means that the adaptation needed to support the Sweden Connect Technical Framework is usually limited to the authentication solution used.

1.6. Signatures

The Sweden Connect Technical Framework enables digital signatures using any type of eID, even those not based on certificates, as long as there is an identity provider for the particular eID. This is possible because the identity assertion that is issued during authentication for signature is standardized.

The purpose of a Signature Service is to offer digital signature services within identity federations that follow the Sweden Connect Technical Framework.

By procuring1 and introducing a signature service, a relying party within the federation can offer its users the possibility to sign electronic documents with the support of the signature service. The user's signature, and the associated signature certificate, is created by the signature service after the user has approved the signature by authenticating for the signature service2.

The signature service acts as a relying party towards the identity providers of the federation. The user can authenticate for signature either at a SAML Identity Provider, using the "authentication for signature" feature of [SAML.Profile], or at an OpenID Provider, using the "Signature Extension for OpenID Connect" [OIDC.Sweden.Sign] as profiled by [OIDC.Profile].

[1]: It is also possible for a relying party to implement a signature service based on the specifications.

[2]: It is of the utmost importance that the user understands that he or she is signing a document. Therefore, for the eID types that support it, a signature flow should be used during "authentication for signature".

1.7. The Technical Framework and eIDAS

The EU regulation (910/2014) on electronic identification and trust services, eIDAS, requires Swedish public bodies to recognize the eIDs that other eIDAS countries have notified. This means that a Swedish public e-service, under certain conditions, must be able to accept a login performed with an eID issued in another country.

1.7.1. Foreign eID Authentication

The eIDAS technical specifications are, like the SAML part of the Sweden Connect Technical Framework, built upon SAML standards and profiles. Even though the similarities are many, there are also differences between the specifications. However, a Swedish service provider does not have to relate directly to the eIDAS specifications. The figure below illustrates how the Swedish eIDAS node (eIDAS connector) acts as a proxy between other countries and the Swedish federation when a person is authenticated using a foreign eID at a Swedish service provider.

The flow is as follows:

  1. A user with a foreign eID requests access to a Swedish service provider (i.e., wants to log in).

  2. The service provider lets the user select the login method using a discovery service. In this case, the user chooses the "Foreign eID" option.

  3. The service provider creates an authentication request according to the Sweden Connect Technical Framework and directs the user to the Swedish eIDAS node (connector). The eIDAS node acts as an identity provider within the federation, which means that the interaction with this service is performed in the same way as with other identity providers that comply with the Sweden Connect Technical Framework.

  4. The received request is processed, and the eIDAS node displays a page where the user chooses his or her country1. The Swedish eIDAS node then transforms the received authentication request into an authentication request according to the eIDAS format, and directs the user to the selected country's eIDAS Proxy Service.

  5. When the authentication request is processed by the eIDAS Proxy Service of the selected country, that country's technique for authentication is used. Not all eIDAS countries use SAML for authentication, but if that were the case in our example, the user would be directed to a national identity provider, possibly via a discovery service where the eID to use is selected.

  6. When the user has authenticated, an identity assertion is created according to the eIDAS specifications. This assertion contains eIDAS-specific attributes that identify the user. The assertion is posted back to the Swedish eIDAS node.

  7. The node receives the assertion and checks its validity. The assertion is transformed from the eIDAS format into an assertion according to the Sweden Connect Technical Framework and is posted back to the service provider.

  8. The service provider may now complement the data with additional information in order to decide whether the user should be granted access to the service.

Thus, Swedish services only have to implement support for the Sweden Connect Technical Framework, also when authenticating foreign users. However, in order for the service to fully accept the authenticated user, it must also be able to handle the presented identity, which is most likely not a Swedish personal identity number. See Section 1.7.3 below.

[1]: The correct way to describe this would be that the user is asked to which eIDAS Proxy Service the request should be sent. This depends on the nationality of the user's eID issuer.

1.7.2. Signing using a Foreign eID

As already described, a model for digital signatures named "federated signatures" is used within the context of the Sweden Connect Technical Framework. A server-based signature service is associated with the e-service that requests signatures. When a user signs a document, the e-service directs the user, along with a signature request, to the signature service. The signature service then requests that the user authenticate at an identity provider. In conjunction with the authentication, the user approves the signature. The signature service then sends the user back to the e-service along with the signature data, and the e-service stores the signature as a signed document.

This procedure makes it possible for Swedish e-services to offer signing for users with foreign eIDs, since a signature service can choose to authenticate a user with a foreign eID according to the process described in Section 1.7.1 above.

In this case, the Swedish eIDAS node is responsible for informing the user that the purpose of the authentication is to approve the signature of a document, and displays information about the requester of the signature and about what is being signed. When the user has authenticated, an identity assertion is issued and sent back to the signature service, which then generates the signature.

1.7.3. Handling of Identities

Identity assertions from other countries follow common technical specifications within the framework of the eIDAS regulation. These specifications define a Minimum Data Set (MDS), which is a set of attributes that every country must supply for authenticated natural and legal persons. Each country must provide a unique identifier per eID that represents a natural person. For some countries, these identifiers will be unique and persistent per person in the same way as a Swedish personal identity number, but identifiers may have different compositions and properties. A property that may vary is the persistence of a person identifier, i.e., whether the identifier remains unchanged during a person's lifetime, or whether it changes because the user moves to another region, changes name, or simply obtains a new eID. For some countries, the identifier will be different depending on which of the country's eIDs the user is currently using.

In order to simplify the handling of users and identities in Swedish services, the Swedish eIDAS node generates a standardized identity attribute for users that have been authenticated using a foreign eID, a so-called Provisional ID (PRID). The eIDAS node also creates an attribute that declares the persistence, or lifetime, of the PRID attribute. The PRID attribute is generated based on attribute values received from the foreign authentication, according to specific methods for each country. Every combination of country and method is graded based on expected persistence, i.e., how likely it is that the identity of a person changes over time. This makes it possible for Swedish services to adapt the communication with the user and to proactively provide features for a user whose identity has changed, making it possible for this user to access his or her account.

In some cases, a person that has been authenticated using a foreign eID may hold a Swedish personal identity number. It can, for example, be a Swedish citizen who has moved abroad and obtained a foreign eID, or a foreign citizen who is, or has been, registered (folkbokförd) in Sweden and has been assigned a Swedish personal identity number.

1.7.4. Swedish eIDs in Foreign Services

Sweden has notified Swedish eIDs at the assurance levels substantial and high.

A request for authentication from a foreign service provider is sent to the Swedish eIDAS node (eIDAS Proxy Service) via an eIDAS connector in the service provider's country. At the Swedish eIDAS node, the user chooses which Swedish eID he or she wants to use to authenticate, and an authentication request is sent to the identity provider that offers authentication for the selected eID. This request follows the Sweden Connect Technical Framework, which means that a Swedish identity provider does not have to conform to the eIDAS technical specifications.

The user is authenticated by the Swedish identity provider, and an identity assertion is issued according to the Sweden Connect Technical Framework. This assertion is received by the Swedish eIDAS node (Proxy Service) and transformed into an assertion according to the eIDAS specifications before being sent to the foreign eIDAS connector, and then to the foreign service provider that initiated the request.

2. Technical Specifications

This chapter lists the specifications and profiles for identity federations and related services that conform to the Sweden Connect Technical Framework. These documents are normative for the delivery of services within identity federations that implement the Sweden Connect Technical Framework, unless otherwise stated.

2.1. Common Specifications

The specifications in this section apply to both the SAML and the OpenID Connect parts of the Sweden Connect Technical Framework.

2.1.1. Sweden Connect – Registry for Identifiers

The implementation of an infrastructure for Swedish eIDs requires different forms of identifiers to represent objects in data structures. The document "Sweden Connect – Registry for Identifiers", [SC.Registry], defines the structure for identifiers that are assigned within the scope of the Sweden Connect Technical Framework, and contains a registry of defined identifiers.

2.1.2. Sweden Connect – Security Requirements

The specification "Sweden Connect – Security Requirements", [SC.Security], defines the security requirements for participants in the Sweden Connect federation. It covers transport protection, cryptographic algorithms, key lengths and key rollover.

2.2. Profiles and Specifications for SAML

Identity federations conforming to the SAML part of the Sweden Connect Technical Framework are built around the "Deployment Profile for the Swedish eID Framework", [SAML.Profile]. This profile is influenced by, but not normatively dependent on, "SAML V2.0 Deployment Profile for Federation Interoperability" [SAML2Int]. [SAML.Profile] also contains rules and guidelines specific to the Sweden Connect Technical Framework.

2.2.1. Deployment Profile for the Swedish eID Framework

The "Deployment Profile for the Swedish eID Framework" specification, [SAML.Profile], is the main SAML specification of the Sweden Connect Technical Framework and covers:

2.2.2. Attribute Specification for the Swedish eID Framework

The specification "Attribute Specification for the Swedish eID Framework", [SAML.Attributes], declares the SAML attribute profiles that are used within identity federations that follow the Sweden Connect Technical Framework, including services that connect to eIDAS via the Swedish eIDAS node.

2.2.3. Entity Categories for the Swedish eID Framework

Entity Categories are used within the SAML part of the federation for different purposes:

The specification "Entity Categories for the Swedish eID Framework", [SAML.EntCat], specifies the entity categories that are defined in the Sweden Connect Technical Framework and describes their meaning.

2.2.4. eIDAS Constructed Attributes Specification for the Swedish eID Framework

The specification "eIDAS Constructed Attributes Specification for the Swedish eID Framework", [SC.eIDAS.Attrs], defines processes and rules for how identity attributes are constructed based on the attributes received during an eIDAS authentication.

2.2.5. Principal Selection in SAML Authentication Requests

The specification "Principal Selection in SAML Authentication Requests", [SAML.Principal], defines an extension to SAML that makes it possible for a service provider to inform an identity provider about the identity of the user that it wishes to have authenticated.

2.2.6. User Message Extension in SAML Authentication Requests

The specification "User Message Extension in SAML Authentication Requests", [SAML.UMessage], defines an extension to SAML that makes it possible for a service provider to include a message in the authentication request sent to the identity provider. The identity provider can then display this message to the user during authentication.

2.3. Profiles and Specifications for OpenID Connect

The OpenID Connect specifications of the Sweden Connect Technical Framework build on the OpenID Connect specifications published by OIDC Sweden, and extend them with requirements, claims and scopes specific to the Sweden Connect federation. The following OIDC Sweden specifications are used:

The specifications needed for joining the OpenID Connect part of the federation, such as the metadata requirements, are listed in Section 2.5.

2.3.1. OpenID Connect Profile for Sweden Connect

The specification "OpenID Connect Profile for Sweden Connect", [OIDC.Profile], extends "The Swedish OpenID Connect Profile", [OIDC.Sweden.Profile], with additional requirements for Relying Parties and OpenID Providers in the Sweden Connect federation. This includes, for example, requirements for single sign-on, client authentication, ID Token contents and support for the "Signature Extension for OpenID Connect" [OIDC.Sweden.Sign].

2.3.2. OpenID Connect Claims and Scopes Specification for Sweden Connect

The specification "OpenID Connect Claims and Scopes Specification for Sweden Connect", [OIDC.Claims], extends "Claims and Scopes Specification for the Swedish OpenID Connect Profile", [OIDC.Sweden.Claims], with claims and scopes for use within the Sweden Connect federation, including definitions for eIDAS.

2.4. Signature Specifications

This section contains references to the documents that define signature services within federations conforming to the Sweden Connect Technical Framework.

2.4.1. Implementation Profile for using OASIS DSS in Central Signing Services

The "Implementation Profile for using OASIS DSS in Central Signing Services", [Sign.DSS.Profile], specifies a profile for signature requests and responses according to the OASIS standard "Digital Signature Service Core Protocols, Elements, and Bindings", [DSS].

2.4.2. DSS Extension for Federated Central Signing Services

"DSS Extension for Federated Central Signing Services", [Sign.DSS.Ext], is an extension to the OASIS standard "Digital Signature Service Core Protocols, Elements, and Bindings", [DSS], that specifies the definitions required for signatures according to the Sweden Connect Technical Framework.

2.4.3. Certificate Profile for Certificates Issued by Central Signing Services

The "Certificate Profile for Certificates Issued by Central Signing Services", [Sign.Cert.Profile], specifies the contents of signature certificates and defines a certificate extension for use by signature services.

This profile refers to "Authentication Context Certificate Extension", [AuthContext], which describes how an authentication context is represented in X.509 certificates.

2.4.4. Signature Activation Protocol for Federated Signing

The specification "Signature Activation Protocol for Federated Signing", [Sign.Activation], defines a Signature Activation Protocol (SAP) for implementing Sole Control Assurance Level 2 (SCAL2) according to the standard "prEN 419241 - Trustworthy Systems Supporting Server Signing".

2.5. The Sweden Connect Federation

This section lists the documents needed for joining the Sweden Connect federation, in addition to the security requirements in Section 2.1.2. Section 2.5.1 applies to the SAML part of the federation, and Sections 2.5.2 to 2.5.5 apply to the OpenID Connect part, which is based on OpenID Federation [OpenID.Federation].

2.5.1. Tekniska anslutningsregler för Sweden Connect-federationen

The document "Tekniska anslutningsregler för Sweden Connect-federationen" (technical rules for joining the Sweden Connect federation), [SC.SAML.Rules], is the normative specification for parties joining the SAML part of the Sweden Connect federation. It covers the agreements that give access to the federation, levels of assurance, requirements for authentication and attribute release, and the rules for registering metadata.

Note: This document is currently only available in Swedish.

2.5.2. Sweden Connect – OpenID Federation Rules and Policies

The document "Sweden Connect – OpenID Federation Rules and Policies", [SC.OIDF.Rules], contains the federation rules of the OpenID Connect part of the Sweden Connect federation and is the entry document for participants. It states what Relying Parties and OpenID Providers must comply with, including Trust Marks, registration policies and the steps for joining the federation.

2.5.3. Sweden Connect – OpenID Federation Structure

The document "Sweden Connect – OpenID Federation Structure", [SC.OIDF.Structure], describes how the OpenID Connect part of the Sweden Connect federation is structured, and provides the Entity Identifiers, endpoints and Trust Anchor keys for the Production, QA and Sandbox environments.

2.5.4. Sweden Connect – OpenID Connect Metadata Requirements

The specification "Sweden Connect – OpenID Connect Metadata Requirements", [SC.OIDC.Metadata], defines the metadata requirements for Relying Parties and OpenID Providers, and the metadata policies that the federation applies to enforce them. The requirements apply to the resolved metadata, i.e., the metadata that results when the Trust Chain of an entity has been applied to the metadata that the entity declares about itself.

2.5.5. OIDC Sweden – OpenID Federation Profiles and Specifications

The Sweden Connect support for OpenID Federation is built upon the following profile and specifications published by OIDC Sweden:

3. References

3.1. Digg

[TrustFramework]

Tillitsramverk för Svensk e-legitimation.

[SC.Registry]

Sweden Connect – Registry for Identifiers.

[SAML.Profile]

Deployment Profile for the Swedish eID Framework.

[SAML.Attributes]

Attribute Specification for the Swedish eID Framework.

[SAML.EntCat]

Entity Categories for the Swedish eID Framework.

[SC.eIDAS.Attrs]

eIDAS Constructed Attributes Specification for the Swedish eID Framework.

[SAML.Principal]

Principal Selection in SAML Authentication Requests.

[SAML.UMessage]

User Message Extension in SAML Authentication Requests.

[OIDC.Profile]

OpenID Connect Profile for Sweden Connect.

[OIDC.Claims]

OpenID Connect Claims and Scopes Specification for Sweden Connect.

[Sign.DSS.Profile]

Implementation Profile for using OASIS DSS in Central Signing Services.

[Sign.DSS.Ext]

DSS Extension for Federated Central Signing Services.

[Sign.Cert.Profile]

Certificate Profile for Certificates Issued by Central Signing Services.

[Sign.Activation]

Signature Activation Protocol for Federated Signing.

[SC.Security]

Sweden Connect – Security Requirements 1.0.

[SC.SAML.Rules]

Tekniska anslutningsregler för Sweden Connect-federationen.

[SC.OIDF.Rules]

Sweden Connect – OpenID Federation Rules and Policies 1.0.

[SC.OIDF.Structure]

Sweden Connect – OpenID Federation Structure.

[SC.OIDC.Metadata]

Sweden Connect – OpenID Connect Metadata Requirements 1.0.

3.2. OIDC Sweden

[OIDC.Sweden.Profile]

The Swedish OpenID Connect Profile - Version 1.0.

[OIDC.Sweden.Claims]

Claims and Scopes Specification for the Swedish OpenID Connect Profile - Version 1.0.

[OIDC.Sweden.RPar]

Authentication Request Parameter Extensions for the Swedish OpenID Connect Profile - Version 1.1.

[OIDC.Sweden.Sign]

Signature Extension for OpenID Connect - Version 1.2.

[OIDC.Sweden.Fed]

Swedish OpenID Federation Deployment and Interoperability Profile - Version 1.0.

[OIDC.Sweden.OrgId]

OpenID Federation Organization Identifier Metadata Parameter - Version 1.0.

[OIDC.Sweden.RegPolicy]

OpenID Federation Registration Policy - Version 1.0.

[OIDC.Sweden.Hosting]

OpenID Federation Entity Configuration Hosting - Version 1.0.

3.3. Other References

[OpenID.Core]

Sakimura, N., Bradley, J., Jones, M., de Medeiros, B. and C. Mortimore, "OpenID Connect Core 1.0", August 2015.

[OpenID.Federation]

Hedberg, R., Jones, M.B., Solberg, A.Å., Bradley, J., De Marco, G. and V. Dzhuvinov, "OpenID Federation 1.0".

[SAML2Int]

SAML V2.0 Deployment Profile for Federation Interoperability.

[DSS]

OASIS Standard – Digital Signature Service Core Protocols, Elements, and Bindings Version 1.0, April 11, 2007.

[AuthContext]

RFC-7773: Authentication Context Certificate Extension.