<HTML><HEAD><TITLE>Samsung Enterprise Portal mySingle</TITLE>
<META content=IE=5 http-equiv=X-UA-Compatible>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<STYLE id=mysingle_style type=text/css>P {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
TD {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
LI {
        MARGIN-BOTTOM: 5px; FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN-TOP: 5px
}
BODY {
        FONT-SIZE: 9pt; FONT-FAMILY: Arial, arial; MARGIN: 10px; LINE-HEIGHT: 1.4
}
</STYLE>

<META name=GENERATOR content=ActiveSquare></HEAD>
<BODY>
<P>Hi Stefan,</P>
<P> </P>
<P><EM>"If you are this far then I assume other Hawk GET requests work ok? "</EM></P>
<P><SPAN style="BACKGROUND-COLOR: #ffff00">Manoj : - </SPAN> Yes, I have made GET /v1/account/keys and receiving the request bundle properly  after successful login.</P>
<P> </P>
<P><EM>"Do you have any other POST requests that work correctly? Is it just /v1/certificate/sign that is giving you trouble?"</EM></P>
<P><SPAN style="BACKGROUND-COLOR: #ffff00">Manoj : -</SPAN> No I am not able to proceed to other post request ( with payload hash ), as they  depend on the certificate that we get from /certificate/sign.</P>
<P><EM></EM> </P>
<P><EM>"Did you run your unit tests against the example requests from https://github.com/hueniverse/hawk ?"</EM></P>
<P><SPAN style="BACKGROUND-COLOR: #ffff00">Manoj : - </SPAN> I am completely  unaware of sample request for /certificate/sign. </P>
<P>I saw the code in, /test/client.js and /example/usage.js</P>
<P>should I run a local node.js server to test ?</P>
<P>- If I want to test with my credentials how should I do?</P>
<P> </P>
<P>Could you please guide me on how to test post request with payload for /certificate/sign.</P>
<P> </P>
<P>Thanks in advance.</P>
<P><BR>> When I'm making a post request to<BR>> /v1/certificate/sign<BR>> I am getting, the following error<BR>> {"code":401,"errno":109,"error":"Unauthorized","message":"Payload is<BR>> invalid","info":"https://github.com/mozilla/fxa-auth-server/blob/master/docs/api.md#response-format"}<BR><BR><BR>The 109 error is "invalid request signature", which means that the Hawk authentication goes wrong.<BR><BR>Your problem can be in two places: the content hash or the request signature.<BR><BR>It looks like your code is correct for the content hash is correct.<BR><BR>Did you run your unit tests against the example requests from https://github.com/hueniverse/hawk ?<BR><BR>If you are this far then I assume other Hawk GET requests work ok? Do you have any other POST requests that work correctly? Is it just /v1/certificate/sign that is giving you trouble?<BR><BR>S.<BR></P>
<P> </P><!--SP:manojkumar.s-->
<P>Thanks,<BR>Manoj</P><!--manojkumar.s:EP-->
<P> </P>
<TABLE id=confidentialsignimg>
<TBODY>
<TR>
<TD NAMO_LOCK>
<P><IMG border=0 src="cid:YKENUIXHLLKJ@namo.co.kr"></P></TD></TR></TBODY></TABLE></BODY></HTML><img src='http://ext.samsung.net/mailcheck/SeenTimeChecker?do=98934eddeedafa1ec03eb168fe94ef56fa385b4f3ddebf9786905d89a565a6e55ae294939dd64ac078b72e7a65da3d59720175c7c1788460326bbdfb2ea96a2fcf878f9a26ce15a0' border=0 width=0 height=0 style='display:none'>