-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MAP-24] Add Golang webhook server example #63
Conversation
|
||
require ( | ||
github.com/Truelayer/truelayer-signing/go v0.1.4 // indirect | ||
github.com/gregjones/httpcache v0.0.0-20190611155906-901d90724c79 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone knows about a better http cache...
This is not actively maintained but it does the job.
Where's the readme? Actually related to that, you should also add links to the main go README too, like
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just a couple of questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I've just made a couple of suggestions.
#47 for Golang, including jwks fetch caching.
Golang webhook server example
A http server than can receive and verify signed TrueLayer webhooks.
Run
Run the server.
Send a valid webhook that was signed for path
/hook/d7a2c49d-110a-4ed2-a07d-8fdb3ea6424b
.Modifying the
X-Tl-Webhook-Timestamp
header, the body or the path will cause the above signature to be invalid.