HMAC in fulfilment confirmation request


hello,

 

i wondering how hmac token in fulfilment confirmation request generated, can verify integrity of message.

 

i understand sharedsecret used signing key, don't know fields signed.

 

the same question asked in discussion before:

http://forums.adobe.com/thread/687930

however, not know java sample code can found... (i have access php sample store doesn't appear handle fulfilment confirmation.)

 

thanks hints,

andreas

try this:

 

$dateval=time();

 

$secret = base64_decode(<distributors shared secret>);

 

$urlacs = "action=enterorder&ordersource=<distributor name>&orderid=<unique id each order>&resid=<item id>&dateval=".$dateval."&gblver=4";

 

$auth = hash_hmac("sha1", $urlacs, $secret);

 

$link = "<server>/fulfillment/urllink.acsm?$urlacs&auth=$auth";

 

 

- vijay



More discussions in Adobe Content Server


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support