feat(auth): PKCE flow preparation + CallbackPage dual-mode
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 29s
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 29s
- Add oauth.ts — PKCE helpers (code verifier/challenge, token exchange) - Add LoginButton — "Se connecter avec SuperOAuth" component - Update CallbackPage — handles both PKCE (?code) and legacy (?token) flows - Update .env.example — VITE_OAUTH_URL + VITE_OAUTH_CLIENT_ID PKCE flow ready for when SuperOAuth exposes /oauth/authorize endpoint. Legacy flow (redirect + token query param) remains active in production.
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
# Le flow : /api/v1/auth/oauth/:provider?redirectUrl=<callback_url>
|
||||
# Valeur : voir brain/MYSECRETS section originsdigital
|
||||
VITE_SUPEROAUTH_URL=
|
||||
|
||||
# SuperOAuth PKCE (Step 3) — flow authorization_code avec PKCE
|
||||
VITE_OAUTH_URL=https://oauth.tetardtek.com
|
||||
VITE_OAUTH_CLIENT_ID=originsdigital
|
||||
|
||||
Reference in New Issue
Block a user