Skip to content
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

Webhook Auth Token #3050

Closed
rmandke13 opened this issue May 26, 2023 · 3 comments
Closed

Webhook Auth Token #3050

rmandke13 opened this issue May 26, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@rmandke13
Copy link

What problem would you like to solve? Please describe:
We would like the option to provide a bearer token with the webhook contact method. This would allow us to authenticate the POST request that is made from the webhook in our backend service.

Describe the solution you'd like:
We would like the option to provide a bearer token with the webhook contact method.

Describe alternatives you've considered:
We need to communicate between the two applications. GoAlerts and our service. We considered using a direct database hook but that would not be efficient.

@rmandke13 rmandke13 added the enhancement New feature or request label May 26, 2023
@mastercactapus
Copy link
Member

Two supported alternatives you can use:

  • query parameter https://example.com/api?token=<token>)
  • basic auth https://<user>:<token>@example.com/api (user could be blank/unused)

The latter will result in the token being passed in the Authorization header but in the Basic format instead of Bearer. Both would allow you to authenticate requests, however.

Would either of those suffice for your use case?

@rmandke13
Copy link
Author

@mastercactapus Let me try these out today and get back to you.

@mastercactapus
Copy link
Member

In addition to existing supported alternatives, closing as obsolete via #4224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants