---
title: "Tofu – Two Factor Authenticator (TOTP) | macOS"
description: "L’applicazione Tofu – Two Factor Authenticator (TOTP) consente di generare codici temporanei di verifica per l’autenticazione a più fattori (MFA) ai servizi Microsoft 365 dell’Università di Pisa.\nÈ una soluzione compatibile con computer macOS e può essere utilizzata come alternativa alle app mobili (Microsoft Authenticator o Google Authenticator) per accedere in modo sicuro anche senza smartphone."
url: "https://it.unipi.it/en/configurazioni/multi-factor-authentication/tofu-two-factor-authenticator-totp-macos-2/"
updated: "2026-05-13"
category: "Security and Privacy / Multi-Factor Authentication | MFA"
---

# Tofu – Two Factor Authenticator (TOTP) | macOS

The application **Tofu – Two Factor Authenticator (TOTP)** allows you to generate **temporary verification codes** for multi-factor authentication (MFA) to the **Microsoft 365** services of the University of Pisa.
It is a solution compatible with **macOS** computers and can be used as an alternative to mobile apps (*Microsoft Authenticator* or *Google Authenticator*) for secure access even without a smartphone.

## Installation and Configuration

The following procedure describes how to install and configure Tofu on Mac for generating the TOTP codes necessary for accessing Microsoft services.

1. Connect to the website [https://tofuauth.com/](https://tofuauth.com/)
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-01.png)
2. Use the **Download on the App Store** button to download the app. Proceed with the installation in the standard mode provided by the **macOS** operating system (you need to have a valid account to access the App Store repository for the app download).
   **Note:** during the procedure, a warning may appear because the app is not yet verified for macOS; however, you can continue and complete the operation without any issues.
3. After installing the app, launch it by double-clicking (the app is available in the Applications folder.
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-02.png)

   Before completing the installation of Tofu TOTP, it is necessary to carry out some preliminary operations on Office 365:
4. Access the **Personal Account** section of Office 365 at: [https://myaccount.microsoft.com/](https://myaccount.microsoft.com/) (if prompted, proceed with authentication using university credentials).
5. In the **Security Information** pane (highlighted in red in the image), click on **Update your information**.
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-03.png)
6. Select **+ Add access method**.
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-04.png)
7. Click on **Next**.
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-05.png)
8. Click on I want to use a different authentication app.
   ![](https://it.unipi.it/wp-content/uploads/2025/10/tofu-06.png)
9. In the **Configure Account** window, press **Next** and then click on **Can't scan the image?**
   ![](https://it.unipi.it/wp-content/uploads/2025/11/tofu-07-300x277-1.png)
10. To link Office 365 and the authentication app, the strings related to **Account name** and **Private key** (on the screen, the strings are obscured by gray rectangles) must be entered into two specific fields of the **Tofu** app*.*
    ![](https://it.unipi.it/wp-content/uploads/2025/11/tofu-08.png)
11. Then open the Tofu app and follow in numerical order the workflow highlighted on the screen to establish the actual pairing between the TOTP app and the Microsoft 365 authentication system. In step 3 of the flow, the fields to fill in are **name** and **secret** (it is suggested to use the appropriate icons for copy and paste).
    ![](https://it.unipi.it/wp-content/uploads/2025/11/tofu-09-723x1024-1.png)

At the end of the procedure, the new authentication method will appear in the list in the **Security Information** window of your security profile on Microsoft 365.

## Access Issues

For any access issues or support in using two-factor authentication (2FA), you can contact the [relevant IT support center](https://it.unipi.it/en/it-help-en/).
