Skip to main content

Usercube-New-OpenIDSecret

This tool generates a cryptographically secure random client secret and its hash. The name of the executable is: Usercube-New-OpenIDSecret.exe.

Examples​

./Usercube-New-OpenIDSecret.exe
Shared secret for '<generated secret>' is '<hash>'

The output shows the client secret and its hashed version. The secret is displayed only once and can't be provided by the user. Enter the hash in the OpenIdClient configuration.

Secret rotation​

Rotating existing secrets regularly is recommended. To rotate the secret of an OpenIdClient, generate a new secret with this tool, replace the HashedSecret in the OpenIdClient configuration, and update the secret on the client side.

Arguments​

Argument NameDetails
--log-level optionalType LogLevel Description Level of log information among: Verbose; Debug; Information; Warning; Error; Fatal.