@portaidentity/server 1.10.0 → 1.11.0

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 (44) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/auth/email-service.d.ts +7 -1
  3. package/dist/auth/email-service.d.ts.map +1 -1
  4. package/dist/auth/email-service.js +1 -0
  5. package/dist/auth/email-service.js.map +1 -1
  6. package/dist/auth/index.d.ts +1 -1
  7. package/dist/auth/index.d.ts.map +1 -1
  8. package/dist/auth/index.js +1 -1
  9. package/dist/auth/index.js.map +1 -1
  10. package/dist/auth/token-repository.d.ts +83 -32
  11. package/dist/auth/token-repository.d.ts.map +1 -1
  12. package/dist/auth/token-repository.js +138 -47
  13. package/dist/auth/token-repository.js.map +1 -1
  14. package/dist/cli/commands/init.d.ts.map +1 -1
  15. package/dist/cli/commands/init.js +10 -6
  16. package/dist/cli/commands/init.js.map +1 -1
  17. package/dist/index.js +2 -1
  18. package/dist/index.js.map +1 -1
  19. package/dist/routes/invitation.d.ts.map +1 -1
  20. package/dist/routes/invitation.js +95 -68
  21. package/dist/routes/invitation.js.map +1 -1
  22. package/dist/routes/users.d.ts.map +1 -1
  23. package/dist/routes/users.js +38 -24
  24. package/dist/routes/users.js.map +1 -1
  25. package/dist/users/index.d.ts +2 -0
  26. package/dist/users/index.d.ts.map +1 -1
  27. package/dist/users/index.js +2 -0
  28. package/dist/users/index.js.map +1 -1
  29. package/dist/users/invitation-service.d.ts +38 -0
  30. package/dist/users/invitation-service.d.ts.map +1 -0
  31. package/dist/users/invitation-service.js +97 -0
  32. package/dist/users/invitation-service.js.map +1 -0
  33. package/dist/users/repository.d.ts +28 -0
  34. package/dist/users/repository.d.ts.map +1 -1
  35. package/dist/users/repository.js +38 -10
  36. package/dist/users/repository.js.map +1 -1
  37. package/dist/version.d.ts +9 -0
  38. package/dist/version.d.ts.map +1 -0
  39. package/dist/version.js +9 -0
  40. package/dist/version.js.map +1 -0
  41. package/locales/default/en/invitation.json +4 -0
  42. package/migrations/033_invitation_deferred_user_creation.sql +60 -0
  43. package/package.json +1 -1
  44. package/templates/default/pages/confirm-invite.hbs +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portaidentity/server",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
4
4
  "description": "Multi-tenant OIDC provider built on node-oidc-provider, Koa, and TypeScript",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -0,0 +1,7 @@
1
+ {{!-- Invitation confirmation: a non-mutating step before the password form --}}
2
+ <h1>{{t "invitation.confirm_title"}}</h1>
3
+ <p class="text-muted mb-4">{{t "invitation.confirm_description" orgName=orgName}}</p>
4
+ {{#if inviterName}}
5
+ <p class="text-muted mb-4">{{t "invitation.confirm_inviter" inviterName=inviterName}}</p>
6
+ {{/if}}
7
+ <a class="btn-primary" href="/{{orgSlug}}/auth/accept-invite/{{token}}?step=password">{{t "invitation.confirm_button"}}</a>