...
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 |
---|
theme | FadeToGreyConfluence |
---|
language | bash |
---|
title | URL |
---|
|
http://sandbox.apstrata.com/apsdb/rest/ [authenticationkey]/CreateStore?apsws.time=1234567890&apsws.authMode=simple |
First, construct the text to hash by doing:
Code Block |
---|
theme | FadeToGreyConfluence |
---|
title | Value to Hash |
---|
|
ValueToHash = [timestampValue][Authentication Key value][action name][secret]
|
Code Block |
---|
theme | FadeToGreyConfluence |
---|
title | Example |
---|
|
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 |
---|
theme | Confluence |
---|
language | FadeToGreyjs |
---|
title | Example |
---|
|
apsws.authSig = Md5hashFunction(valueToHash)
|
...