Repository navigation
Releases: savyjs/traefik-telegram-initdata-introspector
Release list
release v0.0.15
Full Changelog: v0.0.14...v0.0.15
Initial Release
Release v1.0.0 🎉
Initial Release of Telegram MiniApp InitData Validator Middleware
Telegram MiniApp InitData Validator is a middleware plugin for Traefik that validates Telegram MiniApp user InitData payloads and injects the decoded payload as a header to the request. This is particularly useful for applications that need to verify the integrity of requests originating from Telegram.
The middleware checks if the InitData (user authentication data) is provided in the specified authorization header. If present, it validates the payload by calculating an HMAC using the Telegram bot token. If the validation passes, the decoded payload is injected as a header into the request.
If you want to verify that a request is authenticated by Telegram, look for the authHeader in your request. Upon successful validation, the payload is available in the header specified by proxyHeaderName.