- Add SSO session cleanup task (10-min expiry, 60s purge interval) - Change callback to redirect to frontend with tokens as query params - Add sso_callback_url to SecurityConfig with serde default - Add SsoCallbackPage.tsx for handling SSO callback redirects - Add /auth/sso/callback public route to App.tsx - Add Sign in with Microsoft Azure button to LoginPage - Replace insecure decode_jwt_payload with verify_id_token - Implement JWKS caching (1-hour TTL) and RSA signature verification - Validate iss, aud, exp claims on id_token - Add jsonwebtoken dependency to pm-web crate - Update config.example.toml with sso_callback_url setting - Add sso_callback_url to settings response (read-only from TOML)
39 lines
1008 B
JSON
39 lines
1008 B
JSON
{
|
|
"name": "patch-manager-ui",
|
|
"private": true,
|
|
"version": "0.1.3",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc && vite build",
|
|
"preview": "vite preview",
|
|
"lint": "eslint src/ --ext .ts,.tsx --max-warnings 0",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@emotion/react": "^11.14.0",
|
|
"@emotion/styled": "^11.14.0",
|
|
"@mui/icons-material": "^7.0.0",
|
|
"@mui/material": "^7.0.0",
|
|
"@types/qrcode": "^1.5.6",
|
|
"axios": "^1.9.0",
|
|
"jszip": "^3.10.1",
|
|
"qrcode": "^1.5.4",
|
|
"react": "^19.0.0",
|
|
"react-dom": "^19.0.0",
|
|
"react-router-dom": "^7.5.3",
|
|
"zustand": "^5.0.3"
|
|
},
|
|
"devDependencies": {
|
|
"@types/react": "^19.0.0",
|
|
"@types/react-dom": "^19.0.0",
|
|
"@typescript-eslint/eslint-plugin": "^8.30.0",
|
|
"@typescript-eslint/parser": "^8.30.0",
|
|
"@vitejs/plugin-react": "^4.4.1",
|
|
"eslint": "^9.24.0",
|
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
"typescript": "^5.8.3",
|
|
"vite": "^6.3.3"
|
|
}
|
|
}
|