@authup/server-core 1.0.0-beta.62 → 1.0.0-beta.63

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 (118) hide show
  1. package/dist/adapters/database/domains/identity-provider-attribute/subscriber.d.ts +8 -1
  2. package/dist/adapters/database/domains/identity-provider-attribute/subscriber.d.ts.map +1 -1
  3. package/dist/adapters/database/domains/identity-provider-attribute/subscriber.mjs +14 -0
  4. package/dist/adapters/database/domains/identity-provider-attribute/subscriber.mjs.map +1 -1
  5. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.d.ts.map +1 -1
  6. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs +8 -2
  7. package/dist/adapters/http/adapters/oauth2/grant-types/refresh_token.mjs.map +1 -1
  8. package/dist/adapters/http/controllers/entities/client/module.mjs +1 -1
  9. package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts +23 -1
  10. package/dist/adapters/http/controllers/entities/identity-provider/module.d.ts.map +1 -1
  11. package/dist/adapters/http/controllers/entities/identity-provider/module.mjs +85 -46
  12. package/dist/adapters/http/controllers/entities/identity-provider/module.mjs.map +1 -1
  13. package/dist/adapters/http/controllers/workflows/authenticator-challenge/module.d.ts +2 -0
  14. package/dist/adapters/http/controllers/workflows/authenticator-challenge/module.d.ts.map +1 -1
  15. package/dist/adapters/http/controllers/workflows/authenticator-challenge/module.mjs +21 -3
  16. package/dist/adapters/http/controllers/workflows/authenticator-challenge/module.mjs.map +1 -1
  17. package/dist/adapters/http/controllers/workflows/authorize/module.d.ts.map +1 -1
  18. package/dist/adapters/http/controllers/workflows/authorize/module.mjs +5 -0
  19. package/dist/adapters/http/controllers/workflows/authorize/module.mjs.map +1 -1
  20. package/dist/adapters/http/controllers/workflows/token/module.d.ts.map +1 -1
  21. package/dist/adapters/http/controllers/workflows/token/module.mjs +22 -9
  22. package/dist/adapters/http/controllers/workflows/token/module.mjs.map +1 -1
  23. package/dist/adapters/http/middleware/built-in/cors.d.ts.map +1 -1
  24. package/dist/adapters/http/middleware/built-in/cors.mjs.map +1 -1
  25. package/dist/adapters/http/middleware/built-in/error.d.ts.map +1 -1
  26. package/dist/adapters/http/middleware/built-in/error.mjs +10 -1
  27. package/dist/adapters/http/middleware/built-in/error.mjs.map +1 -1
  28. package/dist/adapters/http/ui/console-packages/module.d.ts +1 -1
  29. package/dist/adapters/http/ui/console-packages/module.mjs +2 -2
  30. package/dist/adapters/http/ui/console-packages/module.mjs.map +1 -1
  31. package/dist/app/modules/config/normalize.d.ts.map +1 -1
  32. package/dist/app/modules/config/normalize.mjs +2 -2
  33. package/dist/app/modules/config/normalize.mjs.map +1 -1
  34. package/dist/app/modules/config/types.d.ts +8 -0
  35. package/dist/app/modules/config/types.d.ts.map +1 -1
  36. package/dist/app/modules/database/repositories/identity-provider/repository.d.ts +3 -1
  37. package/dist/app/modules/database/repositories/identity-provider/repository.d.ts.map +1 -1
  38. package/dist/app/modules/database/repositories/identity-provider/repository.mjs +2 -2
  39. package/dist/app/modules/database/repositories/identity-provider/repository.mjs.map +1 -1
  40. package/dist/app/modules/http/modules/controller.d.ts.map +1 -1
  41. package/dist/app/modules/http/modules/controller.mjs +5 -2
  42. package/dist/app/modules/http/modules/controller.mjs.map +1 -1
  43. package/dist/app/modules/oauth2/constants.d.ts +2 -1
  44. package/dist/app/modules/oauth2/constants.d.ts.map +1 -1
  45. package/dist/app/modules/oauth2/constants.mjs +1 -0
  46. package/dist/app/modules/oauth2/constants.mjs.map +1 -1
  47. package/dist/app/modules/oauth2/module.d.ts.map +1 -1
  48. package/dist/app/modules/oauth2/module.mjs +5 -0
  49. package/dist/app/modules/oauth2/module.mjs.map +1 -1
  50. package/dist/app/modules/oauth2/repositories/constants.d.ts +1 -0
  51. package/dist/app/modules/oauth2/repositories/constants.d.ts.map +1 -1
  52. package/dist/app/modules/oauth2/repositories/constants.mjs +1 -0
  53. package/dist/app/modules/oauth2/repositories/constants.mjs.map +1 -1
  54. package/dist/app/modules/oauth2/repositories/federated-login/index.d.ts +2 -0
  55. package/dist/app/modules/oauth2/repositories/federated-login/index.d.ts.map +1 -0
  56. package/dist/app/modules/oauth2/repositories/federated-login/index.mjs +5 -0
  57. package/dist/app/modules/oauth2/repositories/federated-login/store.d.ts +9 -0
  58. package/dist/app/modules/oauth2/repositories/federated-login/store.d.ts.map +1 -0
  59. package/dist/app/modules/oauth2/repositories/federated-login/store.mjs +33 -0
  60. package/dist/app/modules/oauth2/repositories/federated-login/store.mjs.map +1 -0
  61. package/dist/app/modules/oauth2/repositories/index.d.ts +1 -0
  62. package/dist/app/modules/oauth2/repositories/index.d.ts.map +1 -1
  63. package/dist/app/modules/oauth2/repositories/index.mjs +3 -1
  64. package/dist/core/entities/event/entity-event-handler.d.ts.map +1 -1
  65. package/dist/core/entities/event/entity-event-handler.mjs +14 -1
  66. package/dist/core/entities/event/entity-event-handler.mjs.map +1 -1
  67. package/dist/core/entities/identity-provider/types.d.ts +9 -1
  68. package/dist/core/entities/identity-provider/types.d.ts.map +1 -1
  69. package/dist/core/identity/index.mjs +2 -1
  70. package/dist/core/identity/provider/account/module.mjs +1 -1
  71. package/dist/core/identity/provider/authentication/index.mjs +2 -1
  72. package/dist/core/identity/provider/authentication/protocols/index.mjs +2 -1
  73. package/dist/core/identity/provider/authentication/protocols/oauth2/assurance.d.ts +46 -0
  74. package/dist/core/identity/provider/authentication/protocols/oauth2/assurance.d.ts.map +1 -0
  75. package/dist/core/identity/provider/authentication/protocols/oauth2/assurance.mjs +89 -0
  76. package/dist/core/identity/provider/authentication/protocols/oauth2/assurance.mjs.map +1 -0
  77. package/dist/core/identity/provider/authentication/protocols/oauth2/index.d.ts +1 -0
  78. package/dist/core/identity/provider/authentication/protocols/oauth2/index.d.ts.map +1 -1
  79. package/dist/core/identity/provider/authentication/protocols/oauth2/index.mjs +2 -1
  80. package/dist/core/identity/provider/authentication/protocols/oauth2/module.d.ts.map +1 -1
  81. package/dist/core/identity/provider/authentication/protocols/oauth2/module.mjs +9 -2
  82. package/dist/core/identity/provider/authentication/protocols/oauth2/module.mjs.map +1 -1
  83. package/dist/core/identity/provider/index.mjs +2 -1
  84. package/dist/core/index.mjs +4 -2
  85. package/dist/core/oauth2/authorization/helpers.d.ts.map +1 -1
  86. package/dist/core/oauth2/authorization/helpers.mjs +6 -1
  87. package/dist/core/oauth2/authorization/helpers.mjs.map +1 -1
  88. package/dist/core/oauth2/authorization/module.d.ts.map +1 -1
  89. package/dist/core/oauth2/authorization/module.mjs +5 -3
  90. package/dist/core/oauth2/authorization/module.mjs.map +1 -1
  91. package/dist/core/oauth2/authorization/state/types.d.ts +8 -0
  92. package/dist/core/oauth2/authorization/state/types.d.ts.map +1 -1
  93. package/dist/core/oauth2/federated-login/constants.d.ts +22 -0
  94. package/dist/core/oauth2/federated-login/constants.d.ts.map +1 -0
  95. package/dist/core/oauth2/federated-login/constants.mjs +27 -0
  96. package/dist/core/oauth2/federated-login/constants.mjs.map +1 -0
  97. package/dist/core/oauth2/federated-login/index.d.ts +1 -0
  98. package/dist/core/oauth2/federated-login/index.d.ts.map +1 -1
  99. package/dist/core/oauth2/federated-login/index.mjs +2 -1
  100. package/dist/core/oauth2/federated-login/module.d.ts +12 -3
  101. package/dist/core/oauth2/federated-login/module.d.ts.map +1 -1
  102. package/dist/core/oauth2/federated-login/module.mjs +96 -40
  103. package/dist/core/oauth2/federated-login/module.mjs.map +1 -1
  104. package/dist/core/oauth2/federated-login/types.d.ts +82 -24
  105. package/dist/core/oauth2/federated-login/types.d.ts.map +1 -1
  106. package/dist/core/oauth2/federated-login/types.mjs +5 -0
  107. package/dist/core/oauth2/federated-login/types.mjs.map +1 -1
  108. package/dist/core/oauth2/grant-types/authorize.mjs +1 -1
  109. package/dist/core/oauth2/grant-types/client-credentials.mjs +1 -1
  110. package/dist/core/oauth2/grant-types/identity.mjs +1 -1
  111. package/dist/core/oauth2/grant-types/password.mjs +1 -1
  112. package/dist/core/oauth2/grant-types/refresh-token.mjs +1 -1
  113. package/dist/core/oauth2/index.mjs +3 -2
  114. package/dist/core/oauth2/token/verifier/module.d.ts.map +1 -1
  115. package/dist/core/oauth2/token/verifier/module.mjs +3 -3
  116. package/dist/core/oauth2/token/verifier/module.mjs.map +1 -1
  117. package/dist/swagger.json +107 -59
  118. package/package.json +13 -13
package/dist/swagger.json CHANGED
@@ -3619,6 +3619,45 @@
3619
3619
  "type": "object",
3620
3620
  "description": "Response of `POST /identity-providers/:id/link-request` (plan 091):\nthe external provider's authorize URL the browser navigates to."
3621
3621
  },
3622
+ "OAuth2TokenGrantResponse": {
3623
+ "properties": {
3624
+ "scope": {
3625
+ "type": "string"
3626
+ },
3627
+ "mac_algorithm": {
3628
+ "type": "string"
3629
+ },
3630
+ "mac_key": {
3631
+ "type": "string"
3632
+ },
3633
+ "id_token": {
3634
+ "type": "string"
3635
+ },
3636
+ "token_type": {
3637
+ "type": "string"
3638
+ },
3639
+ "expires_in": {
3640
+ "type": "number",
3641
+ "format": "double"
3642
+ },
3643
+ "refresh_token_expires_in": {
3644
+ "type": "number",
3645
+ "format": "double"
3646
+ },
3647
+ "refresh_token": {
3648
+ "type": "string"
3649
+ },
3650
+ "access_token": {
3651
+ "type": "string"
3652
+ }
3653
+ },
3654
+ "required": [
3655
+ "token_type",
3656
+ "expires_in",
3657
+ "access_token"
3658
+ ],
3659
+ "type": "object"
3660
+ },
3622
3661
  "IdentityProviderAccount": {
3623
3662
  "properties": {
3624
3663
  "id": {
@@ -4773,45 +4812,6 @@
4773
4812
  ],
4774
4813
  "type": "object"
4775
4814
  },
4776
- "OAuth2TokenGrantResponse": {
4777
- "properties": {
4778
- "scope": {
4779
- "type": "string"
4780
- },
4781
- "mac_algorithm": {
4782
- "type": "string"
4783
- },
4784
- "mac_key": {
4785
- "type": "string"
4786
- },
4787
- "id_token": {
4788
- "type": "string"
4789
- },
4790
- "token_type": {
4791
- "type": "string"
4792
- },
4793
- "expires_in": {
4794
- "type": "number",
4795
- "format": "double"
4796
- },
4797
- "refresh_token_expires_in": {
4798
- "type": "number",
4799
- "format": "double"
4800
- },
4801
- "refresh_token": {
4802
- "type": "string"
4803
- },
4804
- "access_token": {
4805
- "type": "string"
4806
- }
4807
- },
4808
- "required": [
4809
- "token_type",
4810
- "expires_in",
4811
- "access_token"
4812
- ],
4813
- "type": "object"
4814
- },
4815
4815
  "UserAuthenticatorChallengeVerifyResponse": {
4816
4816
  "properties": {
4817
4817
  "token": {
@@ -5181,10 +5181,6 @@
5181
5181
  "type": "string",
5182
5182
  "description": "Scopes (e.g. \"scope1 scope2\")"
5183
5183
  },
5184
- "sub_name": {
5185
- "type": "string",
5186
- "description": "Subject name"
5187
- },
5188
5184
  "sub_kind": {
5189
5185
  "type": "string",
5190
5186
  "enum": [
@@ -9681,14 +9677,7 @@
9681
9677
  "content": {
9682
9678
  "application/json": {
9683
9679
  "schema": {
9684
- "anyOf": [
9685
- {
9686
- "type": "string"
9687
- },
9688
- {
9689
- "$ref": "#/components/schemas/Response"
9690
- }
9691
- ]
9680
+ "$ref": "#/components/schemas/Response"
9692
9681
  }
9693
9682
  }
9694
9683
  }
@@ -9721,14 +9710,73 @@
9721
9710
  "content": {
9722
9711
  "application/json": {
9723
9712
  "schema": {
9724
- "anyOf": [
9725
- {
9726
- "type": "string"
9727
- },
9728
- {
9729
- "$ref": "#/components/schemas/Response"
9730
- }
9731
- ]
9713
+ "$ref": "#/components/schemas/Response"
9714
+ }
9715
+ }
9716
+ }
9717
+ }
9718
+ },
9719
+ "description": "",
9720
+ "tags": [],
9721
+ "parameters": [
9722
+ {
9723
+ "allowEmptyValue": false,
9724
+ "deprecated": false,
9725
+ "description": "",
9726
+ "in": "path",
9727
+ "name": "id",
9728
+ "required": true,
9729
+ "schema": {
9730
+ "type": "string"
9731
+ },
9732
+ "examples": {}
9733
+ }
9734
+ ]
9735
+ }
9736
+ },
9737
+ "/identity-providers/{id}/login-complete": {
9738
+ "post": {
9739
+ "operationId": "CompleteLogin",
9740
+ "responses": {
9741
+ "200": {
9742
+ "description": "Ok",
9743
+ "content": {
9744
+ "application/json": {
9745
+ "schema": {
9746
+ "$ref": "#/components/schemas/OAuth2TokenGrantResponse"
9747
+ }
9748
+ }
9749
+ }
9750
+ }
9751
+ },
9752
+ "description": "",
9753
+ "tags": [],
9754
+ "parameters": [
9755
+ {
9756
+ "allowEmptyValue": false,
9757
+ "deprecated": false,
9758
+ "description": "",
9759
+ "in": "path",
9760
+ "name": "id",
9761
+ "required": true,
9762
+ "schema": {
9763
+ "type": "string"
9764
+ },
9765
+ "examples": {}
9766
+ }
9767
+ ]
9768
+ }
9769
+ },
9770
+ "/realms/{realmId}/identity-providers/{id}/login-complete": {
9771
+ "post": {
9772
+ "operationId": "CompleteLogin_2",
9773
+ "responses": {
9774
+ "200": {
9775
+ "description": "Ok",
9776
+ "content": {
9777
+ "application/json": {
9778
+ "schema": {
9779
+ "$ref": "#/components/schemas/OAuth2TokenGrantResponse"
9732
9780
  }
9733
9781
  }
9734
9782
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@authup/server-core",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.62",
4
+ "version": "1.0.0-beta.63",
5
5
  "description": "This is a standalone application.",
6
6
  "license": "AGPL-3.0-only",
7
7
  "main": "dist/index.mjs",
@@ -67,16 +67,16 @@
67
67
  },
68
68
  "homepage": "https://github.com/authup/authup#readme",
69
69
  "dependencies": {
70
- "@authup/access": "^1.0.0-beta.62",
71
- "@authup/client-account-console": "^1.0.0-beta.62",
72
- "@authup/client-auth-console": "^1.0.0-beta.62",
73
- "@authup/core-http-kit": "^1.0.0-beta.62",
74
- "@authup/core-kit": "^1.0.0-beta.62",
75
- "@authup/errors": "^1.0.0-beta.62",
76
- "@authup/i18n": "^1.0.0-beta.62",
77
- "@authup/kit": "^1.0.0-beta.62",
78
- "@authup/server-kit": "^1.0.0-beta.62",
79
- "@authup/specs": "^1.0.0-beta.62",
70
+ "@authup/access": "^1.0.0-beta.63",
71
+ "@authup/client-account-console": "^1.0.0-beta.63",
72
+ "@authup/client-auth-console": "^1.0.0-beta.63",
73
+ "@authup/core-http-kit": "^1.0.0-beta.63",
74
+ "@authup/core-kit": "^1.0.0-beta.63",
75
+ "@authup/errors": "^1.0.0-beta.63",
76
+ "@authup/i18n": "^1.0.0-beta.63",
77
+ "@authup/kit": "^1.0.0-beta.63",
78
+ "@authup/server-kit": "^1.0.0-beta.63",
79
+ "@authup/specs": "^1.0.0-beta.63",
80
80
  "@ebec/http": "^4.2.0",
81
81
  "@hapic/oauth2": "^4.0.2",
82
82
  "@peculiar/x509": "^2.0.0",
@@ -126,8 +126,8 @@
126
126
  "zod": "^4.4.3"
127
127
  },
128
128
  "devDependencies": {
129
- "@authup/server-test-kit": "^1.0.0-beta.62",
130
- "@faker-js/faker": "^10.5.0",
129
+ "@authup/server-test-kit": "^1.0.0-beta.63",
130
+ "@faker-js/faker": "^10.6.0",
131
131
  "@trapi/cli": "^2.0.5",
132
132
  "@types/ldapjs": "^3.0.6",
133
133
  "@types/nodemailer": "^8.0.0",