1
0
mirror of https://github.com/nikoksr/notify.git synced 2025-03-19 21:08:48 +02:00

11 Commits

Author SHA1 Message Date
Niko Köser
f433aedcb5
refactor(sec): add ReadHeaderTimeout to verification server
WaitForOneOffVerification now uses a ReadHeaderTimeout of 20 seconds by
default. This is to avoid potential slow loris attacks which means
blocking a connection for too long. In case that the user wants to
provide a custom timeout, I added the
WaitForOneOffVerificationWithServer method. It works identical to
WaitForOneOffVerification with the subtle difference that the user can
pass in a fully customized http.Server instance.

This closes gosec G112.
2022-08-04 15:49:58 +02:00
gtourkas
43d3c4e5c0 build-passing commit 2021-04-23 21:09:02 +03:00
George Tourkas
e874e41a36
renaming callback to clarify intent
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-23 21:05:36 +03:00
George Tourkas
28ee79a6bc
renaming callback to clarify intent
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-23 21:05:09 +03:00
gtourkas
da3ffb0a7d build-passing commit 2021-04-15 12:12:28 +03:00
George Tourkas
2b791ae0ba
using configured cache
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-15 11:43:19 +03:00
George Tourkas
8898e786b0
using notify's style in object creation
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-15 10:53:25 +03:00
George Tourkas
247c1861b5
using notify's style in object creation
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-15 10:53:15 +03:00
George Tourkas
4167bec547
using notify's style in object creation
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-15 10:52:58 +03:00
George Tourkas
66d7a877f2
using notify's style in error checking
Co-authored-by: Niko Köser <koeserniko@gmail.com>
2021-04-15 10:52:22 +03:00
gtourkas
ebe28ca829 feat: added support for WeChat 2021-03-21 18:54:10 +02:00