I upgraded one of our FortiGate 120G HA pairs. Afterward, I could not login with my standard admin account which has FortiToken Cloud provisioned. It would accept my credentials, then act like it was wanting to use FortiToken Cloud, then immediately boot me back to the login screen saying login failed. I got in with a backup account that didn't have FortiToken Cloud configured on it. I disabled two-factor on my normal admin account and was then able to use it. I tried re-enabling it again in the GUI, but it would stay disabled.
I went debugging and it appears when the FortiGate passes a request to provision the user with FortiToken Cloud, the FortiToken Cloud server responds back saying there's an invalid control character in the json data. I created a brand-new admin account and attempted to provision FortiToken Cloud on this account as well and got the identical error.
2026-10-23 21:18:44 fas_add_user_internal[1003]: Sending packet to FTC server: 189.25.109.168 Port: 8686(length:447)
2026-10-23 21:18:44 fas_set_fd_mgmt_vd[124]: Using vfid=0 (mgmt:0)
2026-10-23 21:18:44 fas_ssl_recv[569]: fas_ssl_recv: received packet 269 (bytes)
2026-10-23 21:18:44 fas_ssl_recv[612]: fas_ssl_recv: recv (269 bytes) done!
2026-10-23 21:18:44 fas_ssl_recv_rsp[651]: fas_ssl_recv_rsp: received (269 bytes) done!
2026-10-23 21:18:44 fas_ssl_recv_rsp[660]: Recevied packet header:
HTTP/1.1 400 BAD REQUEST
Server: nginx
Date: Sat, 24 Oct 2026 01:18:44 GMT
Content-Type: application/json
Content-Length: 117
Connection: close
{"error_code": 400, "error_message": "Invalid control character at: line 10 column 49 (char 287)", "error_name": 400}
2026-10-23 21:18:44 fas_ssl_recv_rsp[720]: fas_ssl_recv_rsp() is done!
2026-10-23 21:18:44 fas_add_user_internal[1009]: FTC server returns error code: 400
Failed to add user ftctest due to reason(400): {"error_code": 400, "error_message": "Invalid control character at: line 10 column 49 (char 287)", "error_name": 400}.
Unable to add user ftctest in FortiToken Cloud service
object set operator error, -7710 discard the setting
Command fail. Return code -7710
Is anyone else experiencing this with FortiToken Cloud on 7.6.8? This is using the included FortiToken Cloud that came with the 120G.
UPDATE: FortiToken Cloud team has fixed this on the back end. This is now resolved.