Request OTP Challenge API

Request an OTP challenge code for CR OTP authentication.

Below is the URL to access the API functions:

POST /v2/CentagateWS/webresources/req/requestOtpChallenge 

Parameters

NoParametersOccurrenceDescriptions
1UsernameRequiredRegistered Username in CENTAGATE Cloud
2DevAccIdRequiredThe Selected Device Account Id
3AuthTokenOptionalThe previous generated AuthToken
4IntegrationKeyRequiredIntegration Key Of The App That The User Wants To Authenticate
5UnixTimestampRequiredCurrent Time In Unixtimestamp
6SupportFidoOptionalFIDO Authentication Option, Pass True To Enable And False To Disable. Or Leave It Empty.
7IpAddressOptionalIP Address From Where The Authentication Request Is Originated.
8UserAgentOptionalPlatform Information Of Authentication Request Is Made Of.
9BrowserFpOptionalBrowser Fingerprint
10OtpTypeOptionalInsert "online" if its mobile token or insert "offline" if its hardware token
11TokenIdOptionalInsert Hardware Token Serial Number, if user register more than one hardware token, need to specify the hardware token serial number
12HMACRequiredHMAC Generated From Combination (Username + DevAccId + OtpType + IntegrationKey + UnixTimeStamp + AuthToken + SupportFido + IpAddress + UserAgent + BrowserFp ) 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: