Skip to main content
achu
Staff
Staff
Feb 19, 2025 8:42 AM UTC

Technical Tip: Failed to authenticate user admin because FortiToken Cloud returns error (402)

Description

This article describes the FortiToken Cloud returns error (402) due to the trial license already expired and a prompt for payment is required.

 

The error message is shown FortiGate console:

 

Image-1.png

Scope

FortiGate, FortiToken Cloud.

Solution

Proceed in factory reset or format the device by following this KB article: Technical Tip: Formatting and loading FortiGate firmware image using TFTP

 

Once the factory reset or device format is successful proceed in restoring the backup configuration, make sure to remove the FortiToken Cloud configuration under 'config system admin'.

 

config system admin

    edit "ieadmin"

        set accprofile "super_admin"

        set vdom "root"

        set two-factor fortitoken-cloud  <----- Remove this line and save the configuration file.

         set email-to "test@mail.com"

        set password ENC SH2c5Ljqkl7y6tB170IGEdGimUkf2SlGqY2Ws3hhGjy6IhZmaUk96as2Icr/dk=

    next

end

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024