PKCS#7 PKI Authentication API

Authentication function that verify username and PKI using PKCS#7 signature.

Below is the URL to access the API functions:

POST /v2/CentagateWS/webresources/auth/authPkiPkcs7

Parameters

NoParametersOccurenceDescription
1usernameRequiredRegistered Username in CENTAGATE Cloud
2signatureRequiredThe PKCS#7 Attached Signature Encoded In Base64.
3algorithmRequiredThe Algorithm Used During The Signing. Valid Values Are: 0=SHA-1, 1=SHA-256, 2=SHA-384, 3=SHA-512
4PlainTextRequiredThe Plain Text Of The Signed String Encoded In Base64.
5integrationKeyRequiredIntegration Key Of The App That The User Wants To Authenticate
6unixTimestamp​RequiredCurrent Time in UnixTimestamp
7supportFidoOptionalFIDO Authentication Option, Pass True To Enable And False To Disable. Or Leave It Empty
8ipAddressOptionalIP Address From Where The Authentication Request Is Originated.
9userAgentOptionalPlatform Information Of Authentication Request Is Made Of.
10browserFpOptionalBrower Fingerprint
11hmacRequiredHmac Generated From Combination (Username + Signature + Algorithm + PlainText + 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: