Skip to main content
rvillaroman
Staff & Editor
Staff & Editor
August 22, 2025

Technical Tip: How to use FortiPAM secret to generate MFA on Azure Portal

  • August 22, 2025
  • 0 replies
  • 464 views
Description

This article describes how to use a FortiPAM secret to generate MFA for Azure portal login.

Scope

FortiPAM v1.4.0 and later

Solution

Here are the steps  to add Azure MFA to a FortiPAM secret:

  1. Get the token seed on the Azure user account.

 

TOTP-seed.png

 

  1. Import the TOTP shared key to the FortiPAM as a third-party token.

 

TOTP.PNG

 

Note:

The shared key must be converted to all uppercase (standard base32) to become valid. 

 

  1. If it still shows as invalid even after converting the shared key to all uppercase, try to import it on the CLI.

 

config secret data
    edit secret_xxx
        config totp
            set status enable
            set use-template-setting disable
            set shared-key GCCFNJJVMFRTZ5MY
        end
    end
end

 

  1. After successfully adding the shared key to the FortiPAM secret, it will generate an MFA verification code.

 

 

verification code.png

 

  1. Import the code for the Azure account MFA verification.

 

auth app.png

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!