-
Notifications
You must be signed in to change notification settings - Fork 0
Description
User and System Flow
User flow
- User visits the site, and the site presents user with a QR code (OTP)
- User scans the QR code uses the company's mobile app on iPhone
- After scanning the QR code successfully, after a while, user is logged in on the website.
System Flow
QR code generation: The website generates a unique QR code that encodes a URL or other information needed for the next steps, such as a unique token or identifier for the user session.
Display QR code: The website displays the generated QR code to the user, prompting them to scan it with their phone.
User scans QR code: The user scans the QR code with their smartphone's camera using a QR code scanning app.
Decode QR code: The QR code scanning app decodes the QR code and extracts the encoded URL or information.
Send user session information: The app sends a request to the server using the extracted URL or information. This request includes the unique token or identifier and any necessary authentication information, which is used to identify the user session on the website.
Server processes request: The server processes the request, verifies the user session, and updates the session status as authenticated.
Server signals website: The server sends a signal to the website (e.g., through websockets or long polling) to inform it that the user session has been authenticated.
Website updates: Upon receiving the signal from the server, the website updates the user's session as authenticated and redirects the user to the dashboard.