cn:ccr:aai:doc:2fa-en:req
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| cn:ccr:aai:doc:2fa-en:req [2024/10/16 12:56] – [Ente Auth] monducci@infn.it | cn:ccr:aai:doc:2fa-en:req [2025/03/21 08:09] (current) – monducci@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Instructions for Activating Two-Factor Authentication ====== | ||
| + | **WARNING: | ||
| + | |||
| + | **WARNING: | ||
| + | |||
| + | ===== Prerequisites ===== | ||
| + | - Active role | ||
| + | - An application for generating a Time-based One-Time Password (TOTP) | ||
| + | |||
| + | ==== Active Role ==== | ||
| + | |||
| + | Only employees, associates, and guests can request two-factor authentication. | ||
| + | |||
| + | ==== Application ==== | ||
| + | |||
| + | Before starting the token acquisition process, it is essential to **install** and properly **configure** an application compatible with our infrastructure, | ||
| + | |||
| + | The only compatible applications are: | ||
| + | |||
| + | * **privacyIDEA** Authenticator: | ||
| + | * **Ente Auth**: the first choice. Multi-platform. It is also recommended by CERN, which can make life easier for CERN users. | ||
| + | * **BitWarden**: | ||
| + | |||
| + | **WARNING: | ||
| + | |||
| + | **WARNING: | ||
| + | |||
| + | Detailed instructions on how to install and configure these three applications are available [[cn: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Enabling Two-Factor Authentication ===== | ||
| + | |||
| + | The two-factor authentication activation process consists of two seemingly separate actions that are closely connected: | ||
| + | - Generating a **token** (performed by the MFA server); | ||
| + | - Storing the **token** in the application. | ||
| + | |||
| + | **Note** | ||
| + | Since during the first week of optional two-factor activation we observed a significant number of failed token storage attempts, we modified the process by adding a verification step to ensure the token is correctly stored and used before activating two-factor authentication. | ||
| + | |||
| + | ==== Token Generation ==== | ||
| + | |||
| + | To generate a token, log in to the web service at: | ||
| + | |||
| + | https:// | ||
| + | |||
| + | using your INFN-AAI credentials. After entering your credentials in the standard INFN login window, | ||
| + | {{ : | ||
| + | |||
| + | you will be asked to confirm access: | ||
| + | {{ : | ||
| + | |||
| + | On your first login, the only available action will be to request a token. | ||
| + | |||
| + | In the window, select: **Enroll Token**. | ||
| + | {{ : | ||
| + | |||
| + | Next, specify the following values: | ||
| + | |||
| + | Enroll a new token | ||
| + | - TOTP: Time-based One-Time Password | ||
| + | Token data | ||
| + | - OTP length: 6 | ||
| + | - Timestep: 30 | ||
| + | and click the **Enroll Token** button. | ||
| + | {{ : | ||
| + | |||
| + | The next screen will show you a QR code to import into your app. | ||
| + | {{ : | ||
| + | |||
| + | By clicking the link "The OTP Key," you can view the " | ||
| + | {{ : | ||
| + | |||
| + | **WARNING: | ||
| + | |||
| + | If you've chosen an app that can read a QR code, you can simply scan it to import the information (instructions for some applications are available [[cn: | ||
| + | |||
| + | ==== Enrollment Verification ==== | ||
| + | |||
| + | In this window, you will find a **" | ||
| + | |||
| + | The token acquisition process will only complete if this final verification step is successful. | ||
| + | |||
| + | The session timeout on this webpage is 15 minutes, so it’s essential to save the information before the timeout expires. | ||
| + | |||
| + | If the TOTP produced by your application is incorrect (or you mistype it), an error popup will appear as shown in the image, and you can correct the TOTP or switch to a supported app. | ||
| + | {{ : | ||
| + | |||
| + | If you cannot enter the correct TOTP but have saved the information, | ||
| + | {{ : | ||
| + | |||
| + | and entering the correct TOTP above the blue " | ||
| + | {{ : | ||
| + | |||
| + | Completing the token acquisition process: | ||
| + | {{ : | ||
| + | |||
| + | and you will receive a confirmation email. | ||
| + | |||
| + | ==== Importing the QR Code ==== | ||
| + | |||
| + | The simplest way to register the token in your app is to use a smartphone (or tablet) app capable of using the camera to import the QR code data. | ||
| + | |||
| + | === Ente Auth === | ||
| + | |||
| + | The Ente Auth smartphone app has a start page with a "Scan a QR Code" button: | ||
| + | {{ : | ||
| + | |||
| + | This button directly accesses the camera, and as soon as the QR code is scanned, it generates a TOTP. | ||
| + | {{ : | ||
| + | |||
| + | If you've set up an account on ente.io as described in [[cn: | ||
| + | |||
| + | [[cn: | ||
| + | |||
| + | === Bitwarden (mobile app, with camera access) === | ||
| + | |||
| + | Select: Set up TOTP. | ||
| + | {{ : | ||
| + | |||
| + | Allow the app to use the camera. | ||
| + | {{ : | ||
| + | |||
| + | Assign a name to the token and save it. | ||
| + | {{ : | ||
| + | |||
| + | The saved token will then be displayed like this: | ||
| + | {{ : | ||
| + | |||
| + | === PrivacyIdea === | ||
| + | |||
| + | To import the QR code into the PrivacyIdea app, simply click the central icon and scan the QR Code. | ||
| + | {{ : | ||
| + | |||
| + | [[cn: | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== Manual Configuration: | ||
| + | |||
| + | The QR code contains a series of necessary details for properly configuring the TOTP generator. If you wish to use a TOTP generator that doesn’t support QR codes (like supported PC apps or the web interface to the INFN " | ||
| + | |||
| + | The string must be formed by concatenating: | ||
| + | |||
| + | * %%otpauth:// | ||
| + | * <The BASE32 encoded OTP Key> | ||
| + | * & | ||
| + | |||
| + | The string should look like this: | ||
| + | |||
| + | < | ||
| + | otpauth:// | ||
| + | </ | ||
| + | |||
| + | If you chose a 60-second period or | ||
| + | |||
| + | an 8-digit TOTP, change the period and digits to match your choice. | ||
| + | |||
| + | Below the detail of the manual configuration for the supported apps. | ||
| + | |||
| + | ==== Ente Auth ==== | ||
| + | |||
| + | Ente Auth can import a key from a file in text format. | ||
| + | |||
| + | You must therefore create a text file and insert the string obtained from the concatenation of the above information into one line. | ||
| + | |||
| + | After creating and saving the file | ||
| + | - open the application | ||
| + | - pressing on the three lines at the top left (open navigation menu) | ||
| + | - open the down arrow next to the " | ||
| + | - select: " | ||
| + | - choose: "Plain text" | ||
| + | - press: " | ||
| + | - select the file created previously | ||
| + | |||
| + | If the operation was successful, a window will appear saying: | ||
| + | |||
| + | Yay! | ||
| + | |||
| + | You have imported 1 codes! | ||
| + | |||
| + | [[cn: | ||
