@things-factory/auth-base 8.0.8 → 8.0.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/auth-base",
3
- "version": "8.0.8",
3
+ "version": "8.0.13",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@simplewebauthn/browser": "^13.0.0",
34
34
  "@simplewebauthn/server": "^13.0.0",
35
- "@things-factory/email-base": "^8.0.8",
35
+ "@things-factory/email-base": "^8.0.13",
36
36
  "@things-factory/env": "^8.0.8",
37
- "@things-factory/shell": "^8.0.8",
37
+ "@things-factory/shell": "^8.0.13",
38
38
  "@things-factory/utils": "^8.0.8",
39
39
  "@types/webappsec-credential-management": "^0.6.9",
40
40
  "jsonwebtoken": "^9.0.0",
@@ -46,5 +46,5 @@
46
46
  "passport-jwt": "^4.0.0",
47
47
  "passport-local": "^1.0.0"
48
48
  },
49
- "gitHead": "2f53ec5833616a278c1f5fc057a5ce50f309cebd"
49
+ "gitHead": "66c1356c18b5c9a21e8280460eb40020f7ea2b37"
50
50
  }
package/server/routes.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { config } from '@things-factory/env'
2
+ import { getRoutePrefixForDomainType } from '@things-factory/shell'
2
3
 
3
4
  import { domainAuthenticateMiddleware, jwtAuthenticateMiddleware } from './middlewares'
4
5
  import {
@@ -39,8 +40,8 @@ process.on('bootstrap-module-global-public-route' as any, (app, globalPublicRout
39
40
  process.on('bootstrap-module-global-private-route' as any, (app, globalPrivateRouter) => {
40
41
  globalPrivateRouter.use(jwtAuthenticateMiddleware)
41
42
 
42
- /* globalPrivateRouter based nested-routers */
43
43
  globalPrivateRouter.use(authCheckinRouter.routes(), authCheckinRouter.allowedMethods())
44
+ /* globalPrivateRouter based nested-routers */
44
45
  globalPrivateRouter.use(authPrivateProcessRouter.routes(), authPrivateProcessRouter.allowedMethods())
45
46
  globalPrivateRouter.use(webAuthnGlobalPrivateRouter.routes(), webAuthnGlobalPrivateRouter.allowedMethods())
46
47
  })
@@ -65,11 +66,15 @@ process.on('bootstrap-module-domain-private-route' as any, (app, domainPrivateRo
65
66
  // (보통, URL 링크등을 통해서 domain path URL로 바로 요청하는 경우에 해당한다.)
66
67
  // pathBaseDomainRouter는 domain path를 domain-private-router를 사용하는 것을 전제로 한다.
67
68
  domainPrivateRouter.use(
68
- '/:domainType/:domain/oauth',
69
+ `/${getRoutePrefixForDomainType()}/:domain/oauth`,
69
70
  oauth2AuthorizeRouter.routes(),
70
71
  oauth2AuthorizeRouter.allowedMethods()
71
72
  )
72
- domainPrivateRouter.use('/domain', pathBaseDomainRouter.routes(), pathBaseDomainRouter.allowedMethods())
73
+ domainPrivateRouter.use(
74
+ `/${getRoutePrefixForDomainType()}`,
75
+ pathBaseDomainRouter.routes(),
76
+ pathBaseDomainRouter.allowedMethods()
77
+ )
73
78
  }
74
79
 
75
80
  // Client Routing : path 확장자가 없는 경우는 대부분 client 라우팅에 해당한다.