Suomi.fi for Service Developers
Go directly to contents.

Token request and response in the OIDC interface

A token request can be sent after the user has identified themselves and the e-service has received an authorization code in response to the identification request. The e-service uses the token request to replace the authorization code with personal data by calling the token endpoint from the server side (back-channel call, not through a browser).

Successful processing of the token request requires that the e-service prove its identity with a signed client assertion, which has been generated using the private key of the e-service. This mechanism (private_key_jwt) replaces the use of the traditional client secret and improves the security of identification.

Prerequisites to be met before making a token request:

  • The e-service has an asymmetric key pair for signing a client assertion
  • The e-service has received an authorization code (code) in connection with the response to the identification request
  • The redirect address (redirect_uri) is the same as the redirect address in the identification request

Updated: 24/11/2026

Are you satisfied with the content on this page?