refactor(mf): API Key longue durée au lieu d OAuth2 client_credentials
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
Le portail Météo France ne propose pas le flow client_credentials gratuit (seulement token OAuth2 court 1h, pas viable, ou API Key longue durée). On simplifie : un seul env METEOFRANCE_API_KEY → Authorization: Bearer. - lib/meteofrance-auth.ts : suppression du cache token + flow refresh - .env.tmpl : ref unique vers vault Infra/Météo France API/api_key - vault item recréé avec api_key (hidden) + created_at + expires_at - CLAUDE.md projet : section rotation API key L onglet 24 h n apparaît qu une fois api_key non vide dans le vault. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a78726076f
commit
a849977fcc
4 changed files with 39 additions and 91 deletions
10
.env.example
10
.env.example
|
|
@ -17,10 +17,6 @@ VIGILANCE_CACHE_TTL=900
|
|||
UMAMI_WEBSITE_ID=
|
||||
UMAMI_SRC=https://analytics.nocleus.com/script.js
|
||||
|
||||
# Météo France API (OAuth2 sur portail-api.meteofrance.fr)
|
||||
# Choisir l'un OU l'autre :
|
||||
# OAuth2 (recommandé prod, refresh auto) :
|
||||
METEOFRANCE_CLIENT_ID=
|
||||
METEOFRANCE_CLIENT_SECRET=
|
||||
# Static token (test seulement, expire 1h) :
|
||||
METEOFRANCE_STATIC_TOKEN=
|
||||
# Météo France API (portail-api.meteofrance.fr)
|
||||
# API Key longue durée — Authorization: Bearer <key>
|
||||
METEOFRANCE_API_KEY=
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue