@acorex-platform/module-security-management-server 0.0.18 → 2.0.0-next.42

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.
Files changed (453) hide show
  1. package/contracts/src/AXM_USER_ACCESS_STATE_DEFINITION_KEY.js.map +1 -1
  2. package/contracts/src/AXM_USER_EFFECTIVE_STATE_DEFINITION_KEY.js.map +1 -1
  3. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.d.ts +2 -0
  4. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js +6 -0
  5. package/contracts/src/ROLE_PERMISSIONS_PAGE_COMPONENT_KEY.js.map +1 -0
  6. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.d.ts +1 -0
  7. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js +5 -0
  8. package/contracts/src/USER_ROLES_PAGE_COMPONENT_KEY.js.map +1 -0
  9. package/contracts/src/create-application-role-rows.util.d.ts +15 -0
  10. package/contracts/src/create-application-role-rows.util.js +67 -0
  11. package/contracts/src/create-application-role-rows.util.js.map +1 -0
  12. package/contracts/src/device-session-admin-scope.d.ts +15 -0
  13. package/contracts/src/device-session-admin-scope.js +16 -0
  14. package/contracts/src/device-session-admin-scope.js.map +1 -0
  15. package/contracts/src/entities/device-sessions/device-sessions.entity.js +50 -1
  16. package/contracts/src/entities/device-sessions/device-sessions.entity.js.map +1 -1
  17. package/contracts/src/entities/device-sessions/device-sessions.types.d.ts +7 -0
  18. package/contracts/src/entities/device-sessions/device-sessions.types.js.map +1 -1
  19. package/contracts/src/entities/device-sessions/index.d.ts +0 -1
  20. package/contracts/src/entities/device-sessions/index.js +0 -1
  21. package/contracts/src/entities/device-sessions/index.js.map +1 -1
  22. package/contracts/src/entities/identity-provider/identity-provider.entity.d.ts +2 -0
  23. package/contracts/src/entities/identity-provider/identity-provider.entity.js +453 -0
  24. package/contracts/src/entities/identity-provider/identity-provider.entity.js.map +1 -0
  25. package/contracts/src/entities/identity-provider/identity-provider.types.d.ts +61 -0
  26. package/contracts/src/entities/identity-provider/identity-provider.types.js +14 -0
  27. package/contracts/src/entities/identity-provider/identity-provider.types.js.map +1 -0
  28. package/contracts/src/entities/identity-provider/index.d.ts +1 -0
  29. package/contracts/src/entities/identity-provider/index.js +5 -0
  30. package/contracts/src/entities/identity-provider/index.js.map +1 -0
  31. package/contracts/src/entities/index.d.ts +4 -0
  32. package/contracts/src/entities/index.js +4 -0
  33. package/contracts/src/entities/index.js.map +1 -1
  34. package/contracts/src/entities/policy/index.d.ts +0 -1
  35. package/contracts/src/entities/policy/index.js +0 -1
  36. package/contracts/src/entities/policy/index.js.map +1 -1
  37. package/contracts/src/entities/policy/policy.entity.js +15 -0
  38. package/contracts/src/entities/policy/policy.entity.js.map +1 -1
  39. package/contracts/src/entities/policy/policy.types.js.map +1 -1
  40. package/contracts/src/entities/profile/index.d.ts +0 -1
  41. package/contracts/src/entities/profile/index.js +0 -1
  42. package/contracts/src/entities/profile/index.js.map +1 -1
  43. package/contracts/src/entities/profile/profile.entity.js +15 -0
  44. package/contracts/src/entities/profile/profile.entity.js.map +1 -1
  45. package/contracts/src/entities/profile/profile.types.js.map +1 -1
  46. package/contracts/src/entities/role-permission/index.d.ts +1 -0
  47. package/contracts/src/entities/role-permission/index.js +5 -0
  48. package/contracts/src/entities/role-permission/index.js.map +1 -0
  49. package/contracts/src/entities/role-permission/role-permission.entity.d.ts +2 -0
  50. package/contracts/src/entities/role-permission/role-permission.entity.js +163 -0
  51. package/contracts/src/entities/role-permission/role-permission.entity.js.map +1 -0
  52. package/contracts/src/entities/role-permission/role-permission.types.d.ts +11 -0
  53. package/contracts/src/entities/role-permission/role-permission.types.js +5 -0
  54. package/contracts/src/entities/role-permission/role-permission.types.js.map +1 -0
  55. package/contracts/src/entities/roles/index.d.ts +0 -1
  56. package/contracts/src/entities/roles/index.js +0 -1
  57. package/contracts/src/entities/roles/index.js.map +1 -1
  58. package/contracts/src/entities/roles/roles.entity.js +73 -144
  59. package/contracts/src/entities/roles/roles.entity.js.map +1 -1
  60. package/contracts/src/entities/roles/roles.types.d.ts +4 -1
  61. package/contracts/src/entities/roles/roles.types.js.map +1 -1
  62. package/contracts/src/entities/user-role/index.d.ts +1 -0
  63. package/{src/lib/seed/tenant → contracts/src/entities/user-role}/index.js +1 -1
  64. package/contracts/src/entities/user-role/index.js.map +1 -0
  65. package/contracts/src/entities/user-role/user-role.entity.d.ts +2 -0
  66. package/contracts/src/entities/user-role/user-role.entity.js +164 -0
  67. package/contracts/src/entities/user-role/user-role.entity.js.map +1 -0
  68. package/contracts/src/entities/user-role/user-role.types.d.ts +11 -0
  69. package/contracts/src/entities/user-role/user-role.types.js +5 -0
  70. package/contracts/src/entities/user-role/user-role.types.js.map +1 -0
  71. package/contracts/src/entities/user-two-factor/index.d.ts +2 -0
  72. package/contracts/src/entities/user-two-factor/index.js +8 -0
  73. package/contracts/src/entities/user-two-factor/index.js.map +1 -0
  74. package/contracts/src/entities/user-two-factor/user-two-factor.entity.d.ts +6 -0
  75. package/contracts/src/entities/user-two-factor/user-two-factor.entity.js +103 -0
  76. package/contracts/src/entities/user-two-factor/user-two-factor.entity.js.map +1 -0
  77. package/contracts/src/entities/user-two-factor/user-two-factor.types.d.ts +24 -0
  78. package/contracts/src/entities/user-two-factor/user-two-factor.types.js +4 -0
  79. package/contracts/src/entities/user-two-factor/user-two-factor.types.js.map +1 -0
  80. package/contracts/src/entities/users/index.d.ts +1 -1
  81. package/contracts/src/entities/users/index.js +1 -1
  82. package/contracts/src/entities/users/index.js.map +1 -1
  83. package/contracts/src/entities/users/user-provisioning-list-actions.d.ts +8 -0
  84. package/contracts/src/entities/users/user-provisioning-list-actions.js +95 -0
  85. package/contracts/src/entities/users/user-provisioning-list-actions.js.map +1 -0
  86. package/contracts/src/entities/users/users.entity.js +244 -83
  87. package/contracts/src/entities/users/users.entity.js.map +1 -1
  88. package/contracts/src/entities/users/users.types.d.ts +15 -0
  89. package/contracts/src/entities/users/users.types.js.map +1 -1
  90. package/contracts/src/entity-catalog.d.ts +7 -0
  91. package/contracts/src/entity-catalog.js +28 -0
  92. package/contracts/src/entity-catalog.js.map +1 -0
  93. package/contracts/src/entity-entry.device-sessions.d.ts +1 -0
  94. package/contracts/src/entity-entry.device-sessions.js +6 -0
  95. package/contracts/src/entity-entry.device-sessions.js.map +1 -0
  96. package/contracts/src/entity-entry.identity-provider.d.ts +1 -0
  97. package/contracts/src/entity-entry.identity-provider.js +6 -0
  98. package/contracts/src/entity-entry.identity-provider.js.map +1 -0
  99. package/contracts/src/entity-entry.policy.d.ts +1 -0
  100. package/contracts/src/entity-entry.policy.js +6 -0
  101. package/contracts/src/entity-entry.policy.js.map +1 -0
  102. package/contracts/src/entity-entry.profile.d.ts +1 -0
  103. package/contracts/src/entity-entry.profile.js +6 -0
  104. package/contracts/src/entity-entry.profile.js.map +1 -0
  105. package/contracts/src/entity-entry.role-permission.d.ts +1 -0
  106. package/contracts/src/entity-entry.role-permission.js +6 -0
  107. package/contracts/src/entity-entry.role-permission.js.map +1 -0
  108. package/contracts/src/entity-entry.roles.d.ts +1 -0
  109. package/contracts/src/entity-entry.roles.js +6 -0
  110. package/contracts/src/entity-entry.roles.js.map +1 -0
  111. package/contracts/src/entity-entry.user-role.d.ts +1 -0
  112. package/contracts/src/entity-entry.user-role.js +6 -0
  113. package/contracts/src/entity-entry.user-role.js.map +1 -0
  114. package/contracts/src/entity-entry.user-two-factor.d.ts +1 -0
  115. package/contracts/src/entity-entry.user-two-factor.js +6 -0
  116. package/contracts/src/entity-entry.user-two-factor.js.map +1 -0
  117. package/contracts/src/entity-entry.users.d.ts +1 -0
  118. package/contracts/src/entity-entry.users.js +6 -0
  119. package/contracts/src/entity-entry.users.js.map +1 -0
  120. package/contracts/src/features.keys.d.ts +4 -0
  121. package/contracts/src/features.keys.js +4 -0
  122. package/contracts/src/features.keys.js.map +1 -1
  123. package/contracts/src/index.d.ts +10 -1
  124. package/contracts/src/index.js +10 -1
  125. package/contracts/src/index.js.map +1 -1
  126. package/contracts/src/invite-application-role-rows.util.d.ts +16 -0
  127. package/contracts/src/invite-application-role-rows.util.js +68 -0
  128. package/contracts/src/invite-application-role-rows.util.js.map +1 -0
  129. package/contracts/src/invite-assignable-roles.util.d.ts +34 -0
  130. package/contracts/src/invite-assignable-roles.util.js +75 -0
  131. package/contracts/src/invite-assignable-roles.util.js.map +1 -0
  132. package/contracts/src/lib/context.definitions.d.ts +2 -0
  133. package/contracts/src/lib/context.definitions.js +15 -0
  134. package/contracts/src/lib/context.definitions.js.map +1 -0
  135. package/contracts/src/manifest.d.ts +6 -0
  136. package/contracts/src/manifest.js +24 -0
  137. package/contracts/src/manifest.js.map +1 -0
  138. package/contracts/src/menu.keys.d.ts +1 -0
  139. package/contracts/src/menu.keys.js +1 -0
  140. package/contracts/src/menu.keys.js.map +1 -1
  141. package/contracts/src/permission.keys.d.ts +48 -18
  142. package/contracts/src/permission.keys.js +49 -21
  143. package/contracts/src/permission.keys.js.map +1 -1
  144. package/contracts/src/resolve-user-effective-state.js.map +1 -1
  145. package/contracts/src/root-config.d.ts +33 -0
  146. package/contracts/src/root-config.js +33 -0
  147. package/contracts/src/root-config.js.map +1 -1
  148. package/contracts/src/server-commands.d.ts +322 -0
  149. package/contracts/src/server-commands.js +77 -1
  150. package/contracts/src/server-commands.js.map +1 -1
  151. package/contracts/src/settings.keys.d.ts +16 -0
  152. package/contracts/src/settings.keys.js +21 -0
  153. package/contracts/src/settings.keys.js.map +1 -0
  154. package/contracts/src/user-access-state.js.map +1 -1
  155. package/contracts/src/user-effective-state.js.map +1 -1
  156. package/contracts/src/user-invitation.d.ts +41 -0
  157. package/contracts/src/user-invitation.js +18 -0
  158. package/contracts/src/user-invitation.js.map +1 -0
  159. package/contracts/src/user-password-reset.js.map +1 -1
  160. package/package.json +16 -18
  161. package/server/src/index.d.ts +3 -0
  162. package/server/src/index.js +11 -0
  163. package/server/src/index.js.map +1 -0
  164. package/server/src/lib/effective-access-history/effective-access-history.service.d.ts +35 -0
  165. package/server/src/lib/effective-access-history/effective-access-history.service.js +486 -0
  166. package/server/src/lib/effective-access-history/effective-access-history.service.js.map +1 -0
  167. package/server/src/lib/effective-access-history/effective-access-history.types.d.ts +64 -0
  168. package/server/src/lib/effective-access-history/effective-access-history.types.js +5 -0
  169. package/server/src/lib/effective-access-history/effective-access-history.types.js.map +1 -0
  170. package/server/src/lib/effective-access-history/version-as-of.util.d.ts +37 -0
  171. package/server/src/lib/effective-access-history/version-as-of.util.js +167 -0
  172. package/server/src/lib/effective-access-history/version-as-of.util.js.map +1 -0
  173. package/server/src/lib/entities/index.d.ts +1 -0
  174. package/server/src/lib/entities/index.js +5 -0
  175. package/{src/lib/seed/tenant → server/src/lib/entities}/index.js.map +1 -1
  176. package/server/src/lib/entities/security-management.entity-catalog.d.ts +1 -0
  177. package/server/src/lib/entities/security-management.entity-catalog.js +12 -0
  178. package/server/src/lib/entities/security-management.entity-catalog.js.map +1 -0
  179. package/server/src/lib/handlers/security-report.handlers.d.ts +36 -0
  180. package/server/src/lib/handlers/security-report.handlers.js +164 -0
  181. package/server/src/lib/handlers/security-report.handlers.js.map +1 -0
  182. package/server/src/lib/identity-provider/auth-oauth-clients.constants.d.ts +5 -0
  183. package/server/src/lib/identity-provider/auth-oauth-clients.constants.js +11 -0
  184. package/server/src/lib/identity-provider/auth-oauth-clients.constants.js.map +1 -0
  185. package/server/src/lib/identity-provider/identity-provider-catalog.service.d.ts +20 -0
  186. package/server/src/lib/identity-provider/identity-provider-catalog.service.js +169 -0
  187. package/server/src/lib/identity-provider/identity-provider-catalog.service.js.map +1 -0
  188. package/server/src/lib/identity-provider/identity-provider-ids.constants.d.ts +8 -0
  189. package/server/src/lib/identity-provider/identity-provider-ids.constants.js +19 -0
  190. package/server/src/lib/identity-provider/identity-provider-ids.constants.js.map +1 -0
  191. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.d.ts +12 -0
  192. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js +48 -0
  193. package/server/src/lib/identity-provider/identity-provider-stub.bootstrap.js.map +1 -0
  194. package/server/src/lib/identity-provider/identity-provider.constants.d.ts +1 -0
  195. package/server/src/lib/identity-provider/identity-provider.constants.js +7 -0
  196. package/server/src/lib/identity-provider/identity-provider.constants.js.map +1 -0
  197. package/server/src/lib/middlewares/device-sessions-active.middleware.d.ts +15 -0
  198. package/server/src/lib/middlewares/device-sessions-active.middleware.js +76 -0
  199. package/server/src/lib/middlewares/device-sessions-active.middleware.js.map +1 -0
  200. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.d.ts +29 -0
  201. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js +137 -0
  202. package/server/src/lib/middlewares/device-sessions-app-scope.middleware.js.map +1 -0
  203. package/server/src/lib/middlewares/device-sessions-app-scope.util.d.ts +41 -0
  204. package/server/src/lib/middlewares/device-sessions-app-scope.util.js +69 -0
  205. package/server/src/lib/middlewares/device-sessions-app-scope.util.js.map +1 -0
  206. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.d.ts +18 -0
  207. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js +90 -0
  208. package/server/src/lib/middlewares/device-sessions-token-revoke.middleware.js.map +1 -0
  209. package/server/src/lib/middlewares/user-assigned-roles.middleware.d.ts +36 -0
  210. package/server/src/lib/middlewares/user-assigned-roles.middleware.js +359 -0
  211. package/server/src/lib/middlewares/user-assigned-roles.middleware.js.map +1 -0
  212. package/{src → server/src}/lib/middlewares/user-effective-state.middleware.js +1 -1
  213. package/server/src/lib/middlewares/user-effective-state.middleware.js.map +1 -0
  214. package/server/src/lib/middlewares/user-invitation-list.middleware.d.ts +32 -0
  215. package/server/src/lib/middlewares/user-invitation-list.middleware.js +250 -0
  216. package/server/src/lib/middlewares/user-invitation-list.middleware.js.map +1 -0
  217. package/server/src/lib/middlewares/user-profile-write.middleware.d.ts +18 -0
  218. package/server/src/lib/middlewares/user-profile-write.middleware.js +206 -0
  219. package/server/src/lib/middlewares/user-profile-write.middleware.js.map +1 -0
  220. package/server/src/lib/password-reset/change-own-password.command.d.ts +8 -0
  221. package/server/src/lib/password-reset/change-own-password.command.js +38 -0
  222. package/server/src/lib/password-reset/change-own-password.command.js.map +1 -0
  223. package/{src → server/src}/lib/password-reset/complete-password-reset.command.d.ts +3 -4
  224. package/{src → server/src}/lib/password-reset/complete-password-reset.command.js +8 -12
  225. package/server/src/lib/password-reset/complete-password-reset.command.js.map +1 -0
  226. package/server/src/lib/password-reset/get-own-password-status.command.d.ts +8 -0
  227. package/server/src/lib/password-reset/get-own-password-status.command.js +31 -0
  228. package/server/src/lib/password-reset/get-own-password-status.command.js.map +1 -0
  229. package/{src → server/src}/lib/password-reset/send-password-reset-email.command.d.ts +12 -13
  230. package/{src → server/src}/lib/password-reset/send-password-reset-email.command.js +10 -15
  231. package/server/src/lib/password-reset/send-password-reset-email.command.js.map +1 -0
  232. package/server/src/lib/password-reset/user-change-password.service.d.ts +24 -0
  233. package/server/src/lib/password-reset/user-change-password.service.js +92 -0
  234. package/server/src/lib/password-reset/user-change-password.service.js.map +1 -0
  235. package/{src → server/src}/lib/password-reset/user-password-reset.service.d.ts +2 -7
  236. package/{src → server/src}/lib/password-reset/user-password-reset.service.js +29 -90
  237. package/server/src/lib/password-reset/user-password-reset.service.js.map +1 -0
  238. package/server/src/lib/queries/get-permission-holders-history.query.d.ts +4 -0
  239. package/server/src/lib/queries/get-permission-holders-history.query.definition.d.ts +5 -0
  240. package/server/src/lib/queries/get-permission-holders-history.query.definition.js +38 -0
  241. package/server/src/lib/queries/get-permission-holders-history.query.definition.js.map +1 -0
  242. package/server/src/lib/queries/get-permission-holders-history.query.js +25 -0
  243. package/server/src/lib/queries/get-permission-holders-history.query.js.map +1 -0
  244. package/server/src/lib/queries/get-role-holders-history.query.d.ts +4 -0
  245. package/server/src/lib/queries/get-role-holders-history.query.definition.d.ts +5 -0
  246. package/server/src/lib/queries/get-role-holders-history.query.definition.js +38 -0
  247. package/server/src/lib/queries/get-role-holders-history.query.definition.js.map +1 -0
  248. package/server/src/lib/queries/get-role-holders-history.query.js +25 -0
  249. package/server/src/lib/queries/get-role-holders-history.query.js.map +1 -0
  250. package/server/src/lib/queries/get-user-effective-permissions-history.query.d.ts +4 -0
  251. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.d.ts +5 -0
  252. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js +35 -0
  253. package/server/src/lib/queries/get-user-effective-permissions-history.query.definition.js.map +1 -0
  254. package/server/src/lib/queries/get-user-effective-permissions-history.query.js +26 -0
  255. package/server/src/lib/queries/get-user-effective-permissions-history.query.js.map +1 -0
  256. package/server/src/lib/queries/get-user-effective-roles-history.query.d.ts +4 -0
  257. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.d.ts +5 -0
  258. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js +36 -0
  259. package/server/src/lib/queries/get-user-effective-roles-history.query.definition.js.map +1 -0
  260. package/server/src/lib/queries/get-user-effective-roles-history.query.js +25 -0
  261. package/server/src/lib/queries/get-user-effective-roles-history.query.js.map +1 -0
  262. package/server/src/lib/queries/get-user-password-change-history.query.d.ts +4 -0
  263. package/server/src/lib/queries/get-user-password-change-history.query.definition.d.ts +5 -0
  264. package/server/src/lib/queries/get-user-password-change-history.query.definition.js +33 -0
  265. package/server/src/lib/queries/get-user-password-change-history.query.definition.js.map +1 -0
  266. package/server/src/lib/queries/get-user-password-change-history.query.js +23 -0
  267. package/server/src/lib/queries/get-user-password-change-history.query.js.map +1 -0
  268. package/server/src/lib/queries/security-query.helpers.d.ts +47 -0
  269. package/server/src/lib/queries/security-query.helpers.js +184 -0
  270. package/server/src/lib/queries/security-query.helpers.js.map +1 -0
  271. package/server/src/lib/reports/password-change-history.service.d.ts +14 -0
  272. package/server/src/lib/reports/password-change-history.service.js +74 -0
  273. package/server/src/lib/reports/password-change-history.service.js.map +1 -0
  274. package/server/src/lib/reports/permission-display-catalog.d.ts +7 -0
  275. package/server/src/lib/reports/permission-display-catalog.js +101 -0
  276. package/server/src/lib/reports/permission-display-catalog.js.map +1 -0
  277. package/server/src/lib/reports/security-report-definition.provider.d.ts +5 -0
  278. package/server/src/lib/reports/security-report-definition.provider.js +23 -0
  279. package/server/src/lib/reports/security-report-definition.provider.js.map +1 -0
  280. package/server/src/lib/reports/security-report-parameter-groups.d.ts +343 -0
  281. package/server/src/lib/reports/security-report-parameter-groups.js +167 -0
  282. package/server/src/lib/reports/security-report-parameter-groups.js.map +1 -0
  283. package/server/src/lib/reports/security-report-scope.constants.d.ts +5 -0
  284. package/server/src/lib/reports/security-report-scope.constants.js +11 -0
  285. package/server/src/lib/reports/security-report-scope.constants.js.map +1 -0
  286. package/server/src/lib/reports/security-report.definitions.d.ts +12 -0
  287. package/server/src/lib/reports/security-report.definitions.js +386 -0
  288. package/server/src/lib/reports/security-report.definitions.js.map +1 -0
  289. package/server/src/lib/security-management-entity-storage.bootstrap.d.ts +26 -0
  290. package/server/src/lib/security-management-entity-storage.bootstrap.js +56 -0
  291. package/server/src/lib/security-management-entity-storage.bootstrap.js.map +1 -0
  292. package/server/src/lib/security-management-server.module.d.ts +7 -0
  293. package/server/src/lib/security-management-server.module.js +190 -0
  294. package/server/src/lib/security-management-server.module.js.map +1 -0
  295. package/server/src/lib/two-factor/admin-reset-two-factor.command.d.ts +8 -0
  296. package/server/src/lib/two-factor/admin-reset-two-factor.command.js +35 -0
  297. package/server/src/lib/two-factor/admin-reset-two-factor.command.js.map +1 -0
  298. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.d.ts +8 -0
  299. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js +34 -0
  300. package/server/src/lib/two-factor/confirm-two-factor-enrollment.command.js.map +1 -0
  301. package/server/src/lib/two-factor/disable-two-factor.command.d.ts +8 -0
  302. package/server/src/lib/two-factor/disable-two-factor.command.js +31 -0
  303. package/server/src/lib/two-factor/disable-two-factor.command.js.map +1 -0
  304. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.d.ts +8 -0
  305. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js +34 -0
  306. package/server/src/lib/two-factor/generate-two-factor-recovery-codes.command.js.map +1 -0
  307. package/server/src/lib/two-factor/get-two-factor-status.command.d.ts +8 -0
  308. package/server/src/lib/two-factor/get-two-factor-status.command.js +31 -0
  309. package/server/src/lib/two-factor/get-two-factor-status.command.js.map +1 -0
  310. package/server/src/lib/two-factor/recovery-codes.util.d.ts +11 -0
  311. package/server/src/lib/two-factor/recovery-codes.util.js +73 -0
  312. package/server/src/lib/two-factor/recovery-codes.util.js.map +1 -0
  313. package/server/src/lib/two-factor/start-two-factor-enrollment.command.d.ts +8 -0
  314. package/server/src/lib/two-factor/start-two-factor-enrollment.command.js +31 -0
  315. package/server/src/lib/two-factor/start-two-factor-enrollment.command.js.map +1 -0
  316. package/server/src/lib/two-factor/totp.util.d.ts +32 -0
  317. package/server/src/lib/two-factor/totp.util.js +128 -0
  318. package/server/src/lib/two-factor/totp.util.js.map +1 -0
  319. package/server/src/lib/two-factor/two-factor-encryption.util.d.ts +25 -0
  320. package/server/src/lib/two-factor/two-factor-encryption.util.js +123 -0
  321. package/server/src/lib/two-factor/two-factor-encryption.util.js.map +1 -0
  322. package/server/src/lib/two-factor/two-factor-gate.bootstrap.d.ts +9 -0
  323. package/server/src/lib/two-factor/two-factor-gate.bootstrap.js +65 -0
  324. package/server/src/lib/two-factor/two-factor-gate.bootstrap.js.map +1 -0
  325. package/server/src/lib/two-factor/two-factor-redis.store.d.ts +63 -0
  326. package/server/src/lib/two-factor/two-factor-redis.store.js +321 -0
  327. package/server/src/lib/two-factor/two-factor-redis.store.js.map +1 -0
  328. package/server/src/lib/two-factor/user-two-factor.service.d.ts +62 -0
  329. package/server/src/lib/two-factor/user-two-factor.service.js +573 -0
  330. package/server/src/lib/two-factor/user-two-factor.service.js.map +1 -0
  331. package/server/src/lib/two-factor/verify-two-factor-login.command.d.ts +18 -0
  332. package/server/src/lib/two-factor/verify-two-factor-login.command.js +54 -0
  333. package/server/src/lib/two-factor/verify-two-factor-login.command.js.map +1 -0
  334. package/server/src/lib/user-invitation/accept-invitation.command.d.ts +8 -0
  335. package/server/src/lib/user-invitation/accept-invitation.command.js +41 -0
  336. package/server/src/lib/user-invitation/accept-invitation.command.js.map +1 -0
  337. package/server/src/lib/user-invitation/accept-my-invitation.command.d.ts +8 -0
  338. package/server/src/lib/user-invitation/accept-my-invitation.command.js +40 -0
  339. package/server/src/lib/user-invitation/accept-my-invitation.command.js.map +1 -0
  340. package/server/src/lib/user-invitation/approve-join-request.command.d.ts +8 -0
  341. package/server/src/lib/user-invitation/approve-join-request.command.js +41 -0
  342. package/server/src/lib/user-invitation/approve-join-request.command.js.map +1 -0
  343. package/server/src/lib/user-invitation/cancel-invitation.command.d.ts +8 -0
  344. package/server/src/lib/user-invitation/cancel-invitation.command.js +37 -0
  345. package/server/src/lib/user-invitation/cancel-invitation.command.js.map +1 -0
  346. package/server/src/lib/user-invitation/cancel-my-join-request.command.d.ts +8 -0
  347. package/server/src/lib/user-invitation/cancel-my-join-request.command.js +40 -0
  348. package/server/src/lib/user-invitation/cancel-my-join-request.command.js.map +1 -0
  349. package/server/src/lib/user-invitation/create-user-in-tenant.command.d.ts +8 -0
  350. package/server/src/lib/user-invitation/create-user-in-tenant.command.js +37 -0
  351. package/server/src/lib/user-invitation/create-user-in-tenant.command.js.map +1 -0
  352. package/server/src/lib/user-invitation/decline-invitation.command.d.ts +8 -0
  353. package/server/src/lib/user-invitation/decline-invitation.command.js +37 -0
  354. package/server/src/lib/user-invitation/decline-invitation.command.js.map +1 -0
  355. package/server/src/lib/user-invitation/invite-user.command.d.ts +8 -0
  356. package/server/src/lib/user-invitation/invite-user.command.js +37 -0
  357. package/server/src/lib/user-invitation/invite-user.command.js.map +1 -0
  358. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.d.ts +8 -0
  359. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js +41 -0
  360. package/server/src/lib/user-invitation/list-invite-assignable-roles.command.js.map +1 -0
  361. package/server/src/lib/user-invitation/list-my-join-requests.command.d.ts +8 -0
  362. package/server/src/lib/user-invitation/list-my-join-requests.command.js +40 -0
  363. package/server/src/lib/user-invitation/list-my-join-requests.command.js.map +1 -0
  364. package/server/src/lib/user-invitation/list-my-pending-invitations.command.d.ts +8 -0
  365. package/server/src/lib/user-invitation/list-my-pending-invitations.command.js +37 -0
  366. package/server/src/lib/user-invitation/list-my-pending-invitations.command.js.map +1 -0
  367. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.d.ts +8 -0
  368. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js +41 -0
  369. package/server/src/lib/user-invitation/list-tenant-entitled-applications.command.js.map +1 -0
  370. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.d.ts +8 -0
  371. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js +40 -0
  372. package/server/src/lib/user-invitation/lookup-tenant-by-unique-name.command.js.map +1 -0
  373. package/server/src/lib/user-invitation/reject-join-request.command.d.ts +8 -0
  374. package/server/src/lib/user-invitation/reject-join-request.command.js +41 -0
  375. package/server/src/lib/user-invitation/reject-join-request.command.js.map +1 -0
  376. package/server/src/lib/user-invitation/request-tenant-membership.command.d.ts +8 -0
  377. package/server/src/lib/user-invitation/request-tenant-membership.command.js +40 -0
  378. package/server/src/lib/user-invitation/request-tenant-membership.command.js.map +1 -0
  379. package/server/src/lib/user-invitation/resend-invitation.command.d.ts +12 -0
  380. package/server/src/lib/user-invitation/resend-invitation.command.js +37 -0
  381. package/server/src/lib/user-invitation/resend-invitation.command.js.map +1 -0
  382. package/server/src/lib/user-invitation/user-invitation-application-access.util.d.ts +25 -0
  383. package/server/src/lib/user-invitation/user-invitation-application-access.util.js +121 -0
  384. package/server/src/lib/user-invitation/user-invitation-application-access.util.js.map +1 -0
  385. package/server/src/lib/user-invitation/user-invitation.service.d.ts +162 -0
  386. package/server/src/lib/user-invitation/user-invitation.service.js +1658 -0
  387. package/server/src/lib/user-invitation/user-invitation.service.js.map +1 -0
  388. package/contracts/src/datasource.keys.d.ts +0 -4
  389. package/contracts/src/datasource.keys.js +0 -10
  390. package/contracts/src/datasource.keys.js.map +0 -1
  391. package/src/index.d.ts +0 -5
  392. package/src/index.js +0 -13
  393. package/src/index.js.map +0 -1
  394. package/src/lib/middlewares/user-effective-state.middleware.js.map +0 -1
  395. package/src/lib/password-reset/complete-password-reset.command.js.map +0 -1
  396. package/src/lib/password-reset/send-password-reset-email.command.js.map +0 -1
  397. package/src/lib/password-reset/user-password-reset.service.js.map +0 -1
  398. package/src/lib/security-management-server.module.d.ts +0 -2
  399. package/src/lib/security-management-server.module.js +0 -48
  400. package/src/lib/security-management-server.module.js.map +0 -1
  401. package/src/lib/seed/index.d.ts +0 -22
  402. package/src/lib/seed/index.js +0 -24
  403. package/src/lib/seed/index.js.map +0 -1
  404. package/src/lib/seed/policy/index.d.ts +0 -2
  405. package/src/lib/seed/policy/index.js +0 -6
  406. package/src/lib/seed/policy/index.js.map +0 -1
  407. package/src/lib/seed/policy/policy.mock.d.ts +0 -7
  408. package/src/lib/seed/policy/policy.mock.js +0 -40
  409. package/src/lib/seed/policy/policy.mock.js.map +0 -1
  410. package/src/lib/seed/policy/policy.seed.d.ts +0 -5
  411. package/src/lib/seed/policy/policy.seed.js +0 -31
  412. package/src/lib/seed/policy/policy.seed.js.map +0 -1
  413. package/src/lib/seed/role/index.d.ts +0 -4
  414. package/src/lib/seed/role/index.js +0 -8
  415. package/src/lib/seed/role/index.js.map +0 -1
  416. package/src/lib/seed/role/role-ids.constants.d.ts +0 -14
  417. package/src/lib/seed/role/role-ids.constants.js +0 -20
  418. package/src/lib/seed/role/role-ids.constants.js.map +0 -1
  419. package/src/lib/seed/role/role-permission-keys.constants.d.ts +0 -578
  420. package/src/lib/seed/role/role-permission-keys.constants.js +0 -620
  421. package/src/lib/seed/role/role-permission-keys.constants.js.map +0 -1
  422. package/src/lib/seed/role/role.mock.d.ts +0 -4
  423. package/src/lib/seed/role/role.mock.js +0 -321
  424. package/src/lib/seed/role/role.mock.js.map +0 -1
  425. package/src/lib/seed/role/role.seed.d.ts +0 -5
  426. package/src/lib/seed/role/role.seed.js +0 -31
  427. package/src/lib/seed/role/role.seed.js.map +0 -1
  428. package/src/lib/seed/security-management-seed.provider.d.ts +0 -4
  429. package/src/lib/seed/security-management-seed.provider.js +0 -18
  430. package/src/lib/seed/security-management-seed.provider.js.map +0 -1
  431. package/src/lib/seed/security-management-seed.tokens.d.ts +0 -1
  432. package/src/lib/seed/security-management-seed.tokens.js +0 -7
  433. package/src/lib/seed/security-management-seed.tokens.js.map +0 -1
  434. package/src/lib/seed/security-management.seed-catalog.d.ts +0 -2
  435. package/src/lib/seed/security-management.seed-catalog.js +0 -17
  436. package/src/lib/seed/security-management.seed-catalog.js.map +0 -1
  437. package/src/lib/seed/tenant/index.d.ts +0 -1
  438. package/src/lib/seed/tenant/tenant-ids.constants.d.ts +0 -11
  439. package/src/lib/seed/tenant/tenant-ids.constants.js +0 -17
  440. package/src/lib/seed/tenant/tenant-ids.constants.js.map +0 -1
  441. package/src/lib/seed/user/index.d.ts +0 -4
  442. package/src/lib/seed/user/index.js +0 -13
  443. package/src/lib/seed/user/index.js.map +0 -1
  444. package/src/lib/seed/user/resolve-user-effective-state.util.d.ts +0 -4
  445. package/src/lib/seed/user/resolve-user-effective-state.util.js +0 -10
  446. package/src/lib/seed/user/resolve-user-effective-state.util.js.map +0 -1
  447. package/src/lib/seed/user/user.mock.d.ts +0 -21
  448. package/src/lib/seed/user/user.mock.js +0 -338
  449. package/src/lib/seed/user/user.mock.js.map +0 -1
  450. package/src/lib/seed/user/user.seed.d.ts +0 -5
  451. package/src/lib/seed/user/user.seed.js +0 -31
  452. package/src/lib/seed/user/user.seed.js.map +0 -1
  453. /package/{src → server/src}/lib/middlewares/user-effective-state.middleware.d.ts +0 -0
@@ -0,0 +1,453 @@
1
+ "use strict";
2
+ //#region ---- Imports ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.identityProviderFactory = identityProviderFactory;
5
+ const tslib_1 = require("tslib");
6
+ const core_1 = require("@acorex-platform/framework-shared/core");
7
+ const entity_1 = require("@acorex-platform/framework-shared/entity");
8
+ const root_config_1 = require("../../root-config");
9
+ const identity_provider_types_1 = require("./identity-provider.types");
10
+ //#endregion
11
+ //#region ---- Constants ----
12
+ const SECTION_LAYOUT = { positions: { lg: { colSpan: 12 } } };
13
+ const VISIBLE_WHEN_OIDC = `{{ !context.eval('protocol') || context.eval('protocol') == '${identity_provider_types_1.AXM_IDENTITY_PROVIDER_PROTOCOL.Oidc}' }}`;
14
+ const VISIBLE_WHEN_DIRECTORY = `{{ context.eval('protocol') == '${identity_provider_types_1.AXM_IDENTITY_PROVIDER_PROTOCOL.Directory}' }}`;
15
+ const PROTOCOL_ITEMS = [
16
+ {
17
+ name: identity_provider_types_1.AXM_IDENTITY_PROVIDER_PROTOCOL.Oidc,
18
+ title: `@${root_config_1.RootConfig.config.i18n}:identity-providers.entities.identity-provider.fields.protocol.options.oidc`,
19
+ },
20
+ {
21
+ name: identity_provider_types_1.AXM_IDENTITY_PROVIDER_PROTOCOL.Directory,
22
+ title: `@${root_config_1.RootConfig.config.i18n}:identity-providers.entities.identity-provider.fields.protocol.options.directory`,
23
+ },
24
+ ];
25
+ const MASTER_SECTIONS = [
26
+ { id: 'basic-info', layout: SECTION_LAYOUT },
27
+ {
28
+ id: 'endpoints',
29
+ layout: Object.assign(Object.assign({}, SECTION_LAYOUT), { visible: VISIBLE_WHEN_OIDC }),
30
+ },
31
+ {
32
+ id: 'directory',
33
+ layout: Object.assign(Object.assign({}, SECTION_LAYOUT), { visible: VISIBLE_WHEN_DIRECTORY }),
34
+ },
35
+ { id: 'credentials', layout: SECTION_LAYOUT },
36
+ ];
37
+ const MASTER_PROPERTIES = [
38
+ { name: 'protocol', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },
39
+ { name: 'key', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },
40
+ { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 3 } } } },
41
+ { name: 'icon', layout: { positions: { lg: { colSpan: 6, order: 4 } } } },
42
+ { name: 'priority', layout: { positions: { lg: { colSpan: 6, order: 5 } } } },
43
+ { name: 'issuerUrl', layout: { positions: { lg: { colSpan: 12, order: 6 } } } },
44
+ {
45
+ name: 'authorizationUrl',
46
+ layout: { positions: { lg: { colSpan: 12, order: 7 } }, visible: VISIBLE_WHEN_OIDC },
47
+ },
48
+ {
49
+ name: 'tokenUrl',
50
+ layout: { positions: { lg: { colSpan: 12, order: 8 } }, visible: VISIBLE_WHEN_OIDC },
51
+ },
52
+ {
53
+ name: 'userInfoUrl',
54
+ layout: { positions: { lg: { colSpan: 12, order: 9 } }, visible: VISIBLE_WHEN_OIDC },
55
+ },
56
+ {
57
+ name: 'scopes',
58
+ layout: { positions: { lg: { colSpan: 12, order: 10 } }, visible: VISIBLE_WHEN_OIDC },
59
+ },
60
+ {
61
+ name: 'directoryUrl',
62
+ layout: { positions: { lg: { colSpan: 12, order: 11 } }, visible: VISIBLE_WHEN_DIRECTORY },
63
+ },
64
+ {
65
+ name: 'directoryBaseDn',
66
+ layout: { positions: { lg: { colSpan: 12, order: 12 } }, visible: VISIBLE_WHEN_DIRECTORY },
67
+ },
68
+ {
69
+ name: 'directoryUserDnTemplate',
70
+ layout: { positions: { lg: { colSpan: 12, order: 13 } }, visible: VISIBLE_WHEN_DIRECTORY },
71
+ },
72
+ {
73
+ name: 'directoryUserSearchFilter',
74
+ layout: { positions: { lg: { colSpan: 12, order: 14 } }, visible: VISIBLE_WHEN_DIRECTORY },
75
+ },
76
+ {
77
+ name: 'directoryUseTls',
78
+ layout: { positions: { lg: { colSpan: 6, order: 15 } }, visible: VISIBLE_WHEN_DIRECTORY },
79
+ },
80
+ {
81
+ name: 'directoryTlsRejectUnauthorized',
82
+ layout: { positions: { lg: { colSpan: 6, order: 16 } }, visible: VISIBLE_WHEN_DIRECTORY },
83
+ },
84
+ { name: 'clientId', layout: { positions: { lg: { colSpan: 6, order: 17 } } } },
85
+ { name: 'clientSecret', layout: { positions: { lg: { colSpan: 6, order: 18 } } } },
86
+ ];
87
+ //#endregion
88
+ //#region ---- Entity factory ----
89
+ function identityProviderFactory() {
90
+ return tslib_1.__awaiter(this, void 0, void 0, function* () {
91
+ const i18n = root_config_1.RootConfig.config.i18n;
92
+ const entityI18n = `@${i18n}:identity-providers.entities.identity-provider`;
93
+ const entityDef = {
94
+ module: root_config_1.RootConfig.module.name,
95
+ name: root_config_1.RootConfig.entities.identityProvider.name,
96
+ title: root_config_1.RootConfig.entities.identityProvider.title,
97
+ icon: root_config_1.RootConfig.entities.identityProvider.icon,
98
+ searchTags: [
99
+ 'identity-provider',
100
+ 'identity-providers',
101
+ 'idp',
102
+ 'oauth',
103
+ 'saml',
104
+ 'oidc',
105
+ 'federation',
106
+ 'google',
107
+ 'microsoft',
108
+ 'client-id',
109
+ 'ارائه‌دهنده هویت',
110
+ 'ارائه‌دهندگان هویت',
111
+ 'ورود خارجی',
112
+ 'احراز هویت',
113
+ ],
114
+ formats: {
115
+ individual: root_config_1.RootConfig.entities.identityProvider.title,
116
+ plural: root_config_1.RootConfig.entities.identityProvider.titlePlural,
117
+ searchResult: {
118
+ title: '{{ title }}',
119
+ description: root_config_1.RootConfig.module.title,
120
+ },
121
+ },
122
+ plugins: [
123
+ { name: 'history' },
124
+ { name: 'disable' },
125
+ { name: 'unique-fields', options: { fields: 'key', scope: 'global' } },
126
+ ],
127
+ relatedEntities: [],
128
+ groups: [
129
+ {
130
+ id: 'basic-info',
131
+ title: `@general:terms.interface.basic-info`,
132
+ },
133
+ {
134
+ id: 'endpoints',
135
+ title: `${entityI18n}.groups.endpoints`,
136
+ },
137
+ {
138
+ id: 'directory',
139
+ title: `${entityI18n}.groups.directory`,
140
+ },
141
+ {
142
+ id: 'credentials',
143
+ title: `${entityI18n}.groups.credentials`,
144
+ },
145
+ ],
146
+ properties: [
147
+ {
148
+ name: 'protocol',
149
+ title: `${entityI18n}.fields.protocol.title`,
150
+ description: `${entityI18n}.fields.protocol.description`,
151
+ groupId: 'basic-info',
152
+ options: {
153
+ sort: { enabled: true },
154
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
155
+ },
156
+ schema: {
157
+ dataType: 'string',
158
+ defaultValue: identity_provider_types_1.AXM_IDENTITY_PROVIDER_PROTOCOL.Oidc,
159
+ interface: {
160
+ type: core_1.AXPWidgetsCatalog.select,
161
+ options: {
162
+ valueField: 'name',
163
+ textField: 'title',
164
+ multiple: false,
165
+ dataSource: PROTOCOL_ITEMS,
166
+ },
167
+ },
168
+ },
169
+ validations: [{ rule: 'required' }],
170
+ },
171
+ {
172
+ name: 'key',
173
+ title: `${entityI18n}.fields.key.title`,
174
+ groupId: 'basic-info',
175
+ options: {
176
+ sort: { enabled: true },
177
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
178
+ },
179
+ schema: {
180
+ dataType: 'string',
181
+ interface: { type: core_1.AXPWidgetsCatalog.text },
182
+ },
183
+ validations: [{ rule: 'required' }],
184
+ },
185
+ {
186
+ name: 'title',
187
+ title: '@general:terms.common.title',
188
+ groupId: 'basic-info',
189
+ options: {
190
+ sort: { enabled: true },
191
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
192
+ },
193
+ schema: {
194
+ dataType: 'string',
195
+ interface: { type: core_1.AXPWidgetsCatalog.text },
196
+ },
197
+ validations: [{ rule: 'required' }],
198
+ },
199
+ {
200
+ name: 'icon',
201
+ title: `${entityI18n}.fields.icon.title`,
202
+ groupId: 'basic-info',
203
+ options: {
204
+ sort: { enabled: false },
205
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
206
+ },
207
+ schema: {
208
+ dataType: 'string',
209
+ interface: { type: core_1.AXPWidgetsCatalog.text },
210
+ },
211
+ },
212
+ {
213
+ name: 'priority',
214
+ title: `${entityI18n}.fields.priority.title`,
215
+ groupId: 'basic-info',
216
+ options: {
217
+ sort: { enabled: true },
218
+ filter: { advance: { enabled: true }, inline: { enabled: false } },
219
+ },
220
+ schema: {
221
+ dataType: 'number',
222
+ defaultValue: 100,
223
+ interface: { type: core_1.AXPWidgetsCatalog.number },
224
+ },
225
+ },
226
+ {
227
+ name: 'issuerUrl',
228
+ title: `${entityI18n}.fields.issuer-url.title`,
229
+ description: `${entityI18n}.fields.issuer-url.description`,
230
+ groupId: 'basic-info',
231
+ options: {
232
+ sort: { enabled: false },
233
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
234
+ },
235
+ schema: {
236
+ dataType: 'string',
237
+ interface: { type: core_1.AXPWidgetsCatalog.text },
238
+ },
239
+ },
240
+ {
241
+ name: 'authorizationUrl',
242
+ title: `${entityI18n}.fields.authorization-url.title`,
243
+ groupId: 'endpoints',
244
+ options: {
245
+ sort: { enabled: false },
246
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
247
+ },
248
+ schema: {
249
+ dataType: 'string',
250
+ visible: VISIBLE_WHEN_OIDC,
251
+ interface: { type: core_1.AXPWidgetsCatalog.text },
252
+ },
253
+ },
254
+ {
255
+ name: 'tokenUrl',
256
+ title: `${entityI18n}.fields.token-url.title`,
257
+ groupId: 'endpoints',
258
+ options: {
259
+ sort: { enabled: false },
260
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
261
+ },
262
+ schema: {
263
+ dataType: 'string',
264
+ visible: VISIBLE_WHEN_OIDC,
265
+ interface: { type: core_1.AXPWidgetsCatalog.text },
266
+ },
267
+ },
268
+ {
269
+ name: 'userInfoUrl',
270
+ title: `${entityI18n}.fields.user-info-url.title`,
271
+ groupId: 'endpoints',
272
+ options: {
273
+ sort: { enabled: false },
274
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
275
+ },
276
+ schema: {
277
+ dataType: 'string',
278
+ visible: VISIBLE_WHEN_OIDC,
279
+ interface: { type: core_1.AXPWidgetsCatalog.text },
280
+ },
281
+ },
282
+ {
283
+ name: 'scopes',
284
+ title: `${entityI18n}.fields.scopes.title`,
285
+ groupId: 'endpoints',
286
+ options: {
287
+ sort: { enabled: false },
288
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
289
+ },
290
+ schema: {
291
+ dataType: 'string',
292
+ defaultValue: 'openid email profile',
293
+ visible: VISIBLE_WHEN_OIDC,
294
+ interface: { type: core_1.AXPWidgetsCatalog.text },
295
+ },
296
+ },
297
+ {
298
+ name: 'directoryUrl',
299
+ title: `${entityI18n}.fields.directory-url.title`,
300
+ description: `${entityI18n}.fields.directory-url.description`,
301
+ groupId: 'directory',
302
+ options: {
303
+ sort: { enabled: false },
304
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
305
+ },
306
+ schema: {
307
+ dataType: 'string',
308
+ visible: VISIBLE_WHEN_DIRECTORY,
309
+ interface: { type: core_1.AXPWidgetsCatalog.text },
310
+ },
311
+ },
312
+ {
313
+ name: 'directoryBaseDn',
314
+ title: `${entityI18n}.fields.directory-base-dn.title`,
315
+ description: `${entityI18n}.fields.directory-base-dn.description`,
316
+ groupId: 'directory',
317
+ options: {
318
+ sort: { enabled: false },
319
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
320
+ },
321
+ schema: {
322
+ dataType: 'string',
323
+ visible: VISIBLE_WHEN_DIRECTORY,
324
+ interface: { type: core_1.AXPWidgetsCatalog.text },
325
+ },
326
+ },
327
+ {
328
+ name: 'directoryUserDnTemplate',
329
+ title: `${entityI18n}.fields.directory-user-dn-template.title`,
330
+ description: `${entityI18n}.fields.directory-user-dn-template.description`,
331
+ groupId: 'directory',
332
+ options: {
333
+ sort: { enabled: false },
334
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
335
+ },
336
+ schema: {
337
+ dataType: 'string',
338
+ visible: VISIBLE_WHEN_DIRECTORY,
339
+ interface: { type: core_1.AXPWidgetsCatalog.text },
340
+ },
341
+ },
342
+ {
343
+ name: 'directoryUserSearchFilter',
344
+ title: `${entityI18n}.fields.directory-user-search-filter.title`,
345
+ description: `${entityI18n}.fields.directory-user-search-filter.description`,
346
+ groupId: 'directory',
347
+ options: {
348
+ sort: { enabled: false },
349
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
350
+ },
351
+ schema: {
352
+ dataType: 'string',
353
+ visible: VISIBLE_WHEN_DIRECTORY,
354
+ interface: { type: core_1.AXPWidgetsCatalog.text },
355
+ },
356
+ },
357
+ {
358
+ name: 'directoryUseTls',
359
+ title: `${entityI18n}.fields.directory-use-tls.title`,
360
+ description: `${entityI18n}.fields.directory-use-tls.description`,
361
+ groupId: 'directory',
362
+ options: {
363
+ sort: { enabled: false },
364
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
365
+ },
366
+ schema: {
367
+ dataType: 'boolean',
368
+ defaultValue: false,
369
+ visible: VISIBLE_WHEN_DIRECTORY,
370
+ interface: { type: core_1.AXPWidgetsCatalog.toggle },
371
+ },
372
+ },
373
+ {
374
+ name: 'directoryTlsRejectUnauthorized',
375
+ title: `${entityI18n}.fields.directory-tls-reject-unauthorized.title`,
376
+ description: `${entityI18n}.fields.directory-tls-reject-unauthorized.description`,
377
+ groupId: 'directory',
378
+ options: {
379
+ sort: { enabled: false },
380
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
381
+ },
382
+ schema: {
383
+ dataType: 'boolean',
384
+ defaultValue: true,
385
+ visible: VISIBLE_WHEN_DIRECTORY,
386
+ interface: { type: core_1.AXPWidgetsCatalog.toggle },
387
+ },
388
+ },
389
+ {
390
+ name: 'clientId',
391
+ title: `${entityI18n}.fields.client-id.title`,
392
+ description: `${entityI18n}.fields.client-id.description`,
393
+ groupId: 'credentials',
394
+ options: {
395
+ sort: { enabled: false },
396
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
397
+ },
398
+ schema: {
399
+ dataType: 'string',
400
+ interface: { type: core_1.AXPWidgetsCatalog.text },
401
+ },
402
+ },
403
+ {
404
+ name: 'clientSecret',
405
+ title: `${entityI18n}.fields.client-secret.title`,
406
+ description: `${entityI18n}.fields.client-secret.description`,
407
+ groupId: 'credentials',
408
+ options: {
409
+ sort: { enabled: false },
410
+ filter: { advance: { enabled: false }, inline: { enabled: false } },
411
+ },
412
+ schema: {
413
+ dataType: 'string',
414
+ interface: { type: core_1.AXPWidgetsCatalog.password },
415
+ },
416
+ },
417
+ ],
418
+ columns: [{ name: 'protocol' }, { name: 'key' }, { name: 'title' }, { name: 'priority' }],
419
+ interfaces: {
420
+ master: {
421
+ create: {
422
+ sections: [...MASTER_SECTIONS],
423
+ properties: [...MASTER_PROPERTIES],
424
+ },
425
+ update: {
426
+ sections: [...MASTER_SECTIONS],
427
+ properties: [...MASTER_PROPERTIES],
428
+ },
429
+ single: {
430
+ title: '{{title}}',
431
+ sections: [...MASTER_SECTIONS],
432
+ properties: [...MASTER_PROPERTIES],
433
+ actions: [...(0, entity_1.entityMasterRecordActions)()],
434
+ },
435
+ list: {
436
+ actions: [...(0, entity_1.entityMasterCrudActions)()],
437
+ views: [
438
+ (0, entity_1.createAllQueryView)({
439
+ sorts: [
440
+ { name: 'priority', dir: 'asc' },
441
+ { name: 'title', dir: 'asc' },
442
+ ],
443
+ }),
444
+ ],
445
+ },
446
+ },
447
+ },
448
+ };
449
+ return entityDef;
450
+ });
451
+ }
452
+ //#endregion
453
+ //# sourceMappingURL=identity-provider.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-provider.entity.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/identity-provider/identity-provider.entity.ts"],"names":[],"mappings":";AAAA,2BAA2B;;AAiG3B,0DA0WC;;AAzcD,iEAA2E;AAC3E,qEAA6I;AAC7I,mDAA+C;AAC/C,uEAA2E;AAE3E,YAAY;AAEZ,6BAA6B;AAE7B,MAAM,cAAc,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,EAAW,CAAC;AAEvE,MAAM,iBAAiB,GACrB,gEAAgE,wDAA8B,CAAC,IAAI,MA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9B;6BACF,CAAC;yBACH;qBACF;iBACF;aACF;SACF,CAAC;QAEF,OAAO,SAAS,CAAC;IACnB,CAAC;CAAA;AAED,YAAY"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * Login protocol for {@link AXMIdentityProviderEntityModel}.
3
+ * `directory` covers LDAP, Active Directory, and similar bind-based directories.
4
+ */
5
+ export declare const AXM_IDENTITY_PROVIDER_PROTOCOL: {
6
+ readonly Oidc: "oidc";
7
+ readonly Directory: "directory";
8
+ };
9
+ export type AXMIdentityProviderProtocol = (typeof AXM_IDENTITY_PROVIDER_PROTOCOL)[keyof typeof AXM_IDENTITY_PROVIDER_PROTOCOL];
10
+ /**
11
+ * Platform login IdP row (SecurityManagement.IdentityProvider).
12
+ * Active/inactive uses the disable plugin field `isDisabled`.
13
+ * Broker routing uses `key` as OAuth `acr_values` (OIDC only).
14
+ */
15
+ export interface AXMIdentityProviderEntityModel {
16
+ id: string;
17
+ /** Stable key used by ListProviders and `/connect` (`google`, `okta-hr`, …). */
18
+ key: string;
19
+ title: string;
20
+ icon?: string | null;
21
+ /**
22
+ * `oidc` = external OAuth/OIDC broker; `directory` = LDAP/AD-style bind login.
23
+ * Missing/legacy rows are treated as `oidc`.
24
+ */
25
+ protocol?: AXMIdentityProviderProtocol | null;
26
+ /** External IdP authorize URL (OIDC). */
27
+ authorizationUrl?: string | null;
28
+ /** External IdP token URL (OIDC). */
29
+ tokenUrl?: string | null;
30
+ /** Optional userinfo URL when id_token is absent (OIDC). */
31
+ userInfoUrl?: string | null;
32
+ /** Space-separated scopes requested from the external IdP (OIDC). */
33
+ scopes?: string | null;
34
+ /**
35
+ * OIDC issuer URL, or stable directory issuer label stored on provisioned identities.
36
+ */
37
+ issuerUrl?: string | null;
38
+ /**
39
+ * OAuth client id (OIDC), or directory service-account Bind DN when using search bind.
40
+ */
41
+ clientId?: string | null;
42
+ /**
43
+ * OAuth client secret (OIDC), or directory Bind Password when using search bind.
44
+ */
45
+ clientSecret?: string | null;
46
+ /** Directory server URL, e.g. `ldap://directory.example.com:389`. */
47
+ directoryUrl?: string | null;
48
+ /** Directory search base DN, e.g. `DC=example,DC=com`. */
49
+ directoryBaseDn?: string | null;
50
+ /** Direct bind template with `{{username}}`, e.g. `{{username}}@example.com`. */
51
+ directoryUserDnTemplate?: string | null;
52
+ /** Optional search filter with `{{username}}` when using a service bind account. */
53
+ directoryUserSearchFilter?: string | null;
54
+ /** Start TLS when connecting to the directory server. */
55
+ directoryUseTls?: boolean | null;
56
+ /** Reject connections when the directory TLS certificate is untrusted. */
57
+ directoryTlsRejectUnauthorized?: boolean | null;
58
+ /** From disable plugin — `true` means not offered on login. */
59
+ isDisabled?: boolean;
60
+ priority: number;
61
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ //#region ---- Identity provider entity model ----
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AXM_IDENTITY_PROVIDER_PROTOCOL = void 0;
5
+ /**
6
+ * Login protocol for {@link AXMIdentityProviderEntityModel}.
7
+ * `directory` covers LDAP, Active Directory, and similar bind-based directories.
8
+ */
9
+ exports.AXM_IDENTITY_PROVIDER_PROTOCOL = {
10
+ Oidc: 'oidc',
11
+ Directory: 'directory',
12
+ };
13
+ //#endregion
14
+ //# sourceMappingURL=identity-provider.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity-provider.types.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/identity-provider/identity-provider.types.ts"],"names":[],"mappings":";AAAA,kDAAkD;;;AAElD;;;GAGG;AACU,QAAA,8BAA8B,GAAG;IAC5C,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;CACd,CAAC;AA0DX,YAAY"}
@@ -0,0 +1 @@
1
+ export * from './identity-provider.types';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./identity-provider.types"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/identity-provider/index.ts"],"names":[],"mappings":";;;AAAA,oEAA0C"}
@@ -1,5 +1,9 @@
1
1
  export * from './device-sessions';
2
+ export * from './identity-provider';
2
3
  export * from './policy';
3
4
  export * from './profile';
5
+ export * from './role-permission';
4
6
  export * from './roles';
7
+ export * from './user-role';
8
+ export * from './user-two-factor';
5
9
  export * from './users';
@@ -2,8 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./device-sessions"), exports);
5
+ tslib_1.__exportStar(require("./identity-provider"), exports);
5
6
  tslib_1.__exportStar(require("./policy"), exports);
6
7
  tslib_1.__exportStar(require("./profile"), exports);
8
+ tslib_1.__exportStar(require("./role-permission"), exports);
7
9
  tslib_1.__exportStar(require("./roles"), exports);
10
+ tslib_1.__exportStar(require("./user-role"), exports);
11
+ tslib_1.__exportStar(require("./user-two-factor"), exports);
8
12
  tslib_1.__exportStar(require("./users"), exports);
9
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/modules/security-management/server/contracts/src/entities/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,mDAAyB;AACzB,oDAA0B;AAC1B,kDAAwB;AACxB,kDAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/modules/security-management/contracts/src/entities/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,8DAAoC;AACpC,mDAAyB;AACzB,oDAA0B;AAC1B,4DAAkC;AAClC,kDAAwB;AACxB,sDAA4B;AAC5B,4DAAkC;AAClC,kDAAwB"}
@@ -1,2 +1 @@
1
- export * from './policy.entity';
2
1
  export * from './policy.types';
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./policy.entity"), exports);
5
4
  tslib_1.__exportStar(require("./policy.types"), exports);
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/server/contracts/src/entities/policy/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,yDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../libs/modules/security-management/contracts/src/entities/policy/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B"}
@@ -13,6 +13,21 @@ function policyFactory() {
13
13
  name: root_config_1.RootConfig.entities.policy.name,
14
14
  title: root_config_1.RootConfig.entities.policy.title,
15
15
  icon: root_config_1.RootConfig.entities.policy.icon,
16
+ searchTags: [
17
+ 'security-policy',
18
+ 'policy',
19
+ 'policies',
20
+ 'access-policy',
21
+ 'security-rules',
22
+ 'authorization',
23
+ 'configuration',
24
+ 'compliance',
25
+ 'سیاست',
26
+ 'سیاست‌ها',
27
+ 'امنیت',
28
+ 'دسترسی',
29
+ 'مدیریت امنیت',
30
+ ],
16
31
  formats: {
17
32
  individual: root_config_1.RootConfig.entities.policy.title,
18
33
  plural: root_config_1.RootConfig.entities.policy.titlePlural,