-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Relay webhook events to localhost #275
Conversation
3ec2d8f
to
ae668a4
Compare
service/runtime/tunnel.go
Outdated
e.logger.PrintLn(cyan("== new incoming webhook request")) | ||
e.logger.PrintLn(cyan("== received at: %s", item.CreatedAt.Format(time.DateTime))) |
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.
lets change to: "== new webhook event received == "
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.
Done
service/runtime/tunnel.go
Outdated
if e.logHeaders { | ||
e.printHeaders(item, filtered) | ||
} | ||
payloadMessage := "== payload" |
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.
lets remove this line from the output
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.
Done
service/runtime/tunnels.go
Outdated
|
||
func (e *Tunnels) Start(userCredentialsCh chan UserCredentials) { | ||
e.logger.Print(cyan("############################################################\n")) | ||
e.logger.Print(cyan("To start listening webhook events - send /auth/token request\n")) |
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.
lets change to: To start event listener, send an auth request: POST /auth/token
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.
Done
4122147
to
d3e30c5
Compare
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0. - [Commits](golang/crypto@v0.27.0...v0.28.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [github.com/ory/x](https://github.com/ory/x) from 0.0.658 to 0.0.662. - [Release notes](https://github.com/ory/x/releases) - [Commits](ory/x@v0.0.658...v0.0.662) --- updated-dependencies: - dependency-name: github.com/ory/x dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
cde5c49
to
96285a8
Compare
For development and demos, there’s a gap in the end-to-end workflow for interacting webhooks event. A common issue when developing a webhook endpoint is that you have to deploy it to a public URL in order to receive events to test it. Having to deploy every change in order to test it is not an ideal developer experience and for some, there may not be immediate available public URL from their to use without relying on a third party software.
We aim to extend the utility to allow testing of the webhooks without relying on a third party software (e.g. https://webhook.site and instead create an on-the-fly publicly accessible URL for use when testing.