I am establishing the communication between my angular application and scorm cloud service offered by rustici software. I have had follow the documentation, so far I get:
<rsp stat="fail">
<err code="104" msg="The signature attached to the call does not match the signature generated on the server."/>
</rsp>
Here it is an example of the URL: http://cloud.scorm.com/api?method=rustici.registration.launch&appid=79V4XI0MTG®id=1551368365666&redirecturl=closer&ts=20190228153925&sig=d6edc93e854d8e8276156759a84cc344
Which is obvious related to the way I am generating the signature parameter using the MD5 function, as stated in the documentation.
I have a hunch this problem is related to the way I generate the time parameter (ts), I do it so
TS: string = moment().add(5, 'hours').format('YYYYMMDDHHmmss');
If someone have achived this, would you be able to spare me some time.
I manage to generate right md5 strings that match server side generated md5 using the following functions.
Assuming you have the next parameters, the process goes as follows
Construct the URL to make the request and you should be good to go.