Unable to generate TOTP code through PSM
156
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:07 PM
Symptom
TOTP MFA Code Generator could not generate MFA code when utilized in a web connection component. It returns the below in the Client dispatcher logs
[08/01/2024 | 15:29:01] | :: | PSMDU018E Dispatcher error: [InnerLoggerUtils :: WriteLine -> Failed to convert MFA secret to Base32String. Make sure the MFA secret is in Base32String or HexString format.]
[08/01/2024 | 15:29:01] | :: | PSMDU018E Dispatcher error: [ExecuteCustomLogic :: Run -> Failed to execute custom logic]
[08/01/2024 | 15:29:01] | :: | PSMDU018E Dispatcher error: [InnerLoggerUtils :: WriteLine -> Failed to convert MFA secret to Base32String. Make sure the MFA secret is in Base32String or HexString format.]
[08/01/2024 | 15:29:01] | :: | PSMDU018E Dispatcher error: [ExecuteCustomLogic :: Run -> Failed to execute custom logic]
Environment
12.6;13.0;13.2;13.1 Privileged Access Manager (PAM, self-hosted);Privilege Cloud PSM;Privileged Session Management (PSM) PSM
Cause
The TOTP connector only supports BASE32Strings or HexString format
Resolution
You need to ensure the value of the device secret is in Base32 or hex string format.
NOTE: Special characters are not allowed.