I want to log in by scanning a barcode
Problem
I want to log in to Mobile WMS by scanning a barcode.
Limitations
Barcode login is not suitable for Microsoft Entra ID authentication, as it requires two barcodes and generally lacks security.
See Logging in With Barcodes in an Azure Active Directory Scenario.
Solution
It is possible to log in to Mobile WMS by scanning a barcode containing (Domain, Username, Password, and Endpoint).
You need to use a GS1 Data Matrix, which can be created on the webpage below:
https://the-burtons.xyz/barcode-generator/
To create the barcode, please follow these steps:
Choose GS1 Data Matrix as the barcode (dropdown)
Use the following as contents: (95)username(96)password(97)domain(98)Endpoint id
You will need to replace username, password, domain, and endpoint ID with the correct values.Click on Make Barcode
Download the barcode for printing
Note that the Username and Password are mandatory, whereas the Domain and Endpoint are optional and should be included only if they make sense in your scenario.
If you do not have multiple endpoints, there is no reason to include this in the barcode for instance.
Logging in With Barcodes in an Azure Active Directory Scenario
When using an AAD login that relays the login to the Microsoft login page, then it is not possible to use the application identifier 96 for the password.
The user will have to scan two barcodes to log in.
A GS1 Data Matrix barcode with the (95) application identifier (for the username, which in this case typically is an email address).
To generate a username with the "@" in it, you have to use "dontlint" as shown in the image below.
A non-GS1 barcode (Code 128) without any application identifier (for the password)
Note that in this case you will store the password as plain text, which can pose a security risk. The only workaround is for the user to enter the password instead of scanning it.