콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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
2436
1
11월 22
2924
4
3월 22
25656
2
8월 20
11070
2
8월 25
2400