HMAC Request Signing
Do you have plans of supporting HMAC request signing in near future?
-
Official comment
OAuth1a is available in C#, Java, Android, PHP, Ruby, iOS. We can add this support in remaining languages if needed. Just let us know :)
Comment actions -
Hi,
Is it possible to do the HMAC signing process but without all the oauth headers.
Generate AccessKey and SecretKey fields - Generate nonce and sign the request body
Add the HMAC Signature as a customized Http Header in the form:- Authorization: Hmac accessKey:Signature
Add the Nonce as a Http HeaderIf the oauth code is a utility when the sdk is generated, then can I possibly customize the oauth code? That might be quicker instead of you writing a whole new authentication type.
-
Hi. Yes you are right, implementing a new AuthType might take a while for us to implement due to the backlog. However if you are willing to edit the generated code then it should be easy.
If you set Authentication to OAuth1 TokenSecret, you should already see an OAuthUtility class in the generated code. That class has the code for computing HMAC signatures and nonce etc. It should be straight forward to edit the class. Does that answer your question?
-
Yes it does.
I did a sample api and downloaded the sdk for a single language. The oauth utility is separate and it can be edited easily. If the same pattern is there for all languages, then I can definitely get it done.
I'll play around with the code generator and will ask for help if I bump into any problems.
Again thanks for the quick response.
Please sign in to leave a comment.
Comments
9 comments