feat(oidc): implement OIDC authentication flow and user management

This commit is contained in:
Daniel Volz
2025-12-28 01:13:03 +01:00
parent bd5c864e84
commit 3ffdb8a5fe
15 changed files with 578 additions and 53 deletions
+38 -6
View File
@@ -1,11 +1,11 @@
{
"name": "medassist-monorepo",
"name": "medassist-ng-monorepo",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "medassist-monorepo",
"name": "medassist-ng-monorepo",
"version": "0.1.0",
"workspaces": [
"backend",
@@ -13,7 +13,7 @@
]
},
"backend": {
"name": "medassist-backend",
"name": "medassist-ng-backend",
"version": "0.1.0",
"dependencies": {
"@fastify/cookie": "^10.0.1",
@@ -30,6 +30,7 @@
"drizzle-orm": "^0.32.2",
"fastify": "^5.0.0",
"nodemailer": "^6.10.1",
"openid-client": "^6.8.1",
"zod": "^3.23.8"
},
"devDependencies": {
@@ -40,7 +41,7 @@
}
},
"frontend": {
"name": "medassist-frontend",
"name": "medassist-ng-frontend",
"version": "0.1.0",
"dependencies": {
"i18next": "^24.2.2",
@@ -4218,6 +4219,15 @@
"url": "https://github.com/sponsors/isaacs"
}
},
"node_modules/jose": {
"version": "6.1.3",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz",
"integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
}
},
"node_modules/js-base64": {
"version": "3.7.8",
"resolved": "https://registry.npmjs.org/js-base64/-/js-base64-3.7.8.tgz",
@@ -4369,11 +4379,11 @@
"yallist": "^3.0.2"
}
},
"node_modules/medassist-backend": {
"node_modules/medassist-ng-backend": {
"resolved": "backend",
"link": true
},
"node_modules/medassist-frontend": {
"node_modules/medassist-ng-frontend": {
"resolved": "frontend",
"link": true
},
@@ -4562,6 +4572,15 @@
"node": ">=6.0.0"
}
},
"node_modules/oauth4webapi": {
"version": "3.8.3",
"resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.3.tgz",
"integrity": "sha512-pQ5BsX3QRTgnt5HxgHwgunIRaDXBdkT23tf8dfzmtTIL2LTpdmxgbpbBm0VgFWAIDlezQvQCTgnVIUmHupXHxw==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
}
},
"node_modules/obliterator": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/obliterator/-/obliterator-2.0.5.tgz",
@@ -4577,6 +4596,19 @@
"node": ">=14.0.0"
}
},
"node_modules/openid-client": {
"version": "6.8.1",
"resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.1.tgz",
"integrity": "sha512-VoYT6enBo6Vj2j3Q5Ec0AezS+9YGzQo1f5Xc42lreMGlfP4ljiXPKVDvCADh+XHCV/bqPu/wWSiCVXbJKvrODw==",
"license": "MIT",
"dependencies": {
"jose": "^6.1.0",
"oauth4webapi": "^3.8.2"
},
"funding": {
"url": "https://github.com/sponsors/panva"
}
},
"node_modules/package-json-from-dist": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",