You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello.
I get 'Invalid secret' when a Webhook Request is sent. After a bit of debugging I found that the HTTP header that is used for the signature validation is wrong. The header in question is set in webhook.py in line 12. This header is not sent by Gitea which causes the header to be None. I changed the line to _HEADER_SIGNATURE = 'X-Gitea-Signature' which fixes the issue.
This may be a configuration issue on my side. I'm not entirely sure. I can test this further on the weekend and send a pull request.
The text was updated successfully, but these errors were encountered:
Thank you, I've changed the implementation yesterday to tackle the deprecation in #15. The documentation is a bit lacking for the webhooks, but you are right, X-Gitea-Signature should be the correct one, HTTP_X_GITEA_SIGNATURE is the PHP wording for the same.
Hello.
I get 'Invalid secret' when a Webhook Request is sent. After a bit of debugging I found that the HTTP header that is used for the signature validation is wrong. The header in question is set in webhook.py in line 12. This header is not sent by Gitea which causes the header to be
None
. I changed the line to_HEADER_SIGNATURE = 'X-Gitea-Signature'
which fixes the issue.This may be a configuration issue on my side. I'm not entirely sure. I can test this further on the weekend and send a pull request.
The text was updated successfully, but these errors were encountered: