HelseId Client secrets Tool

Client Secret Tool is a console application that facilitates the secure rotation of client secrets for applications integrated with Helse ID. A user initiates a request to upgrade/rotate the client secret for an application through the tools console interface. The tool provides commands for:

The image below illustrates the steps for updating a client keys (secrets)

Client Secret Management

  1. Update klientkonfiguration scope: The client must have registered the nhn:selvbetjening/client scope in order for an application to use the tool. The scope nhn:selvbetjening/client to klientsystem must be added to the client system and klientkonfigurasjon.
  2. Update client with public key: The HelseId client should be updated with the newly generated keys. This is done with the command updateclientkey.
  3. Update application with private key: The application configuration must be updated with the new private key for seamless integration with the updated client.