Skip to content

Commit b5bae98

Browse files
authored
Merge pull request #333 from aspnetzero/add-qr-login-document
Add QR Login feature documentation and update navigation links
2 parents 83ff4b9 + 0c1c559 commit b5bae98

9 files changed

Lines changed: 95 additions & 3 deletions
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# QR Login Integration in ASP.NET Zero with MAUI
2+
3+
## Introduction
4+
ASP.NET Zero offers a QR Login feature which allows users to log in to the web application by scanning a QR code from the MAUI application. This document explains how to enable and use QR Login in ASP.NET Zero with MAUI.
5+
6+
## Enabling QR Login
7+
Before you can use the QR Login functionality, it needs to be enabled in the ASP.NET Zero web application settings. Follow these steps to enable QR Login:
8+
9+
1. Navigate to **Settings** in the ASP.NET Zero Web application.
10+
2. Go to the **User Management** tab, locate the **QR Login** setting, and enable it.
11+
3. Save the settings.
12+
13+
Once enabled, the login page on the web application will display a QR code for authentication.
14+
15+
> **Note:** After enabling QR Login on the Host Settings page, each tenant can independently enable or disable the QR Login feature in their specific tenant settings.
16+
17+
![Qr Code on Login Page](images/login-page-with-qr-login.png)
18+
19+
## Using QR Login in MAUI
20+
The MAUI application allows users to authenticate by scanning the QR code displayed on the web login page. Here’s how users can log in through QR Login:
21+
22+
1. Open the **MAUI application** and log in.
23+
2. Navigate to the **Sidebar Menu**.
24+
3. Select **QR Login** from the menu.
25+
4. If you haven't granted camera permission before, allow access to the camera.
26+
5. The QR Code Reader will activate.
27+
6. Scan the QR code displayed on the web application's login page.
28+
7. If the QR code is valid, you will be automatically logged in to the web application.
29+
30+
## One-Way Authentication
31+
QR Login in ASP.NET Zero provides a streamlined authentication flow. It supports one-way authentication, meaning that the user can scan the QR code without entering credentials manually, assuming they are already authenticated in the MAUI app.
32+
33+
![Qr Login Authentication](images/qr-login-authentication.gif)
34+
35+
## Summary
36+
QR Login provides authentication method for users who are already signed into the MAUI app. By scanning a QR code from the web login page, users can instantly access the web application without entering credentials again.
37+
38+
## Next
39+
40+
- [Sign Up](Features-Angular-Sign-Up)

docs/en/Features-Angular-Token-Based-Authentication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Authorization to the header as "**Bearer <accessToken>**". And the result
3030

3131
## Next
3232

33-
- [Sign Up](Features-Angular-Sign-Up)
33+
- [Passwordless Login](Features-Passwordless-Login)

docs/en/Features-Mvc-Core-Forgot-Password.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ If a user forgets their password, it can be retrieved by clicking the **Forgot P
66

77
## Next
88

9-
- [Sign Up](Features-Mvc-Core-Sign-Up)
9+
- [Passwordless Login](Features-Passwordless-Login)
1010

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# QR Login Integration in ASP.NET Zero with MAUI
2+
3+
## Introduction
4+
ASP.NET Zero offers a QR Login feature which allows users to log in to the web application by scanning a QR code from the MAUI application. This document explains how to enable and use QR Login in ASP.NET Zero with MAUI.
5+
6+
## Enabling QR Login
7+
Before you can use the QR Login functionality, it needs to be enabled in the ASP.NET Zero web application settings. Follow these steps to enable QR Login:
8+
9+
1. Navigate to **Settings** in the ASP.NET Zero Web application.
10+
2. Go to the **User Management** tab, locate the **QR Login** setting, and enable it.
11+
3. Save the settings.
12+
13+
Once enabled, the login page on the web application will display a QR code for authentication.
14+
15+
> **Note:** After enabling QR Login on the Host Settings page, each tenant can independently enable or disable the QR Login feature in their specific tenant settings.
16+
17+
![Qr Code on Login Page](images/login-page-with-qr-login.png)
18+
19+
## Using QR Login in MAUI
20+
The MAUI application allows users to authenticate by scanning the QR code displayed on the web login page. Here’s how users can log in through QR Login:
21+
22+
1. Open the **MAUI application** and log in.
23+
2. Navigate to the **Sidebar Menu**.
24+
3. Select **QR Login** from the menu.
25+
4. If you haven't granted camera permission before, allow access to the camera.
26+
5. The QR Code Reader will activate.
27+
6. Scan the QR code displayed on the web application's login page.
28+
7. If the QR code is valid, you will be automatically logged in to the web application.
29+
30+
## One-Way Authentication
31+
QR Login in ASP.NET Zero provides a streamlined authentication flow. It supports one-way authentication, meaning that the user can scan the QR code without entering credentials manually, assuming they are already authenticated in the MAUI app.
32+
33+
![Qr Login Authentication](images/qr-login-authentication.gif)
34+
35+
## Summary
36+
QR Login provides authentication method for users who are already signed into the MAUI app. By scanning a QR code from the web login page, users can instantly access the web application without entering credentials again.
37+
38+
## Next
39+
40+
- [Sign Up](Features-Mvc-Core-Sign-Up)

docs/en/Features-Passwordless-Login.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,8 @@ After filling in the necessary fields according to the chosen verification type,
4343

4444
![Passwordless login verify passwordless code](images/passwordless-login-verify-passwordless-code.png)
4545

46-
After entering the verification code correctly, user will be authenticated and redirected to the home page of the application.
46+
After entering the verification code correctly, user will be authenticated and redirected to the home page of the application.
47+
48+
## Next
49+
50+
- [QR Login](Features-Mvc-Core-Qr-Login)
78.9 KB
Loading
10.3 MB
Loading

docs/en/nav-aspnet-core-angular.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@
177177
{
178178
"text": "Passwordless Login",
179179
"path": "Features-Passwordless-Login.md"
180+
},
181+
{
182+
"text": "QR Login",
183+
"path": "Features-Angular-Qr-Login.md"
180184
}
181185
]
182186
},

docs/en/nav-aspnet-core-mvc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@
177177
{
178178
"text": "Passwordless Login",
179179
"path": "Features-Passwordless-Login.md"
180+
},
181+
{
182+
"text": "QR Login",
183+
"path": "Features-Mvc-Core-Qr-Login.md"
180184
}
181185
]
182186
},

0 commit comments

Comments
 (0)