OSM-Verknüpfung (Modell A): OAuth2-Fundament für Nutzer-Beiträge
- Tabelle user_osm (access_token verschlüsselt at rest via Fernet, Schlüssel aus JWT_SECRET abgeleitet oder OSM_TOKEN_KEY). - Router /api/osm-auth: authorize (signierter state mit user_id+CSRF), callback (Code-Tausch + OSM-Name holen + speichern), status, unlink. - Profil-UI (Settings): "OSM-Konto verknüpfen" / verknüpft-als / trennen, hundehalter-spezifische Motivation. - cryptography in requirements. - Basis für dog=yes-Beiträge + Gamification/Pro (folgt). Staging-Branch. ENV nötig: OSM_CLIENT_ID, OSM_CLIENT_SECRET (Redirect-URI default staging).
This commit is contained in:
parent
4bc7454258
commit
46caa05020
5 changed files with 237 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ pydantic[email]==2.10.6
|
|||
bcrypt==4.3.0
|
||||
PyJWT==2.10.1
|
||||
httpx==0.28.1
|
||||
cryptography==44.0.0
|
||||
openai==1.59.2
|
||||
anthropic==0.49.0
|
||||
pywebpush==2.0.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue