Child pages
  • Simple Signature Type

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In order to use the simple signature, requests should specify the authentication mode by setting the value of the parameter “apsws.authMode” to “simple”. Each request must also specify the action name and the timestamp (i.e., apsws.time). A URL example would be:

Code Block
themeFadeToGreyConfluence
languagebash
titleURL
http://sandbox.apstrata.com/apsdb/rest/ [authenticationkey]/CreateStore?apsws.time=1234567890&apsws.authMode=simple

First, construct the text to hash by doing:

Code Block
themeFadeToGreyConfluence
titleValue to Hash
ValueToHash = [timestampValue][Authentication Key value][action name][secret]
Code Block
themeFadeToGreyConfluence
titleExample
secret = qwerty
apsws.authKey = asdfg
apsws.time = 1234567890
action = CreateStore
valueToHash= 1234567890asdfgCreateStoreqwerty


...

The signature is then created by generating the Md5 hash of this text and using Hexadecimal characters:

Code Block
themeConfluence
languageFadeToGreyjs
titleExample
apsws.authSig = Md5hashFunction(valueToHash)

...