security-requirements May 2026
Lindström Informational [Page]
Published:
Author:
M. Lindström
The Swedish Agency for Digital Government (Digg)

Sweden Connect - Security Requirements - draft 00

Abstract

This specification defines security requirements for participants in the Sweden Connect identity federation. It establishes baseline requirements for transport protection, cryptographic algorithms, key lengths, and key rollover that apply to both the SAML and the OpenID Connect parts of the federation. The requirements herein extend, and are intended to be read together with, the existing Sweden Connect SAML and OpenID Connect profiles.

Table of Contents

1. Introduction

Sweden Connect operates an identity federation comprising both a SAML 2.0 federation and an OpenID Connect federation. Participants of either federation include Identity Providers, OpenID Providers, Service Providers, Relying Parties, and other supporting entities, all of which rely on cryptographic mechanisms to authenticate peers, protect messages in transit, and assert claims about subjects.

To ensure a consistent and adequate level of security and interoperability across the federation, a common set of requirements is needed for how transport security is applied, which cryptographic algorithms and key lengths are acceptable, and how keys are rolled over without disrupting other parties.

This specification collects these requirements in one place. It is intended to be read together with the "Sweden Connect SAML Deployment Profile" [SAML.SC.Profile] or the "OpenID Connect Profile for Sweden Connect" [OIDC.SC.Profile], extending and, where applicable, tightening the requirements stated in those documents.

1.1. Requirements Notation and Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. General Security Requirements

All transactions MUST be protected in transit by TLS as described in [NIST.800-52].

For the Sweden Connect SAML federation, all parties MUST conform to the applicable recommendations in [SAML.Security].

For the Sweden Connect OpenID Connect federation, all parties MUST conform to the applicable recommendations in section 16, "Security Considerations", of [RFC6749], and to those found in "OAuth 2.0 Threat Model and Security Considerations" [RFC6819].

3. Cryptographic Requirements

All entities compliant with this profile MUST follow the guidelines in [NIST.800-131A] regarding the use of algorithms and key lengths. Specifically, the following requirements apply to signature and encryption keys:

3.1. SAML Algorithm Requirements

Participants in the Sweden Connect SAML federation MUST comply with the algorithm requirements given in Section 8 of [SAML.SC.Profile].

3.2. OpenID Connect Algorithm Requirements

Section 7.1 of [OIDC.Sweden.Profile] defines cryptographic requirements that are extended by this specification in order to facilitate federation interoperability.

Participants in the Sweden Connect OpenID Connect federation MUST comply with the algorithm requirements specified below.

All entities MUST support validation of signatures using any of the following algorithms:

All entities MUST support encryption using any of the following algorithms:

An entity holding an RSA protocol key MUST support decryption using any of the following algorithms:

An entity holding an EC protocol key MUST support decryption using the following algorithm:

4. Key Rollover

A participant in the Sweden Connect federation wishing to update any of its keys MUST do so without disrupting other parties in the federation. This is especially important for SAML Identity Providers and OpenID Connect Providers.

The following requirements regarding key rollover apply:

5. Normative References

[NIST.800-131A]
Barker, E. and A. Roginsky, "NIST Special Publication 800-131A Revision 2, "Transitioning the Use of Cryptographic Algorithms and Key Lengths"", , <https://doi.org/10.6028/NIST.SP.800-131Ar2>.
[NIST.800-52]
McKay, K. and D. Cooper, "NIST Special Publication 800-52, Revision 2, "Guidelines for the Selection, Configuration, and Use of Transport Layer Security (TLS) Implementations"", , <https://doi.org/10.6028/NIST.SP.800-52r2>.
[OIDC.SC.Profile]
Lindström, M. and S. Santesson, "OpenID Connect Profile for Sweden Connect", , <https://docs.swedenconnect.se/technical-framework/latest/OpenID_Connect_Profile_for_Sweden_Connect.html>.
[OIDC.Sweden.Profile]
Lindström, M., "The Swedish OpenID Connect Profile", , <https://www.oidc.se/specifications/swedish-oidc-profile-1_0.html>.
[OpenID.Federation]
Hedberg, R., Jones, M. B., Solberg, A., Bradley, J., Marco, G. D., and V. Dzhuvinov, "OpenID Federation 1.0", , <https://openid.net/specs/openid-federation-1_0.html>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC5480]
Turner, S., Brown, D., Yiu, K., Housley, R., and T. Polk, "Elliptic Curve Cryptography Subject Public Key Information", RFC 5480, DOI 10.17487/RFC5480, , <https://www.rfc-editor.org/info/rfc5480>.
[RFC6749]
Hardt, D., Ed., "The OAuth 2.0 Authorization Framework", RFC 6749, DOI 10.17487/RFC6749, , <https://www.rfc-editor.org/info/rfc6749>.
[RFC6819]
Lodderstedt, T., Ed., McGloin, M., and P. Hunt, "OAuth 2.0 Threat Model and Security Considerations", RFC 6819, DOI 10.17487/RFC6819, , <https://www.rfc-editor.org/info/rfc6819>.
[RFC7518]
Jones, M., "JSON Web Algorithms (JWA)", RFC 7518, DOI 10.17487/RFC7518, , <https://www.rfc-editor.org/info/rfc7518>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[SAML.SC.Profile]
Lindström, M. and S. Santesson, "Deployment Profile for the Swedish eID Framework", , <https://docs.swedenconnect.se/technical-framework/latest/02_-_Deployment_Profile_for_the_Swedish_eID_Framework.html>.
[SAML.Security]
Hirsch, F., Philpott, R., and E. Maler, "Security and Privacy Considerations for the OASIS Security Assertion Markup Language (SAML) V2.0", , <https://docs.oasis-open.org/security/saml/v2.0/saml-sec-consider-2.0-os.pdf>.

Appendix A. Notices

Copyright (c) The Swedish Agency for Digital Government (Digg), 2015-2026. All Rights Reserved.

Appendix B. Document History

[[ To be removed from the final specification ]]

-00

Author's Address

Martin Lindström
The Swedish Agency for Digital Government (Digg)