-
What is your product version? 8.1.0
-
What is your product type (Angular or MVC)? MVC
-
What is product framework type (.net framework or .net core)? .net core
Hi,
do you have any documentation regarding login using QR code instead of username and passwors?
Thanks and Regards
3 Answer(s)
-
0
hi @ashvinu
Do you mean scan the QR code though phone? Please explain you case in detail.
-
0
Hello,
something like the below:
A user can login using their username and password OR using QR code scanned by a mobile app (developed by us).
Regards
-
0
You can generate QR codes based on the QR Code library. The specific implementation process is as follows:
-
The front end requests the QR code to log in.
-
The server generates a random GUID.
-
Put the GUID as the Key in Redis and set the expiration time.
-
Generate a QR code based on the GUID and display it on the login page.
-
The login page requests API-1 every second, passing the GUID.
-
If the login has been authorized, the Access Token will be returned. If there is no authorization or the timeout interface will return an error message.
-
APP requests API-2 (authentication required), carrying GUID and UserId.
-
If the request is valid, set the cache entry value corresponding to the GUID to Access Token.
-
The front end detects that API-1 returns an Access Token, indicating that the login is successful.
-