Skip to content

Commit ff8bd96

Browse files
committed
Update
1 parent 518e423 commit ff8bd96

File tree

2 files changed

+137
-8
lines changed

2 files changed

+137
-8
lines changed

docs/.vitepress/config.ts

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,39 @@ export default defineConfig({
3333
{
3434
text: 'Documentation',
3535
items: [
36-
{text: 'Installation', link: '/install'},
37-
{text: 'OIDC', link: '/oidc'},
38-
{text: 'Tunnels', link: '/tunnels'},
39-
{text: 'JSON Import', link: '/json-import'},
40-
{text: 'Contributing', link: '/contributing'},
4136
{
42-
text: "API Reference",
37+
text: 'Getting Started',
38+
items: [
39+
{ text: 'Installation', link: '/install' },
40+
{ text: 'Contributing', link: '/contributing' },
41+
],
42+
},
43+
{
44+
text: 'Authentication',
45+
items: [
46+
{ text: 'OIDC', link: '/oidc' },
47+
{ text: 'TOTP', link: '/totp' },
48+
],
49+
},
50+
{
51+
text: 'Networking',
52+
items: [
53+
{ text: 'Tunnels', link: '/tunnels' },
54+
],
55+
},
56+
{
57+
text: 'Data',
58+
items: [
59+
{ text: 'JSON Import', link: '/json-import' },
60+
],
61+
},
62+
{
63+
text: 'API Reference',
4364
collapsed: true,
44-
link: "/api-reference",
65+
link: '/api-reference',
4566
items: [...sidebar.generateSidebarGroups()],
4667
},
47-
]
68+
],
4869
},
4970
],
5071

docs/totp.md

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
# Two-Factor Authentication (TOTP) Setup Guide
2+
3+
## Overview
4+
5+
Two-Factor Authentication (2FA) adds an extra layer of security to your account by requiring both your password and a time-based one-time password (TOTP) generated by an authenticator app. This guide will walk you through setting up, managing, and using 2FA in Termix.
6+
7+
## Prerequisites
8+
9+
Before setting up 2FA, ensure you have:
10+
11+
- A smartphone or device with an authenticator app installed
12+
- A local username and password account, TOTP cannot be used with OIDC.
13+
14+
## Recommended Authenticator Appsx
15+
16+
- **Google Authenticator** (iOS/Android)
17+
- **Microsoft Authenticator** (iOS/Android)
18+
- **Authy** (iOS/Android/Desktop)
19+
- **1Password** (iOS/Android/Desktop)
20+
- **Bitwarden** (iOS/Android/Desktop)
21+
22+
## Setting Up Two-Factor Authentication
23+
24+
### Step 1: Initiate Setup
25+
26+
1. Navigate to your **Profile & Security** section
27+
2. Click on the **Security** tab
28+
3. Click **"Enable Two-Factor Authentication"**
29+
30+
### Step 2: Scan QR Code
31+
32+
1. Termix will display a QR code
33+
2. Open your authenticator app and scan the QR code
34+
3. Alternatively, you can manually enter the secret key shown below the QR code
35+
36+
### Step 3: Verify Setup
37+
38+
1. Your authenticator app will generate a 6-digit code
39+
2. Enter this code in the verification field
40+
3. Click **"Verify and Enable"**
41+
42+
### Step 4: Save Backup Codes
43+
44+
1. After successful verification, you'll receive backup codes
45+
2. Download or copy these codes
46+
3. Each backup code can only be used once
47+
4. Click **"Complete Setup"** to finish
48+
49+
## Using Two-Factor Authentication
50+
51+
### Daily Login
52+
53+
1. Enter your username and password as usual
54+
2. When prompted, open your authenticator app
55+
3. Enter the 6-digit code displayed in your app
56+
57+
### Code Generation
58+
59+
- TOTP codes refresh every 30 seconds
60+
- Each code is valid for a limited time
61+
- If a code expires, wait for the next one to appear
62+
63+
## Managing Your 2FA Settings
64+
65+
### Viewing Status
66+
67+
- Check the **Security** tab in your User Profile
68+
- The status will show as "Enabled" with a green shield icon
69+
70+
### Disabling 2FA
71+
72+
1. Go to the **Security** tab
73+
2. Click on **"Disable 2FA"**
74+
3. Enter either:
75+
- Your account password, OR
76+
- A valid TOTP code from your authenticator app
77+
4. Click **"Disable Two-Factor Authentication"**
78+
79+
### Managing Backup Codes
80+
81+
#### Generate New Backup Codes
82+
83+
If you've lost your existing backup codes:
84+
85+
1. Go to the **Security** tab
86+
2. Click on **"Backup Codes"**
87+
3. Enter your password or TOTP code
88+
4. Click **"Generate New Backup Codes"**
89+
5. Save the new codes
90+
91+
#### Download Backup Codes
92+
93+
1. Click the **"Download"** button next to your backup codes
94+
2. A text file will be downloaded containing all your codes
95+
3. Store this file in a secure location
96+
97+
## Backup Codes
98+
99+
### What Are Backup Codes?
100+
101+
Backup codes are one-time use codes that allow you to access your account if you:
102+
- Lose your authenticator device
103+
- Can't access your authenticator app
104+
105+
### Using Backup Codes
106+
107+
1. During login, when prompted for a TOTP code
108+
2. Enter one of your backup codes instead of a regular TOTP code

0 commit comments

Comments
 (0)