fix(auth): corrections runtime LinkedIn OAuth (#88)

- Workaround nonce OIDC LinkedIn (non-conformité) : capture MissingClaimError après échange de code réussi et fetch userinfo séparément
- Ajout token_endpoint_auth_method: client_secret_post (requis par LinkedIn)
- suppress_callback_exceptions=True pour corriger les erreurs Dash multi-pages
- Suppression bouton déconnexion redondant sur /compte/admin et style hover incorrect sur la navbar

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Colin Maudry
2026-06-25 00:38:01 +02:00
parent 5a702ac77e
commit 590b927e31
9 changed files with 48 additions and 9 deletions
+4 -1
View File
@@ -14,13 +14,16 @@ from src.utils import get_last_modified, logger
def should_rebuild(db_path: Path, parquet_path: str) -> bool:
db_path = Path(db_path)
if not db_path.exists():
logger.info("Fichier DuckDB inexistant.")
return True
dev = os.getenv("DEVELOPMENT", "False").lower() == "true"
force = os.getenv("REBUILD_DUCKDB", "False").lower() == "true"
if dev and not force:
return False
last_modified: float = get_last_modified(parquet_path)
return last_modified > db_path.stat().st_mtime
fresh_parquet = last_modified > db_path.stat().st_mtime
logger.info(f"Parquet plus récent : {str(fresh_parquet)}")
return fresh_parquet
def _load_source_frame() -> pl.DataFrame: