MFA

MFA (Multi Factor Authentication) enhances your security by requiring to enter a code (= a second factor, 2-Factor-Authentication/2FA). 

General

What is it?

Why so complicated?

Why so many different MFA types?

Types of second factors

TOTP (Time-based One Time Passwords)
Email codes
Recovery (static) codes

MFA: I-MATH & DM3L

Step 1 - configure MFA

Open https://login.math.uzh.ch

Type Use Pro Contra
TOTP Best for daily use Possible configuration on multiple devices - no single device dependency. TOTP App necessary.
Email If TOTP is not available Email is often already configured on mobile and laptop. Email access necessary.
Recovery Codes Emergency Stupid simple. Codes are quickly exhausted, the last has to be reservered to get new codes.

Optional Step 2 - configure TOTP App

Problems

I cannot configure email codes

Please contact us on support@math.uzh.ch . Possible causes:

  1. There is another account this with email configured as a second factor. This usually happens to secondary accounts only.
  2. You have already started to configure the email, but the address has not been verified. Your MFA configuration must be cleaned.

I have lost access to my device and cannot sign in anymore

Please contact us - we will generate a short-living one-time URL to let you access your account and reconfigure MFA.

I'm stuck at "Something went wrong! Please try again later."

This usually happens when you try to configure an email-based MFA for an email that is already in use. You have to delete cookies in your browser that are associated with the domain login.math.uzh.ch, then try to use another method as a second factor.

MFA Services at I-MATH & DM3L via login.math.uzh.ch

MFA: I-MATH & DM3L - text based setup via SSH

Text based alternative MFA setup option via SSH

If you have no clue what SSH is - skip this section, you won't miss anything.

The second factor is checked by SSH connections. If no second factor is configured yet, you will have a chance to configure one.

Note 1: You can select any text with a mouse and copy to the clipboard with Ctrl+Shift+C.

Note 2: Press Ctrl+C to cancel the authentication at any step.

  1. Recovery codes:
    • mfa-ssh-setup-recovery-codes.png
  2. TOTP: copy the secret to your authenticator (such as KeePassXC)
    • mfa-ssh-setup-totp.png
  3. Email: the email assigned to your account will be used
    • mfa-ssh-setup-email.png

If second factor is already configured, you can use a code from any method. Type email to request an email code - an email is sent automatically only when it is the only method. mfa-ssh-challenge.png

Entering an invalid code does not break the authentication process: you will be given another chance to enter a correct code.

TOTP App

TOTP App Browser Integration Mobile Browser Integration Desktop Pro Contra
KeepassXC
recommended
yes Via browser plugin.

Save extra data.

Optional: Sync to many devices.
Every browser, on all devices, offers the same latest credentials.

 -

Microsoft Authenticator

yes -

Known to many users

Only on mobile.

Only on ONE device.

Google Authenticator yes - -

Only on mobile.

Register a TOTP App

Create a QR Code / TOTP Secret

image.png

Scan the QR Code / copy the secret

image.png

KeePassXC

An easy-to-use, cross-platform password manager with browser integration, strong encryption, zero cloud breach risk, and open-source transparency. You remain in full control of your data, because the vault is just a file. Do whatever you want with it. It is strongly encrypted, allowing you to sync it via the cloud provider of your choice. Because the format is open source, you will never lose access to your identities due to corporate mishaps, vendor lock-in, or a company shutting down.

keepassxc_db_view.png

keepassx.png

Features

For Teams / Orgs:

Install

What it does

Creating a Password Vault

Sync Your Vault: Sovereignty Over Convenience

Password management truly shines when your credentials are available on all the devices you need them on. To achieve this, you must sync your .kdbx database file across these devices. The security of this process depends entirely on where you store that file.

For maximum data sovereignty, use trusted, non-US infrastructure. We recommend:

Why Avoid US-Based Giants? (Google, Dropbox, Apple, Microsoft)

While your .kdbx file is strongly encrypted, metadata and access patterns are not. Relying on US-based providers introduces critical risks:

Rule of Thumb: Never store confidential data on infrastructure hosted by or subject to US jurisdiction.

The Trade-Off: To Cloud or Not to Cloud?

Pros of Cloud Sync

Cons of Cloud Sync

Verdict: Syncing is essential for usability, but only if you retain control over the infrastructure. Choose a sovereign provider to ensure that even if the server is accessed, your data remains under your legal and technical protection.

Sync Strategy: Nextcloud

Configuration: Store your vault at e.g.Nextcloud/Passwords/Passwords.kdbx. Install the Nextcloud client on your devices and open the database directly from the synced local folder with KeePassXC.

How it works:

This approach ensures a single, up-to-date vault across your infrastructure while maintaining full control over the storage location.

Browser integration / MFA Setup / Passkeys

Finally:

Settings

kp-browserintegration.png

Browser Plugin

Option: Passkeys

kp-passskeys.png

Regular Username / Password

kp-fill.png

MFA

TOTP

kp-totp.png

Hint:

Passkey

Recovery Keys

Same account / different URLs

kp-addurl.png

https://odc.officeapps.live.com
https://onedrive.live.com/
https://login.live.com/

Problems

Brave: No connection

If connection to KeepassXC fails after (re)starting Brave:

Brave: Plugin spinning wheel turns all the time, no connection

Option 1
Option 2
Option 3
Option 4

Android: KeePassDX

Browser integration

TOTP

iOS: KeePassium

In browser authenticator

This solution is perfect for users without a smart phone. This guide shows how to use it with git.math.uzh.ch, but the steps are the same for other pages.

Install the authenticator extension

Extension nameauthenticator.cc
Available for[[https://addons.mozilla.org/en-US/firefox/addon/auth-helper?src=external-github|[FrontPage/firefox-add-ons.png]]]
[[https://chrome.google.com/webstore/detail/authenticator/bhghoamapcdpbohphigoooaddinpkbai|[FrontPage/chrome-web-store.png]]]
[[https://microsoftedge.microsoft.com/addons/detail/ocglkepbibnalbgmbachknglpdipeoio|[FrontPage/microsoft-store.png]]]
[[https://apps.apple.com/us/app/authen/id1602945200?mt=12|[FrontPage/apple-store.svg]]]

Install the extension from the appropriate store using the above links. The most up-to-date links are provided on the official github page of the extension:

https://github.com/Authenticator-Extension/Authenticator?tab=readme-ov-file#available-for-chrome-firefox-microsoft-edge-and-safari

Register the extension for MFA with a QR code

  1. Scan the QR code with the extension by pressing the scan icon

in-browser-mfa-reg-1.png

  1. Select the area of the page with the QR code

in-browser-mfa-reg-2.png

  1. The page will ask you for a code generated by the authenticator app - see below how to get the code

in-browser-mfa-reg-3.png

Note: If you want to use the extension in several places (e.g. both FireFox in a ThinLink session and an authenticator app on you smart phone or a browser on your personal laptop), please save the secret key provided along with the QR code. You can use the code to configure the extension in other places. The code is saved nowhere and once you close the page (or provide the code as in the last step above) it is not possible to access it again.

Usage

  1. Provide login credentials on the page.

in-browser-mfa-usage-1.png

  1. When asked for the token:
    1. Open the authenticator extension and click on the proper entry to copy the code to the clipboard. You should see "Copied" displayed over this entry.

in-browser-mfa-usage-2.png

  1. Paste the code on the page (e.g. with Ctrl+V).

in-browser-mfa-usage-3.png

Note: On the first time the browser will ask you to permit the extension to use the clipboard - please allow it. If you choose otherwise, you can still copy the code manually (select then press Ctrl+C) or enter it manually on the page.

Remove an app from the extension

  1. Click on the extension icon, then the pen icon

in-browser-mfa-edit-1.png

  1. Edit app properties and save by clicking the tick icon or remove the app by click the red disk icon

in-browser-mfa-edit-2.png

Microsoft Authentication

Microsoft Authentication

mfa-second.png

different_method.png

method_phone.png

Add third party TOTP app

Attention: before you change your second factor: take care that there is always one factor which works! Typically your mobile number is a reasonable fallback during the reconfiguration.

Adding and removing factors: the system might ask again for authentication, even if you are still logged in!

MS-01.png

MS-02.png

MS-03.png

qr-secret.png

Recommendation: Additional phone numbers

Authentication method

ms-delete.png

MS Websites

Best is to add the following websites to the personal KeepassX Account:

 

image.png

image.png

Lost Access

Thinlinc MFA login

SSH/ThinLinc: GUI client

The authentication process is the same when a GUI client like !ThinLinc client is used. However, this method is least friendly for the initial configuration: the displayed text cannot be copied. Because of this we suggest other ways to configure the MFA initially.

1. Please login over ssh or with !ThinLinc. If no MFA device is configured yet, a selection of options is shown.

2. The easiest one to configure is email, but all three choices are possible:

3. If the second factor is configured, a list of methods is shown and you can use a code from any of them. Type email to request an email code - an email is sent automatically only when it is the only method.