crossly.client.auth.service 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +95 -0
- package/.vscode/settings.json +24 -0
- package/.vscode/tasks.json +34 -0
- package/README.md +38 -0
- package/contracts/README.md +28 -0
- package/contracts/package-lock.json +30 -0
- package/contracts/package.json +46 -0
- package/contracts/src/index.ts +53 -0
- package/contracts/tsconfig.json +22 -0
- package/dist/app.js +52 -0
- package/dist/app.js.map +1 -0
- package/dist/config.js +29 -0
- package/dist/config.js.map +1 -0
- package/dist/controllers/authController.js +213 -0
- package/dist/controllers/authController.js.map +1 -0
- package/dist/createApp.js +29 -0
- package/dist/createApp.js.map +1 -0
- package/dist/db/migrate.js +96 -0
- package/dist/db/migrate.js.map +1 -0
- package/dist/managers/authManager.js +79 -0
- package/dist/managers/authManager.js.map +1 -0
- package/dist/managers/types.js +2 -0
- package/dist/managers/types.js.map +1 -0
- package/dist/oidc/googleProvider.js +54 -0
- package/dist/oidc/googleProvider.js.map +1 -0
- package/dist/oidc/notConfiguredOidcProvider.js +14 -0
- package/dist/oidc/notConfiguredOidcProvider.js.map +1 -0
- package/dist/oidc/types.js +2 -0
- package/dist/oidc/types.js.map +1 -0
- package/dist/repository/inMemoryClientRepository.js +60 -0
- package/dist/repository/inMemoryClientRepository.js.map +1 -0
- package/dist/repository/pgClientRepository.js +45 -0
- package/dist/repository/pgClientRepository.js.map +1 -0
- package/dist/repository/types.js +2 -0
- package/dist/repository/types.js.map +1 -0
- package/dist/signer/jwtSigner.js +36 -0
- package/dist/signer/jwtSigner.js.map +1 -0
- package/dist/signer/types.js +2 -0
- package/dist/signer/types.js.map +1 -0
- package/docker-compose.yml +25 -0
- package/migrations/0001_create_clients.sql +16 -0
- package/package.json +50 -0
- package/src/app.ts +61 -0
- package/src/config.ts +51 -0
- package/src/controllers/authController.ts +237 -0
- package/src/createApp.ts +45 -0
- package/src/db/migrate.ts +106 -0
- package/src/managers/authManager.ts +105 -0
- package/src/managers/types.ts +59 -0
- package/src/oidc/googleProvider.ts +72 -0
- package/src/oidc/notConfiguredOidcProvider.ts +16 -0
- package/src/oidc/types.ts +41 -0
- package/src/repository/inMemoryClientRepository.ts +72 -0
- package/src/repository/pgClientRepository.ts +75 -0
- package/src/repository/types.ts +50 -0
- package/src/signer/jwtSigner.ts +49 -0
- package/src/signer/types.ts +14 -0
- package/tests/integration/auth.api.test.ts +212 -0
- package/tests/integration/fakeOidcProvider.ts +32 -0
- package/tests/unit/authManager.test.ts +87 -0
- package/tests/unit/clientRepository.test.ts +115 -0
- package/tests/unit/jwtSigner.test.ts +42 -0
- package/tests/unit/resolveLogin.test.ts +86 -0
- package/tsconfig.build.json +11 -0
- package/tsconfig.json +24 -0
- package/tsconfig.test.json +25 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "bundler",
|
|
6
|
+
"outDir": "./dist-tests",
|
|
7
|
+
"rootDir": "./",
|
|
8
|
+
"paths": {
|
|
9
|
+
"@textyly/crossly-client-auth-contracts": ["./contracts/dist/index.d.ts"]
|
|
10
|
+
},
|
|
11
|
+
"strict": true,
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"inlineSources": true,
|
|
14
|
+
"esModuleInterop": true
|
|
15
|
+
},
|
|
16
|
+
"include": [
|
|
17
|
+
"tests/unit/**/*",
|
|
18
|
+
"tests/integration/**/*"
|
|
19
|
+
],
|
|
20
|
+
"exclude": [
|
|
21
|
+
"node_modules",
|
|
22
|
+
"dist",
|
|
23
|
+
"dist-tests"
|
|
24
|
+
]
|
|
25
|
+
}
|