CR OTP Authentication API

Authentication function that verify username and Challenge Response OTP combination. User has to request an OTP challenge code before call this function . User will generate a correspond OTP based on the challenge code.

Below is the URL to access the API functions:

POST /v2/CentagateWS/webresources/auth/authCrOtp

Parameters

NoParameterOccurenceDescriptions
1usernameRequiredRegister Username in CENTAGATE Cloud.
2devAccIdRequiredThe user registered device account Id
3ChallengeRequiredChallenge Code That Is Sent From Server To User
4crOtpRequiredChallenge Response OTP that generated from in CENTAGATE Cloud App.
5authTokenOptionalThe Previous Generated AuthToken.​
6integrationKeyRequiredIntegration Key Of The App That The User Wants To Authenticate.
7unixTimestampRequiredCurrent Time In Unixtimestamp
8supportFidoOptionalFIDO Authentication Option, Pass True To Enable And False To Disable. Or Leave It Empty
9ipAddressOptionalIP Address From Where The Authentication Request Is Originated.
10userAgentOptionalPlatform Information Of Authentication Request Is Made Of.
11browserFpOptionalBrowser Fingerprint.
12otpTypeOptionalInsert "Online" If Its Mobile Token Or Insert "Offline" If Its Hardware Token
13tokenIdOptionalInsert Hardware Token Serial Number, If User Register More Than One Hardware Token, Need To Specify The Hardware Token Serial Number
14HMACRequiredHmac Generated From Combination (Username + DevAccId + CrOtp + OtpType + Challenge + 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: