Technical description (OIDC)
These instructions describe how to activate the Suomi.fi OIDC interface (OpenID Connect) in the e-service:
- Phases of identification
- Required metadata
- Personal data attributes used
- Avainten hallinta.
The technical implementation is based on the public OIDC-core specificationOpens in a new window., which contains more detailed descriptions of all technical details in this manual. The interface does not implement all optional sections of the OIDC-core specification.
Software implementing the OIDC protocol must support at least the following features:
- Signing requests and verifying token response signatures
- Decrypting token responses (id token decryption)
- Retrieving public keys from network endpoint (private_key_jwt & jwks_uri)
- Log out using the authentication session identifier (session id, sid)
Start here
If you are integrating Suomi.fi e-Identification for the first time, we recommend that you read the pages in the following order:
- Metadata in the OIDC interface: before you start, register the technical configuration of the e-service and the data visible to the end user. Identification request and response in the OIDC interface: directing the user to identify themselves and reception of the authorization code.
- Token request and response in the OIDC interface: changing the authorization code to personal data.
- Logout request and response in the OIDC interface: ending a user's session in the e-service and in Suomi.fi e-Identification.
Other important pages
- Scopes and claims: supported scopes and related personal data attributes (claims) and access levels.
- Identification tokens: supported identification tokens and their corresponding Level of Assurance (ACR).
- Rotation of Suomi.fi e-Identification keys in the OIDC interface: instructions on how Suomi.fi e-Identification rotates its own signature keys and what this requires of the e-service.
- Rotation of e-service keys in the OIDC interface: rotation of e-service’s own keys and address content and availability requirements for public keys.
If a term or abbreviation is unclear, first check it on the OIDC Glossary page. The page contains a glossary of terms that are difficult to translate (e.g. client_assertion, authorization code).
Identification in the OIDC interface
Identification in the OIDC interface is based on the authorization code flow.
The e-service creates a signed identification request and directs the user's browser to Suomi.fi e-Identification.
The user logs in and Suomi.fi e-Identification directs the user to the e-service with the authorization code.
The e-service changes the authorization code to personal data and logs the user into the e-service.

Logging out can take place in two directions:
- Initiated by the e-service: Here, the e-service directs the user’s browser to the end-session endpoint, and after a successful logout, the user is directed back to the e-service.
- Started by Suomi.fi e-Identification: If the user has an active single sign-on sessions in several e-services (SSO), Suomi.fi e-Identification will also notify the other e-services in session of the logout with separate call. In this case, the call is made to the e-service’s frontchannel_logout_uri, which has been specified in the e-service metadata.
