Created on
04-03-2024
12:54 AM
Edited on
09-02-2025
10:25 PM
By
Anthony_E
Description |
This article describes how FortiToken is used as a two-factor authentication on FortiGate. To use the FortiToken on FortiGate, it is necessary to note:
For instance, in the below FortiToken debugging output, the FortiToken FTKMOB947FDC1754 is not working since the license of this FortiToken has been registered under a different FortiGate serial number. Therefore, the error message 'token does not belong to the product' appears:
FGT (vdom) # edit root FGT (root) # 2024-03-30 04:10:03 ftm_cfg_provision_token[417]:provision token: FTKMOB947FDC1754 POST /SoftToken/Provisioning.asmx/Process HTTP/1.1 { "d": { "__type": "SoftToken.ProvisionRequest", "__version": "4", "__device_version": "7.0", "__device_build": "2573", "serial_number": "FG140E4Q17000494", "__clustered_sns": [ { "sn": "FG140E4Q17000494" }, { "sn": "FG140E4Q17000407" } ], "tokens": [ { "token": "FTKMOB947FDC1754", "seed": "A84E2CAAD3BCEA970E05DC1A9B7BD2D562622F4A", "code_expire": 4320, "type": "totp", "period": 60, "digits": 6 } ] } } 2024-03-30 04:10:04 ftm_fc_comm_recv_response[277]:receive packet success. {"d":{"__type":"SoftToken.ProvisionResponse","__version":"4","serial_number":"FG140E4Q17000494", "__device_version":"7.0", "__device_build":"2573","__clustered_sns":[{"sn":"FG140E4Q17000407","error":"Product is not registered"},{"sn":"FG140E4Q17000494","error":null}], "tokens":[{"token":"FTKMOB947FDC1754", license":null,"token_activation_code":null,"qr_code":null,"code_expire":null,"error":{"error_code":31,"error_message":"token does not belong to product"}}],"result":0,"error":{"error_code":17,"error_message":"no valid token found"}}}
This is how the referenced error appears in the GUI, as shown below"
|
Scope | FortiGate. |
Solution |
Open a ticket with the Customer Service team to transfer/register the FortiToken mobile license under the FortiGate serial number (Master serial number in case of HA cluster) that is supposed to be activated on it.
Once the FortiToken mobile license has been registered under the correct FortiGate serial number by Customer Service (Customer Service ticket), go to FortiGate and activate the FortiToken mobile license under: User & Authentication -> FortiTokens -> Create New -> Mobile Token, enter the Activation code from the license in the activation code field. -> 'OK'.
Read the links below for more information regarding the activation of the FortiToken Mobile license on FortiGate via GUI or CLI:
Note: Regarding the trial SoftToken, the same error can be seen in the debug. This issue can be solved by deleting the associated Token and importing it one more time.
To import the trial FortiTokens in the CLI, run the following command:
execute fortitoken-mobile import 0000-0000-0000-0000-0000
Note:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.