Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Implement Enhanced Authentication Flow and API Updates #59

Merged
merged 10 commits into from
Jan 24, 2025
4 changes: 1 addition & 3 deletions .env.exmaple
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
SD_BACKEND_URL="https://localhost:8080/v2"
SD_BACKEND_URL="https://localhost:8080"

SD_CLIENT_ID=""
SD_AUTHORITY_URL=""
SD_REDIRECT_URL="https://localhost/signin-oidc"
SD_LOGOUT_REDIRECT_URL="https://localhost/signout-callback-oidc"
10 changes: 6 additions & 4 deletions farm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export default defineConfig((cfg) => {
SD_BACKEND_URL: process.env.SD_BACKEND_URL,
SD_CLIENT_ID: process.env.SD_CLIENT_ID,
SD_AUTHORITY_URL: process.env.SD_AUTHORITY_URL,
SD_REDIRECT_URL: process.env.SD_REDIRECT_URL,
SD_LOGOUT_REDIRECT_URL: process.env.SD_LOGOUT_REDIRECT_URL
};

for (const [key, value] of Object.entries(env)) {
Expand All @@ -34,8 +32,12 @@ export default defineConfig((cfg) => {
envPrefix: "SD_",
server: {
proxy: {
"/api": {
target: "https://status.cloudmon.eco.tsi-dev.otc-service.com",
"/auth": {
target: "http://localhost:8000",
changeOrigin: true
},
"/v2": {
target: "http://localhost:8000",
changeOrigin: true
}
}
Expand Down
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
"test": "vitest"
},
"dependencies": {
"@fluentui/react-components": "^9.57.0",
"@fluentui/react-components": "^9.58.0",
"@telekom/scale-components": "3.0.0-beta.155",
"@telekom/scale-components-react": "3.0.0-beta.155",
"ahooks": "^3.8.4",
"dayjs": "^1.11.13",
"idb": "^8.0.1",
"jwt-decode": "^4.0.0",
"lodash": "^4.17.21",
"oidc-client-ts": "^3.1.0",
"react": "^19.0.0",
Expand All @@ -30,11 +31,12 @@
"@farmfe/core": "^1.6.6",
"@farmfe/js-plugin-postcss": "^1.11.1",
"@farmfe/plugin-react": "^1.2.6",
"@tailwindcss/postcss": "^4.0.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@types/lodash": "^4.17.14",
"@types/node": "^22.10.7",
"@types/react": "^19.0.7",
"@types/node": "^22.10.10",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@types/react-helmet": "^6.1.11",
"autoprefixer": "^10.4.20",
Expand All @@ -45,11 +47,11 @@
"jsdom": "^26.0.0",
"postcss": "^8.5.1",
"react-refresh": "^0.16.0",
"tailwindcss": "^3.4.17",
"tailwindcss": "^4.0.0",
"tailwindcss-scoped-preflight": "^3.4.10",
"typescript-eslint": "^8.20.0",
"vite": "^6.0.7",
"vitest": "^3.0.1"
"typescript-eslint": "^8.21.0",
"vite": "^6.0.11",
"vitest": "^3.0.4"
},
"packageManager": "[email protected]"
}
Loading
Loading