The metadata defines the technical configuration of the e-service and the information visible in the user interface:
What is displayed as the name of the e-service in the user interface of Suomi.fi e-Identification
Who receives bulletins related to Suomi.fi e-Identification
Which identification tokens are permitted
What data is transmitted on the user
Which redirection addresses are used
Which algorithms are used to sign and encrypt OIDC integration messages
The metadata is divided into two parts:
Data related to identification: data visible to the end user and required for support activities (name of the service, contact persons, privacy statement).
Data related to the OIDC integration: a technical configuration that Suomi.fi e-Identification uses for validating identification requests, token requests and logouts.
The metadata of an e-service (RP, Relying Party) must be registered in Service Management before the deployment of the OIDC-interface.
Below is an example of metadata in JSON format. All fields are obligatory regardless of whether all features are used.
Metadata example (All fields obligatory)
{ "service_name_fi":"palvelun nimi suomeksi", "service_name_sv":"palvelun nimi ruotsiksi", "service_name_en":"palvelun nimi englanniksi", "service_name_sms":"palvelun nimi koltansaameksi", "service_name_smn":"palvelun nimi inarinsaameksi", "service_name_sme":"palvelun nimi pohjoissaameksi", "service_login_page": "https://esimerkkipalvelu.tunnistus.fi/login", "privacy_statement_url":"https://esimerkkipalvelu.tunnistus.fi/privacystatment.html", "vtj_verification_required":"true", "contact_person_emails":["email1@example.com","email2@example.com"], "client_id":"esimerkkipalvelu_rp", "default_acr_values":["http://ftn.ficora.fi/2017/loa3","http://ftn.ficora.fi/2017/loa2", "http://eidas.europa.eu/LoA/high", "http://eidas.europa.eu/LoA/substantial", "urn:oid:1.2.246.517.3002.110.999", "urn:oid:1.2.246.517.3002.110.7"], "scope":"openid eidas finnishauthenticator names domesticaddress municipality protectionorder mail finnishcitizenship", "jwks_uri":"https://esimerkkipalvelu.tunnistus.fi/jwks_uri", "redirect_uris":["https://esimerkkipalvelu.tunnistus.fi/redirect_uri", "https://esimerkkipalvelu.tunnistus.fi/redirect_uri2"], "response_types":["code"], "post_logout_redirect_uris":["https://esimerkkipalvelu.tunnistus.fi/postlogout", "https://esimerkkipalvelu.tunnistus.fi/postlogout2"], "frontchannel_logout_uri":"https://esimerkkipalvelu.tunnistus.fi/frontlogout", "frontchannel_logout_session_required":"true", "grant_types":["authorization_code"], "id_token_encrypted_response_alg":"ECDH-ES", "id_token_encrypted_response_enc":"A256GCM", "id_token_signed_response_alg": "ES256", "token_endpoint_auth_method":"private_key_jwt" }
The fields of metadata are linked to the other phases of the OIDC integration:
Scopes and claims (permitted values of the scope field and the access licence levels related to them)
Field title
Field in a JSON file
Field type
Values allowed for the field
Description
Name of the service in Finnish
service_name_fi
Text field (TextInput)
All of the alphabet, numbers + some special characters. Allowed special characters: (),.-_' In addition, letters related to the Sámi language are allowed. A maximum of 100 characters.
Visible to the end user in connection with identification when the language of the user interface is Finnish.
Name of the service in Swedish
service_name_sv
Text field (TextInput)
Same as above
Visible to the end user in connection with identification when the language of the user interface is Swedish.
Name of the service in English
service_name_en
Text field (TextInput)
Same as above
Visible to the end user in connection with identification when the language of the user interface is English.
Name of the service in Skolt Sámi
service_name_sms
Text field (TextInput)
Same as above
Visible to the end user in connection with identification when the language of the user interface is Skolt Sámi.
Name of the service in Inari Sámi
service_name_smn
Text field (TextInput)
Same as above
Visible to the end user in connection with identification when the language of the user interface is Inari Sámi.
Name of the service in Northern Sámi
service_name_sme
Text field
(TextInput)
Same as above
Visible to the end user in connection with identification when the language of the user interface is Northern Sámi.
Login page of the service
service_login_page
Web address
The login page of the service or environment, where you can start identification. Used to support problem solving.
Address of the service's privacy statement
privacy_statement _url
Web address
Link to the service’s privacy statement.
Is information from the Population Information System (PIS) required for identification?
vtj_verification_ required
Checkbox (Checkbox)
true, false
Identification with the value ‘false’ is possible even if there is a problem with retrieving PIS data, but we only transmit the data that we received from the identification token.
Identification with the value ‘true’ is not possible if PIS data cannot be retrieved.
Contact person's email address
contact_person_ emails
List of email addresses
The email addresses of the persons who will be contacted, if necessary, during the deployment or if there are problems with the data in the metadata. Bulletins concerning Suomi.fi e-Identification will be sent to these email addresses.
The following fields define the technical implementation of the e-service’s OIDC integration. These values must correspond accurately to the implementation of the e-service. For example, the redirect_uri value used in an identification request must be found in the redirect uris list, or Suomi.fi e-Identification will reject the request.
General settings
Kentän otsikko
Kenttä JSON-tiedostossa
Kentän tyyppi
Kentän sallitut arvot
Kuvaus
The unique identifier of the environment
client_id
Text field (TextInput)
Upper and lower case letters, numbers and the following special characters `-_`
At least 10 characters, a maximum of 255 characters.
The unique identifier of the environment.
Must be unique, i.e. no other environment may have the same identifier. The recommendation is to use the name of the e-service.
A list of the data to be transmitted on the end user. The level of the data permit (limited, medium, extensive) determines what data on the end user can
Things to consider
The values selected in the default_acr_values field have a direct impact on which identification tokens the user can use in identifying themselves and what value is returned in the id_token’s acr claim.
The values entered in the scope field determine what data the e-service may request in the identification request in the first place. If a scope that is not allowed in the metadata is requested in the identification request, Suomi.fi e-Identification will automatically remove the scope from the response without sending an error message.
The web address that contains the public keys of the environment in JSON format. The keys must always be available so that identification requests and token-interface requests can be authenticated.
Permitted redirection addresses for the identification response
redirect_uris
List of web addresses
A list of web addresses to which the end user may be directed after identification. The identification request specifies which of these redirection addresses is used.
Authorisation method
response_types
RadioButton (RadioButton)
code
Defines what is returned in the identification response Suomi.fi e-Identification uses `code`. This means that the end user’s successful identification returns an authorisation code that will be used to retrieve personal data from the token interface.
Permitted redirection addresses for logout.
post_logout_redire ct_uris
List of web addresses
A list of web addresses to which the user can be directed when logging out.
The logout request defines which of these redirection addresses will be used.
Address of the logout request for a single logout
frontchannel_logo ut_uri
Web address
The address to which the logout request is sent when the single logout has been initiated from another service.
Send the details of the session in connection with logging out
frontchannel_logo ut_session_require d
Check box (Checkbox)
true, false
With the value ‘false’, session data are not sent in the logout request.
With the value ‘true’, session data are sent in the logout request when the single logout has been initiated from another service.
PKCE code challenge
code_challenge
Text field (TextInput)
The code challenge used in PKCE to verify the authenticity of the code_verifier to be provided later in the token request. The parameter is optional, but if entered, the token request must include the corresponding code_verifier value.
PKCE method
code_challenge_ method
Text field (TextInput)
S256
Specifies the PKCE used to check whether the code_challenge and code_verifier match. The supported method is S256.
Things to consider
The addresses used in identification and logout requests must be found in the redirect_uris and post_logout_redirect_uris lists. Suomi.fi e-Identification does not direct the response to addresses other than ones registered in advance.
The keys published at jwks_uri must be constantly available because Suomi.fi e-Identification uses them to retrieve the keys to verify the signature of the identification request and the client_assertion of the token request. If the address does not respond, the identification and token requests will fail. The key rotation must be carried out in such a way that the old and the new key will both be available during the transition period.
frontchannel_logout_uri and frontchannel_logout_session_required are linked to the logout situation in single sign-ons (SSO), in which Suomi.fi e-Identification calls this address in a hidden iframe element. For more details, see the chapter about front-channel logout in single sign-ons (SSO) on the page Logout request and response in the OIDC interface.
Suomi.fi e-Identification supports the request object of the identification request only in inline format (signed request JWT). The request_uri parameter in accordance with the OIDC standard, in which the request object is retrieved from the web address, is not supported. The e-service does not need to register or maintain request_uri addresses.
The supported response modes (response_mode) are query (default, used in all examples of this documentation) and form_post. If the e-service wants to use the form_post mode, it will be transmitted in the {{response_mode}} parameter of the identification request. There is no separate metadata field for this.
The optional display parameter of the identification request supports only the value page. Other display values of the OIDC standard (popup, touch, wap) are not supported.
Field title
Field in a JSON file
Field type
Values allowed for the field
Description
Data transmission process
grant_types
Radio button (RadioButton)
authorization_code
The way of calling the token interface.
Suomi.fi e-Identification uses `authorization code`. This means that the token interface is called using an authorization code that has been received as a response to the identification request.
The encryption algorithm used to deliver the encryption key of the token interface.
Encryption algorithm of the response from the token interface
id_token_encrypte d_response_enc
Radio button (RadioButton)
A128GCM A256GCM
The encryption algorithm used to encrypt the response from the token interface.
Signature algorithm of the response from the token interface
id_token_signed_r esponse_alg
Radio button (RadioButton)
RS256 RS512 PS256 PS512 ES256
The signing algorithm used to sign the response from the token interface.
Authorisation method for the environment
token_endpoint_a uth_method
Radio button (RadioButton)
private_key_jwt
The way of verifying requests in the environment.
Suomi.fi e-Identification uses `private_key_jwt`. This means that the validation of the requests and the encryption of the responses are carried out using keys which are found at the address of the public keys of the environment (jwks_uri).
PKCE code verifier
code_verifier
Text field (TextInput)
The code verifier used in the PKCE, which is submitted in a token request. The code verifier is then checked to ensure it matches the code_challenge previously provided in the identification request.
The token_endpoint_auth_method value private_key_jwt means that the e-service proves its identity with a signed client assertion (client_assertion) instead of the traditional client secret. The public key of the e-service must therefore be available at the address jwks_uri.