Configuring a QR Code authentication mechanism
The QR Code authentication mechanism is an authentication capability that permits a registered device to scan a QR Code to authenticate the user. It provides a completely alternative-to-password method of authenticating a user.
About this task
- Initiate
- In this mode the mechanism generates a QR code and displays it to the user.
It then waits for the code to be scanned or a timeout period to be reached. The
waiting process consists of polling the authentication policy using a
device_session_index until it is associated with an authenticated user.
Scanning the code results in the IBM Verify mobile application contacting a companion authentication
policy. This policy uses the same mechanism in Response mode. After
successful login with the QR Code scan, there are three attributes that are made available in the
session context for downstream policies:
- urn:ibm:security:asf:qrcode.prompt- This is a confirmation message that might be used by other mechanisms to ensure that the QR code login operation is what the user intended.
- urn:ibm:security:asf:qrcode.qr_login_session_index- This is analogous to the user_code from the OAuth device flow.
- urn:ibm:security:asf:qrcode.qr_device_session_index- This is analogous to the device_code from the OAuth device flow.
- Response
- In this mode the mechanism associates the login_session_index with the authenticated username from the request. Any associated policy using the QR code mechanism in Initiate mode that is polling on the device_session_index is unblocked and completed.
.