Skip to content

Tool for update HelseId Client secrets (Jwk)

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: In order for an application to use the tool the Client must have registered nhn:selvbetjening/client scope. The scope nhn:selvbetjening/client to klientsystem must be added to the client system and klientkonfigurasjon
  2. Generate new keys: The tool generate two new json web keys (jwk), private and public, with the command generatekey. The public key is used by HelseID to validate the client assertion. The private key is used by the application to generate a client assertion token.
  3. Update client with publik key: After new keys are generated HelseId should be updated with the new public key with the command updateclientkey.
  4. Update application with private key: The application configuration must be updated with the new private key.