Skip to main content
kiri
Staff & Editor
Staff & Editor
June 9, 2025

Technical Tip: How to provision FortiToken with a third-party 2FA app (Google, Microsoft Authenticator)

  • June 9, 2025
  • 1 reply
  • 4789 views
Description

This article describes how to provision a mobile FortiToken with a third-party 2FA app, such as Google or Microsoft Authenticator, when the FortiToken Mobile app cannot be used or enforced.


This method is an exception: end users should primarily use the FortiToken Mobile app. Push notifications are not supported with these Tokens.

Scope FortiAuthenticator v6.6.3 and newer, Mobile FortiToken.
Solution
  1. Adjust provisioning settings: Under System → Auth → User Account Policies → Tokens, change FortiToken Mobile Provisioning Time Step from the default 60 sec to 30 sec. This is a global setting, and all provisioned tokens will use 30 sec going forward.

 

2.png

 

  1. Switch the Token to third-party provisioning mode, and a couple of General API usage are required, as shown below.
  • Retrieve the ID of a user:

 

curl -k -v -u "api-adm:NlLLwXApSkRCrmrkg3TYV" -H 'Accept: application/json' "https://10.5.20.234/api/v1/localusers/?format=json&username=test_user3"

 

  • Example response snippet:

..."id": 95,..."username": "test_user3"}]}

 

  • With the user ID, provision a token serial number (SN):

 

curl -k -v -u "api-adm:NlLLwXApSkRCrmrkg3TYV" -X PATCH -d ' {"token_type":"ftm","token_auth":"true","token_serial":"FTKMOB444A28C1E8"}' -H 'Content-Type: application/json' https://10.5.20.234/api/v1/localusers/95/?returnseed=2 

 

  1. Verify Token provisioning in the FortiAuthenticator admin GUI: Navigate under System → Auth → User Mgmt → Local Users. The Activation delivery method should now be a Third-party app.

 

1.png

 

  1. Select Validate Token to confirm the setup.
  2. Provision with Google or Microsoft Authenticator:
  • Scan the QR code to complete the setup.
  • Alternatively, if QR code provisioning is not possible, use the Token SN as the account name and the Activation Code as the key/seed/secret to manually provision it.

 

qr.png

 

  1. Activate the Token: Input the generated code and select 'Submit'. Scroll down and select 'Save'.

 

tk.png

 

  1. Check Auth → User Mgmt → FortiTokens, Token status is now Assigned:


FTKMOB444A28C1E8 FortiToken Mobile (3rd-party app) Assigned 2025-06-09T08:04:30 Local: test_user3 TOTP 6 -1 30

    1 reply

    FlavioB1
    Explorer III
    June 2, 2026

    Hi

    Any support possible on this?

    I’m doing it on a FAC 6.6.9 and after retrieving the user ID, I can’t get it to provision the token. The output is missing the “activation_XXX” parameters and also the “token_serial”, “token_auth” and “token_type” are empty.

    Thanks!

    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.
    Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!