QR Code Authentication API

Authentication function that verify username and QR. User has to request a QR code before call this function. You have to convert the QR code value to a QR and display on the screen to let user scans it.

Below is the URL to access the API functions:

POST /v2/CentagateWS/webresources/auth/authQrCode

Parameters

NoParameterOccurenceDescriptions
1usernamerequiredRegister Username in CENTAGATE Cloud
2devAccIdRequiredDevice that registered with the user
3tokenIdOptionalToken Id registered with the device
4OtpTypeRequiredThe OTP type
5otpRequiredOTP generate after scan Qr Code using CENTAGATE Cloud App in offline mode
6challengerequiredThe OTP challenge in response object
7detailsRequiredThe transaction information based on requested QR code encoded using Base64. Format: - - -
Alternatively, the information is returned as plainText during QR code request.
8AuthTokenRequiredThe previous generated Auth Token during request Qr Code
9unixTimeStampRequiredCurrent Time in UnixTimestamp
10supportFidoRequiredFIDO Authentication Option, Pass True To Enable And False To Disable. Or Leave It Empty
11ipAddressOptionalThe IP address from where the authentication request is originated
12browserFpOptionalBrowser Fingerprint
13userAgentOptionalPlatform Information of Authentication Request is Made of
14hmacRequiredHmac Generated From Combination (username + devAccId + otp + challenge + details + integrationKey + unixTimeStamp + authToken + supportFido + ipAddress + browserFp + userAgent) Using Secretkey (Can Be Obtained From The App Page) As The Key​

Sample Code

As in below there are some examples of source code of access the API functions: