mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 13:52:51 +00:00
# Which Problems Are Solved HTTP Request to HTTP providers for Email or SMS are not signed. # How the Problems Are Solved Add a Signing Key to the HTTP Provider resources, which is then used to generate a header to sign the payload. # Additional Changes Additional tests for query side of the SMTP provider. # Additional Context Closes #10067 --------- Co-authored-by: Marco A. <[email protected]>
19 lines
239 B
Go
19 lines
239 B
Go
package webhook
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
)
|
|
|
|
type Config struct {
|
|
CallURL string
|
|
Method string
|
|
Headers http.Header
|
|
SigningKey string
|
|
}
|
|
|
|
func (w *Config) Validate() error {
|
|
_, err := url.Parse(w.CallURL)
|
|
return err
|
|
}
|