PKI Authentication API

Authentication function that verify username and PKI signature. User has to request a random before call this function. The random value is then being signed and sends to CENTAGATE Cloud for verification.

Below is the URL to access the API functions:

POST /v2/CentagateWS/webresources/auth/authPkiWithSignature

Parameters

NoParametersOccurenceDescription
1usernameRequiredRegistered Username in CENTAGATE Cloud
2CertFingerprintSha1RequiredThe User’ Certificate Fingerprint Is Encoded Using SHA1 And The Result Is Encoded Into Hexadecimal Value. This Is The Certificate That Is Used To Sign The Random String
3SignatureRequiredPerform Signature (SHA1WithRSA) On The Random String. The Result Is Encoded In Base64.
4integrationKeyRequiredIntegration Key Of The App That The User Wants To Authenticate
5unixTimestamp​RequiredCurrent 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.
9browserFpOptionalBrower Fingerprint
10hmacRequiredHmac Generated From Combination (Username + CertFingerprintSha1 + Signature + AuthToken + UserAgent + IntegrationKey + SupportFido + BrowserFp + UnixTimeStamp + IpAddress) 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: