mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
feat: Telegram V3 — Mini App cockpit (initData auth + /tg surface) (#554)
* feat(telegram): Mini App auth — initData validation mints the cloud-auth session cookie * feat(panel): /tg Mini App cockpit — approvals, inbox, read-only board, A2A chat * fix(telegram,panel): unconditional webapp-auth rate limit, future-dated initData rejection, anchored /tg matcher * docs(map,rag): Telegram Mini App auth route, initData validator, (tg) surface --------- Co-authored-by: Renn F <rennf93@users.noreply.github.com>
This commit is contained in:
@@ -34,7 +34,9 @@ class _BrokenRedis:
|
||||
def _app(redis: Any) -> FastAPI:
|
||||
app = FastAPI()
|
||||
app.state.login_redis = redis
|
||||
app.add_middleware(LoginRateLimiter, prefix="/auth", max_attempts=3, window=60)
|
||||
app.add_middleware(
|
||||
LoginRateLimiter, paths=("/auth/login",), max_attempts=3, window=60
|
||||
)
|
||||
|
||||
@app.post("/auth/login")
|
||||
async def login() -> dict[str, bool]:
|
||||
|
||||
Reference in New Issue
Block a user