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

feat: add POC for custom SMS sender Hook #1246

Closed
wants to merge 37 commits into from

Conversation

J0
Copy link
Contributor

@J0 J0 commented Sep 13, 2023

What kind of change does this PR introduce?

We modify the existing webhook implementation to work for Auth Hooks. The implementation largely follows Auth Hooks and has the following key points:

  • We store Auth configuration (including encrypted JWT secret) in the hooks_config table

type CustomSMSHookResponse struct {

// API Version
ApiVersion string `json:"api_version"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generated via the CLI tool

id uuid not null,
uri text not null,
event_name text not null,
secret text not null,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be changed to parse a comma separated string

@J0
Copy link
Contributor Author

J0 commented Nov 16, 2023

Closing since it's not relevant for now. We are moving to PostgreSQL hooks

@J0 J0 closed this Nov 16, 2023
J0 added a commit that referenced this pull request Feb 19, 2024
## What kind of change does this PR introduce?

Adds configuration for HTTPS hooks as well as the validation checks for
configuration.

- Follow up to SQL Hooks like in #1328 
- Successor to #1246

Relevant section of the specification [is
here](https://github.com/standard-webhooks/standard-webhooks/blob/main/spec/standard-webhooks.md#signature-scheme).

Event names will be introduced closer to completion

Co-authored-by: joel <joel@joels-MacBook-Pro.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant