コンテンツへスキップ
メニュー
この質問にフラグが付けられました

I am looking for solution which is exactly described \HERE
However I am not sure what should I pass to the second parameter ie request_body

digester = hmac.new(secret, request_body, hashlib.sha256) 

I have tried to pass

"request" which throw error "must be convertible to a buffer, not LocalProxy".

"request.httprequest" which throw error "must be convertible to a buffer, not Request".

"request.jsonrequest" which throw error "must be convertible to a buffer, not dict".

"str(request.jsonrequest)" which process this but give invalid signature.

Any input other than above will be very helpful.
If you are not sure but you may have possible solution. Give a try, I will test and let you know.
I am using odoo v10

 
アバター
破棄
著作者

Seem like link doesn't work, anyway here is the link which mention above

https://stackoverflow.com/questions/35486389/how-to-validate-a-webhook-signature-using-python-and-openssl

関連投稿 返信 ビュー 活動
4
6月 24
2365
1
11月 22
2873
4
3月 22
25611
2
8月 20
11040
1
7月 25
2205