Skip to content

Commit

Permalink
Add documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jun 1, 2024
1 parent b1477db commit 7bc3620
Show file tree
Hide file tree
Showing 5 changed files with 203 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
// { text: 'Examples', link: '/markdown-examples' },
{ text: 'Guide', link: '/docs/' },
{ text: 'FAQs', link: '/faqs' },
{ text: 'Privacy Policy', link: '/privacy-policy' },
],
Expand Down Expand Up @@ -64,13 +64,14 @@ export default defineConfig({
],

sidebar: [
// {
// text: 'Examples',
// items: [
// { text: 'Markdown Examples', link: '/markdown-examples' },
// { text: 'Runtime API Examples', link: '/api-examples' }
// ]
// },
{
text: 'Guide',
items: [
{ text: 'Installation', link: '/docs/' },
{ text: 'Authentication', link: '/docs/authentication' },
{ text: 'Token Managements', link: '/docs/token-managements' }
]
},
{
text: 'FAQs',
link: '/faqs',
Expand Down
7 changes: 7 additions & 0 deletions .vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,10 @@
}
}
}

/* Docs */
.vp-doc {
& img {
border: 1px solid rgba(255, 255, 255, .25);
}
}
75 changes: 75 additions & 0 deletions docs/authentication.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
---
layout: doc
---

# Authentication

## Sign Up

When you first open Authman, you may not have account yet, click `Create an account`
and go to sign up page:

<img width="355" alt="signup" src="https://github.com/simular/authman-app/assets/1639206/aaf3d291-dad0-4c7e-b672-36f9bda2e9ee">

Enter you email and password to sign-up, currently we won't send verify email to user, so make sure you enter correvt personal email and use a strong password to protect your account.

<img width="351" alt="account" src="https://github.com/simular/authman-app/assets/1639206/7e76111f-d2ea-4348-8587-52a988e6d019">

After signed-up, you will auto login to Authman, please check [Token Managements](./token-managements.html)
to see how to create your first token.

## Sign In

If you sign-out of Authman, or install on a new device, you must re-login to Authman. Just fill your email and password to sign-in.

<img width="336" alt="signin" src="https://github.com/simular/authman-app/assets/1639206/9247648d-7705-4ab0-a6d4-fb795fdeb4d9">

Note, Authman use your password to encrypt & decrypt your all tokens, if you forgot your password, currently it is no way to take your 2FA tokens back. Please see [FAQ](/faqs.html) to know how we protect your key and data.

## Screen Lock

Authman will auto lock your app if user has no any actions over 5 minutes.

<img width="375" alt="lock" src="https://github.com/simular/authman-app/assets/1639206/cf1d2433-08f9-42e4-8f1b-1f4edad39e44">

All decrypted tokens will release when app lock, you must provide your password to unlock, since we use your password to encrypt tokens, the password is necessary to re-decrypt tokens after unlock.

### Touch ID & Face ID

If you are tired to enter password to unlock every time, you can enable the Biometrics unlock mode. Go to **Options** and enable the Biometrics toggler. Authman will ask your password again and save the [KEK](/faqs.html#how-authman-encrypt-keys-by-my-password) (which is derived from your password.) in device secure storage. Next time you can unlock device by Touch ID or Face ID and without entering password.

<img width="379" alt="bio" src="https://github.com/simular/authman-app/assets/1639206/be59a633-31c8-4f2f-bd72-0be0dfb5cdcd">

> [!IMPORTANT]
> Authman will never store your password.
## Change Password

You could go to **Options > Change Password** to change your current password.

<img width="380" alt="change-password" src="https://github.com/simular/authman-app/assets/1639206/45875a8c-58e0-4269-862c-782990564abf">

You must provide your old password to unlock secret keys first, that you can enter new password to re-encrypt secret keys by your new password.

See also: [How Authman encrypt keys by my password?](/faqs.html#how-authman-encrypt-keys-by-my-password)

> [!IMPORTANT]
> If you forgot your current password, currently there is no any way to reset it.
> We are considering to provide a recover code or account clear options in the future.
## Sign-out from All Devices

Currently, Authman didn't log all your sign-in devices, so we don't provide a device managements.

If you missing you phone or you want to clear all sessions of your account, just go to **Options > My Account** and click the `Sign-Out from All My Devices`, Authman will make all API tokens expired. After this action, you must re-login again of current device.

<img width="379" alt="sign-out all" src="https://github.com/simular/authman-app/assets/1639206/bd1b6849-9ee7-4ace-8e7c-87a6b98c4a3c">

## Delete Account

If you no-longer want to use Authman, just go to **Options > My Account** and click the `Delete My Account` option.

<img width="385" alt="del account" src="https://github.com/simular/authman-app/assets/1639206/c0da42ec-aeaf-4e7b-954e-3fb76b102d8c">


Authman will delte you account and all tokens with no any backup, note this action cannot undo.
41 changes: 41 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: doc
---

# Installation

## Platforms

Authman now supports there platforms:

- iOS
- Android
- Windows (nsis)
- macOS (App Store or dmg)

We are still working for platforms below:

- Windows Store
- Linux

## Mobile

You can install Authman from iOS AppStore and Android Google Play

- [iOS App Store](https://apps.apple.com/us/app/authman-2fa/id6502499482)
- [Google Play](https://play.google.com/store/apps/details?id=io.authman)

## Desktop

For Windows, please download the nsis setup package.

- [Download Link](https://github.com/simular/authman-app/releases/latest)

For macOS, there are 2 installation ways:

- Download the dmg: [Download Link](https://github.com/simular/authman-app/releases/latest)
- Install from [Mac App Store](https://apps.apple.com/us/app/authman-2fa/id6502499482)

## Build from Source

This section still work in process.
71 changes: 71 additions & 0 deletions docs/token-managements.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
---
layout: doc
---

# Token Managements

## Create A New Token

Click `New` on the header bar:

<img width="383" alt="header" src="https://github.com/simular/authman-app/assets/1639206/f6ca29df-fbd1-44f5-b19d-9547c3b92fbc">

You may enter the TOTP secret or just scan QRCode by click the `Scan QRcode` button:

<img width="346" alt="qrcode" src="https://github.com/simular/authman-app/assets/1639206/c05f38b0-4563-4239-bd5d-4b6bea8d888e">

After secret and title filled, click `Next` to configure the token icon:

<img width="361" alt="icon" src="https://github.com/simular/authman-app/assets/1639206/cec80802-5906-425c-aa5c-63821aab1ebc">

You can search icon from font-awesome, and set the color from color options. You can also upload the logo you prepared or just copy / paste from browser.

> [!NOTE]
> All images will convert to a small png file.
After you select the icon you want, click the `Create` button, now you have your first 2FA token:

<img width="372" alt="token" src="https://github.com/simular/authman-app/assets/1639206/abad810b-606c-426d-9660-d6be2979bafd">

Click the number will copy it to clipboard.

## Show Backup QRcode

Someone will like to backup their 2FA tokens when everytime they setup a new 2FA token to another 2FA app.

<img width="383" alt="menu" src="https://github.com/simular/authman-app/assets/1639206/3942bb57-614f-432a-bf45-e93b5d64ade8">

Authman provides a function to show QRCode for backup usage, just click the dots on token right-bottom side of token modal, and click `Show QRcode`, Authman will display a QRCode image for this token, you can use another app or device to scan it.

<img width="368" alt="qrcode" src="https://github.com/simular/authman-app/assets/1639206/6bbdc458-6be4-4032-a864-0849e83775a0">

## Delete Tokens

To delete one token, you may simply click the dots and select the `Delete` option.

<img width="383" alt="menu" src="https://github.com/simular/authman-app/assets/1639206/3942bb57-614f-432a-bf45-e93b5d64ade8">

To delete multiple tokens, click the `Edit` button on app header, and checked the tokens you want to delete, then click the `Delete` button on app header:

<img width="384" alt="delete multiple" src="https://github.com/simular/authman-app/assets/1639206/ebef238a-e1fa-4205-996a-6de940fce19c">

## Export Tokens

If you want to export your tokens for backup usage or transfer to another app, just go to **Options > My Account** and click `Export` option.

![export](https://github.com/simular/authman-app/assets/1639206/336b4862-9a72-44d2-8040-5408ac44d643)

Authman will ask your password again and download all decrypted tokens as a JSON file, you can choose a directory to save it.

## Import Tokens

If you have an Authman exported JSON file, you can import it to another Authman account, or use it to recover your tokens.

Go to **Options > My Account** and click `Import` option, then choose the json file.

![import](https://github.com/simular/authman-app/assets/1639206/11503c25-f798-4257-84a7-62a96689e2c5)

> [!NOTE]
> Currently, Authman only supports import file which is exported from Authman, we are considering add the way to import from other 2FA apps in the future.

0 comments on commit 7bc3620

Please sign in to comment.