(backend) wip introduce a token exchange endpoint

This commit is contained in:
lebaudantoine
2026-08-01 15:52:37 +02:00
parent cc9dae66db
commit 11c331dfa7
20 changed files with 1153 additions and 0 deletions
+11
View File
@@ -97,3 +97,14 @@ class ConnectionTestAnonRateThrottle(MonitoredAnonRateThrottle):
"""Throttle anonymous users requesting connection test tokens."""
scope = "connection_test"
class ExchangeAccessTokenAnonRateThrottle(MonitoredAnonRateThrottle):
"""Throttle anonymous transit code exchange attempts.
Abuse mitigation only, not a security boundary: DRF throttling is
best-effort. The security of the exchange rests on the codes'
entropy and single use.
"""
scope = "exchange_access_token"