|
| 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 | + |
| 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 | + |
| 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) |
0 commit comments