@genesislcap/foundation-auth 14.71.1-auth-mf.21 → 14.103.0-auth-mf.23

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 (196) hide show
  1. package/README.md +62 -12
  2. package/dist/dts/config/config.d.ts +0 -9
  3. package/dist/dts/config/config.d.ts.map +1 -1
  4. package/dist/dts/dto/IDP.d.ts +9 -0
  5. package/dist/dts/dto/IDP.d.ts.map +1 -0
  6. package/dist/dts/dto/index.d.ts +1 -0
  7. package/dist/dts/dto/index.d.ts.map +1 -1
  8. package/dist/dts/entity/idp.d.ts +9 -0
  9. package/dist/dts/entity/idp.d.ts.map +1 -0
  10. package/dist/dts/entity/index.d.ts +1 -0
  11. package/dist/dts/entity/index.d.ts.map +1 -1
  12. package/dist/dts/entity/loginNack.d.ts +2 -0
  13. package/dist/dts/entity/loginNack.d.ts.map +1 -1
  14. package/dist/dts/entity/nack.d.ts +4 -0
  15. package/dist/dts/entity/nack.d.ts.map +1 -1
  16. package/dist/dts/env.d.ts +10 -0
  17. package/dist/dts/env.d.ts.map +1 -1
  18. package/dist/dts/machine/actions.d.ts +15 -0
  19. package/dist/dts/machine/actions.d.ts.map +1 -0
  20. package/dist/dts/machine/errors.d.ts +26 -0
  21. package/dist/dts/machine/errors.d.ts.map +1 -0
  22. package/dist/dts/machine/guards.d.ts +9 -0
  23. package/dist/dts/machine/guards.d.ts.map +1 -0
  24. package/dist/dts/machine/index.d.ts +2 -0
  25. package/dist/dts/machine/index.d.ts.map +1 -1
  26. package/dist/dts/machine/machine.d.ts +1 -1
  27. package/dist/dts/machine/machine.d.ts.map +1 -1
  28. package/dist/dts/main/main.d.ts +35 -3
  29. package/dist/dts/main/main.d.ts.map +1 -1
  30. package/dist/dts/main/main.styles.d.ts.map +1 -1
  31. package/dist/dts/main/main.template.d.ts.map +1 -1
  32. package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
  33. package/dist/dts/mapper/passwordManagementMapper.d.ts +1 -1
  34. package/dist/dts/mapper/passwordManagementMapper.d.ts.map +1 -1
  35. package/dist/dts/mapper/types.d.ts +2 -2
  36. package/dist/dts/mapper/utils.d.ts +20 -10
  37. package/dist/dts/mapper/utils.d.ts.map +1 -1
  38. package/dist/dts/routes/base.d.ts +4 -11
  39. package/dist/dts/routes/base.d.ts.map +1 -1
  40. package/dist/dts/routes/forgot-password/forgot-password.d.ts +0 -1
  41. package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
  42. package/dist/dts/routes/index.d.ts +0 -1
  43. package/dist/dts/routes/index.d.ts.map +1 -1
  44. package/dist/dts/routes/login/login.d.ts +1 -1
  45. package/dist/dts/routes/login/login.d.ts.map +1 -1
  46. package/dist/dts/routes/login/login.template.d.ts.map +1 -1
  47. package/dist/dts/routes/logout/logout.template.d.ts.map +1 -1
  48. package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
  49. package/dist/dts/routes/reset-password/reset-password.d.ts +0 -1
  50. package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
  51. package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
  52. package/dist/dts/services/idp.d.ts +41 -0
  53. package/dist/dts/services/idp.d.ts.map +1 -0
  54. package/dist/dts/services/index.d.ts +2 -0
  55. package/dist/dts/services/index.d.ts.map +1 -0
  56. package/dist/dts/store/auth.d.ts +18 -5
  57. package/dist/dts/store/auth.d.ts.map +1 -1
  58. package/dist/dts/store/authFormEntry.d.ts +57 -21
  59. package/dist/dts/store/authFormEntry.d.ts.map +1 -1
  60. package/dist/dts/tags/tags.d.ts +0 -7
  61. package/dist/dts/tags/tags.d.ts.map +1 -1
  62. package/dist/dts/user/user.d.ts +2 -2
  63. package/dist/dts/user/user.d.ts.map +1 -1
  64. package/dist/dts/utils/index.d.ts +0 -1
  65. package/dist/dts/utils/index.d.ts.map +1 -1
  66. package/dist/dts/utils/logger.d.ts +1 -1
  67. package/dist/dts/utils/logger.d.ts.map +1 -1
  68. package/dist/esm/config/config.js +1 -1
  69. package/dist/esm/dto/IDP.js +1 -0
  70. package/dist/esm/entity/idp.js +1 -0
  71. package/dist/esm/entity/index.js +1 -0
  72. package/dist/esm/env.js +29 -1
  73. package/dist/esm/machine/actions.js +24 -0
  74. package/dist/esm/machine/errors.js +40 -0
  75. package/dist/esm/machine/guards.js +11 -0
  76. package/dist/esm/machine/index.js +2 -0
  77. package/dist/esm/machine/machine.js +57 -66
  78. package/dist/esm/main/main.js +46 -2
  79. package/dist/esm/main/main.styles.js +3 -1
  80. package/dist/esm/main/main.template.js +2 -1
  81. package/dist/esm/mapper/loginMapper.js +2 -2
  82. package/dist/esm/mapper/passwordManagementMapper.js +1 -1
  83. package/dist/esm/mapper/utils.js +69 -13
  84. package/dist/esm/routes/base.js +9 -13
  85. package/dist/esm/routes/config.js +1 -1
  86. package/dist/esm/routes/forgot-password/forgot-password.js +0 -4
  87. package/dist/esm/routes/forgot-password/forgot-password.template.js +2 -2
  88. package/dist/esm/routes/index.js +0 -1
  89. package/dist/esm/routes/login/login.js +13 -12
  90. package/dist/esm/routes/login/login.template.js +8 -7
  91. package/dist/esm/routes/logout/logout.template.js +1 -0
  92. package/dist/esm/routes/request-account/request-account.template.js +3 -2
  93. package/dist/esm/routes/reset-password/reset-password.js +0 -4
  94. package/dist/esm/routes/reset-password/reset-password.template.js +1 -1
  95. package/dist/esm/routes/verify/verify.template.js +3 -2
  96. package/dist/esm/services/idp.js +71 -0
  97. package/dist/esm/services/index.js +1 -0
  98. package/dist/esm/store/auth.js +25 -3
  99. package/dist/esm/store/authFormEntry.js +62 -49
  100. package/dist/esm/tags/tags.js +0 -22
  101. package/dist/esm/user/user.js +6 -2
  102. package/dist/esm/utils/index.js +0 -1
  103. package/dist/esm/utils/logger.js +1 -1
  104. package/dist/foundation-auth.api.json +749 -784
  105. package/dist/foundation-auth.d.ts +202 -96
  106. package/docs/api/foundation-auth.authformentryeventmap.md +1 -1
  107. package/docs/api/foundation-auth.authformentrystore.idps.md +1 -1
  108. package/docs/api/foundation-auth.authformentrystore.md +4 -6
  109. package/docs/api/foundation-auth.authformentrystore.onselectedidpchanged.md +3 -3
  110. package/docs/api/foundation-auth.authformentrystore.password2.md +5 -0
  111. package/docs/api/foundation-auth.authformentrystore.selectedidp.md +3 -3
  112. package/docs/api/{foundation-auth.authformentrystore.host.md → foundation-auth.authformentrystore.ssologinurl.md} +3 -3
  113. package/docs/api/foundation-auth.authstore.errormessages.md +11 -0
  114. package/docs/api/foundation-auth.authstore.md +2 -0
  115. package/docs/api/foundation-auth.authstore.metamessages.md +11 -0
  116. package/docs/api/foundation-auth.defaultauthformentrystore.autofilling.md +1 -0
  117. package/docs/api/foundation-auth.defaultauthformentrystore.email.md +1 -0
  118. package/docs/api/foundation-auth.defaultauthformentrystore.haspasswordexpired.md +1 -0
  119. package/docs/api/foundation-auth.defaultauthformentrystore.idps.md +2 -1
  120. package/docs/api/{foundation-auth.defaultauthformentrystore.haserrors.md → foundation-auth.defaultauthformentrystore.idpservice.md} +3 -3
  121. package/docs/api/foundation-auth.defaultauthformentrystore.md +6 -16
  122. package/docs/api/foundation-auth.defaultauthformentrystore.mfacode.md +1 -0
  123. package/docs/api/foundation-auth.defaultauthformentrystore.onautofillform.md +1 -0
  124. package/docs/api/foundation-auth.defaultauthformentrystore.onemailchanged.md +1 -0
  125. package/docs/api/foundation-auth.defaultauthformentrystore.onorganisationchanged.md +1 -0
  126. package/docs/api/foundation-auth.defaultauthformentrystore.onpassword2changed.md +1 -0
  127. package/docs/api/foundation-auth.defaultauthformentrystore.onpasswordchanged.md +1 -0
  128. package/docs/api/foundation-auth.defaultauthformentrystore.onselectedidpchanged.md +4 -3
  129. package/docs/api/foundation-auth.defaultauthformentrystore.onshowpasswordschanged.md +1 -0
  130. package/docs/api/foundation-auth.defaultauthformentrystore.onssotogglechanged.md +1 -0
  131. package/docs/api/foundation-auth.defaultauthformentrystore.onusernamechanged.md +1 -0
  132. package/docs/api/foundation-auth.defaultauthformentrystore.organisation.md +1 -0
  133. package/docs/api/foundation-auth.defaultauthformentrystore.orgusername.md +1 -0
  134. package/docs/api/foundation-auth.defaultauthformentrystore.password.md +1 -0
  135. package/docs/api/foundation-auth.defaultauthformentrystore.password2.md +5 -0
  136. package/docs/api/foundation-auth.defaultauthformentrystore.passwordresettoken.md +1 -0
  137. package/docs/api/foundation-auth.defaultauthformentrystore.selectedidp.md +4 -3
  138. package/docs/api/foundation-auth.defaultauthformentrystore.showpasswords.md +1 -0
  139. package/docs/api/{foundation-auth.defaultauthformentrystore.message.md → foundation-auth.defaultauthformentrystore.ssologinurl.md} +4 -3
  140. package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggled.md +1 -0
  141. package/docs/api/foundation-auth.defaultauthformentrystore.termsagreed.md +1 -0
  142. package/docs/api/foundation-auth.defaultauthformentrystore.username.md +1 -0
  143. package/docs/api/foundation-auth.defaultauthmachine._constructor_.md +1 -1
  144. package/docs/api/{foundation-auth.defaultauthmachine.ondonedto.md → foundation-auth.defaultauthmachine.dtotransition.md} +3 -3
  145. package/docs/api/foundation-auth.defaultauthmachine.md +1 -1
  146. package/docs/api/foundation-auth.defaultauthstore.errormessages.md +12 -0
  147. package/docs/api/foundation-auth.defaultauthstore.ispending.md +1 -0
  148. package/docs/api/foundation-auth.defaultauthstore.md +3 -1
  149. package/docs/api/foundation-auth.defaultauthstore.metamessages.md +12 -0
  150. package/docs/api/foundation-auth.defaultauthstore.onchangepassword.md +1 -0
  151. package/docs/api/foundation-auth.defaultauthstore.onforgotpassword.md +1 -0
  152. package/docs/api/foundation-auth.defaultauthstore.onlogin.md +1 -0
  153. package/docs/api/foundation-auth.defaultauthstore.onlogout.md +1 -0
  154. package/docs/api/foundation-auth.defaultauthstore.onresetpassword.md +1 -0
  155. package/docs/api/{foundation-auth.idpresponse.id.md → foundation-auth.fromidpdto.md} +5 -3
  156. package/docs/api/foundation-auth.idp.description.md +11 -0
  157. package/docs/api/foundation-auth.idp.id.md +3 -3
  158. package/docs/api/foundation-auth.idp.md +3 -2
  159. package/docs/api/foundation-auth.idp.type.md +3 -3
  160. package/docs/api/foundation-auth.is200nack.md +13 -0
  161. package/docs/api/foundation-auth.isnackdto.md +1 -1
  162. package/docs/api/foundation-auth.isnackentity.md +24 -0
  163. package/docs/api/foundation-auth.logger.md +1 -1
  164. package/docs/api/foundation-auth.loginnack.hasincorrectcredentials.md +11 -0
  165. package/docs/api/foundation-auth.loginnack.maxtriesreached.md +11 -0
  166. package/docs/api/foundation-auth.loginnack.md +2 -0
  167. package/docs/api/foundation-auth.md +10 -11
  168. package/docs/api/foundation-auth.seterror.md +25 -0
  169. package/docs/api/{foundation-auth.idpresponse.type.md → foundation-auth.sso_list_url.md} +4 -3
  170. package/docs/api/foundation-auth.sso_login_url.md +12 -0
  171. package/docs/api/foundation-auth.ssoconfig.md +0 -1
  172. package/docs/api/foundation-auth.user.addauthenticationchangelistener.md +3 -3
  173. package/docs/api-report.md +170 -80
  174. package/package.json +12 -13
  175. package/dist/dts/utils/sso.d.ts +0 -27
  176. package/dist/dts/utils/sso.d.ts.map +0 -1
  177. package/dist/esm/utils/sso.js +0 -50
  178. package/docs/api/foundation-auth.authformentrystore.haserrors.md +0 -11
  179. package/docs/api/foundation-auth.authformentrystore.message.md +0 -11
  180. package/docs/api/foundation-auth.authrouting.getroutepath.md +0 -13
  181. package/docs/api/foundation-auth.authrouting.md +0 -37
  182. package/docs/api/foundation-auth.authrouting.navigateto.md +0 -16
  183. package/docs/api/foundation-auth.defaultauthformentrystore.autofill.md +0 -15
  184. package/docs/api/foundation-auth.defaultauthformentrystore.fetchmachine.md +0 -11
  185. package/docs/api/foundation-auth.defaultauthformentrystore.host.md +0 -11
  186. package/docs/api/foundation-auth.defaultauthformentrystore.resetidpstate.md +0 -15
  187. package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggledchanged.md +0 -23
  188. package/docs/api/foundation-auth.defaultauthrouting.getroutepath.md +0 -24
  189. package/docs/api/foundation-auth.defaultauthrouting.md +0 -22
  190. package/docs/api/foundation-auth.defaultauthrouting.navigateto.md +0 -26
  191. package/docs/api/foundation-auth.fetchidps.md +0 -13
  192. package/docs/api/foundation-auth.fromdtonackerrorwarningarray.md +0 -12
  193. package/docs/api/foundation-auth.getauthrouting.md +0 -32
  194. package/docs/api/foundation-auth.getssologinurl.md +0 -13
  195. package/docs/api/foundation-auth.idpresponse.md +0 -20
  196. package/docs/api/foundation-auth.includeserrorwarningcode.md +0 -13
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## isNackDTO() function
6
6
 
7
- isDTONack.
7
+ isNackDTO.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -0,0 +1,24 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [isNackEntity](./foundation-auth.isnackentity.md)
4
+
5
+ ## isNackEntity() function
6
+
7
+ isNackEntity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export declare function isNackEntity(entity: unknown): entity is Nack;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | entity | unknown | Potential Nack. |
20
+
21
+ **Returns:**
22
+
23
+ entity is Nack
24
+
@@ -8,5 +8,5 @@
8
8
  **Signature:**
9
9
 
10
10
  ```typescript
11
- logger: import("@genesislcap/foundation-utils").Logger
11
+ logger: import("@genesislcap/foundation-logger").Logger
12
12
  ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [LoginNack](./foundation-auth.loginnack.md) &gt; [hasIncorrectCredentials](./foundation-auth.loginnack.hasincorrectcredentials.md)
4
+
5
+ ## LoginNack.hasIncorrectCredentials property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly hasIncorrectCredentials: boolean;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [LoginNack](./foundation-auth.loginnack.md) &gt; [maxTriesReached](./foundation-auth.loginnack.maxtriesreached.md)
4
+
5
+ ## LoginNack.maxTriesReached property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ readonly maxTriesReached: boolean;
11
+ ```
@@ -16,7 +16,9 @@ export interface LoginNack extends Nack
16
16
 
17
17
  | Property | Modifiers | Type | Description |
18
18
  | --- | --- | --- | --- |
19
+ | [hasIncorrectCredentials](./foundation-auth.loginnack.hasincorrectcredentials.md) | <code>readonly</code> | boolean | |
19
20
  | [hasPasswordExpired](./foundation-auth.loginnack.haspasswordexpired.md) | <code>readonly</code> | boolean | |
20
21
  | [isMFARequired](./foundation-auth.loginnack.ismfarequired.md) | <code>readonly</code> | boolean | |
22
+ | [maxTriesReached](./foundation-auth.loginnack.maxtriesreached.md) | <code>readonly</code> | boolean | |
21
23
  | [refreshAuthToken](./foundation-auth.loginnack.refreshauthtoken.md) | <code>readonly</code> | string | |
22
24
 
@@ -8,11 +8,10 @@
8
8
 
9
9
  | Class | Description |
10
10
  | --- | --- |
11
- | [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) | Default implementation of the store. |
11
+ | [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) | Default AuthFormEntryStore. |
12
12
  | [DefaultAuthMachine](./foundation-auth.defaultauthmachine.md) | Default AuthMachine. |
13
13
  | [DefaultAuthMessageMapper](./foundation-auth.defaultauthmessagemapper.md) | Default AuthMessageMapper. |
14
- | [DefaultAuthRouting](./foundation-auth.defaultauthrouting.md) | Default AuthRouting. |
15
- | [DefaultAuthStore](./foundation-auth.defaultauthstore.md) | Default implementation of the store. |
14
+ | [DefaultAuthStore](./foundation-auth.defaultauthstore.md) | Default AuthStore. |
16
15
  | [DefaultCredentialManager](./foundation-auth.defaultcredentialmanager.md) | Default CredentialManager. |
17
16
  | [DefaultLoginMapper](./foundation-auth.defaultloginmapper.md) | Default LoginMapper. |
18
17
  | [DefaultLogoutMapper](./foundation-auth.defaultlogoutmapper.md) | Default LogoutMapper. |
@@ -35,7 +34,6 @@
35
34
  | --- | --- |
36
35
  | [configure(config)](./foundation-auth.configure.md) | configure. |
37
36
  | [createHTTPHeadersFromDTO(dto, contentType)](./foundation-auth.createhttpheadersfromdto.md) | createHTTPHeadersFromDTO. |
38
- | [getAuthRouting()](./foundation-auth.getauthrouting.md) | Gets AuthRouting from the DI container. |
39
37
  | [getRoutePath(route, hostPath)](./foundation-auth.getroutepath.md) | A utility to get a sub route path taking the host path into account. |
40
38
  | [getUser()](./foundation-auth.getuser.md) | Gets User from the DI container. |
41
39
  | [isChangePasswordParams(params)](./foundation-auth.ischangepasswordparams.md) | isChangePasswordParams. |
@@ -52,7 +50,8 @@
52
50
  | [isLogoutNackDTO(dto)](./foundation-auth.islogoutnackdto.md) | isLogoutNackDTO. |
53
51
  | [isLogoutNackEntity(entity)](./foundation-auth.islogoutnackentity.md) | isLogoutNackEntity. |
54
52
  | [isMFRoute(pathname)](./foundation-auth.ismfroute.md) | A utility to check if a pathname is a route of this micro frontend. |
55
- | [isNackDTO(dto)](./foundation-auth.isnackdto.md) | isDTONack. |
53
+ | [isNackDTO(dto)](./foundation-auth.isnackdto.md) | isNackDTO. |
54
+ | [isNackEntity(entity)](./foundation-auth.isnackentity.md) | isNackEntity. |
56
55
  | [isQueryParams(params)](./foundation-auth.isqueryparams.md) | isQueryParams. |
57
56
  | [isResetPasswordParams(params)](./foundation-auth.isresetpasswordparams.md) | isResetPasswordParams. |
58
57
 
@@ -65,7 +64,6 @@
65
64
  | [AuthMachine](./foundation-auth.authmachine.md) | AuthMachine interface. |
66
65
  | [AuthMachineContext](./foundation-auth.authmachinecontext.md) | AuthMachineContext interface. |
67
66
  | [AuthMessageMapper](./foundation-auth.authmessagemapper.md) | AuthMessageMapper interface. |
68
- | [AuthRouting](./foundation-auth.authrouting.md) | AuthRouting interface. |
69
67
  | [AuthStore](./foundation-auth.authstore.md) | AuthStore interface. |
70
68
  | [CredentialManager](./foundation-auth.credentialmanager.md) | CredentialManager interface. |
71
69
  | [CredentialManagerConfig](./foundation-auth.credentialmanagerconfig.md) | The configuration for the CredentialManager |
@@ -79,8 +77,8 @@
79
77
  | [EVENT\_LOGOUT\_NACK](./foundation-auth.event_logout_nack.md) | |
80
78
  | [EVENT\_PASSWORD\_RESET\_ACTION](./foundation-auth.event_password_reset_action.md) | |
81
79
  | [EVENT\_SELF\_SERVICE\_PASSWORD\_RESET](./foundation-auth.event_self_service_password_reset.md) | |
80
+ | [Idp](./foundation-auth.idp.md) | |
82
81
  | [IDP](./foundation-auth.idp.md) | |
83
- | [IDPResponse](./foundation-auth.idpresponse.md) | |
84
82
  | [LoginAck](./foundation-auth.loginack.md) | |
85
83
  | [LoginDetailsAck](./foundation-auth.logindetailsack.md) | |
86
84
  | [LoginMapper](./foundation-auth.loginmapper.md) | LoginMapper interface. |
@@ -112,15 +110,13 @@
112
110
  | [defaultCredentialManagerConfig](./foundation-auth.defaultcredentialmanagerconfig.md) | The default configuration for the CredentialManager service. |
113
111
  | [defaultCredentialRequestOptions](./foundation-auth.defaultcredentialrequestoptions.md) | The default request options for the CredentialManager service. |
114
112
  | [defaultUserConfig](./foundation-auth.defaultuserconfig.md) | Default UserConfig DI implementation. |
115
- | [fetchIDPs](./foundation-auth.fetchidps.md) | Request SSO identity provider list |
116
113
  | [FORGOT\_PASSWORD\_URL](./foundation-auth.forgot_password_url.md) | |
117
114
  | [fromDTOAck](./foundation-auth.fromdtoack.md) | fromDTOAck |
118
115
  | [fromDTONack](./foundation-auth.fromdtonack.md) | fromDTONack |
119
- | [fromDTONackErrorWarningArray](./foundation-auth.fromdtonackerrorwarningarray.md) | |
120
116
  | [fromDTOStringArray](./foundation-auth.fromdtostringarray.md) | |
121
- | [getSSOLoginURL](./foundation-auth.getssologinurl.md) | Get SSO identity provider login URL |
117
+ | [fromIDPDTO](./foundation-auth.fromidpdto.md) | fromIDPDTO |
122
118
  | [hasDTOErrorWarningCode](./foundation-auth.hasdtoerrorwarningcode.md) | hasDTOErrorWarningCode |
123
- | [includesErrorWarningCode](./foundation-auth.includeserrorwarningcode.md) | includesErrorWarningCode |
119
+ | [is200Nack](./foundation-auth.is200nack.md) | is200Nack. |
124
120
  | [isMappingError](./foundation-auth.ismappingerror.md) | |
125
121
  | [logger](./foundation-auth.logger.md) | |
126
122
  | [LOGIN\_DETAILS\_URL](./foundation-auth.login_details_url.md) | |
@@ -128,7 +124,10 @@
128
124
  | [LOGIN\_URL](./foundation-auth.login_url.md) | |
129
125
  | [LOGOUT\_URL](./foundation-auth.logout_url.md) | |
130
126
  | [RESET\_PASSWORD\_URL](./foundation-auth.reset_password_url.md) | |
127
+ | [setError](./foundation-auth.seterror.md) | Set error action. |
131
128
  | [SOCKET\_URL](./foundation-auth.socket_url.md) | |
129
+ | [SSO\_LIST\_URL](./foundation-auth.sso_list_url.md) | |
130
+ | [SSO\_LOGIN\_URL](./foundation-auth.sso_login_url.md) | |
132
131
  | [styles](./foundation-auth.styles.md) | |
133
132
  | [template](./foundation-auth.template.md) | |
134
133
  | [UserAuthenticationChangeType](./foundation-auth.userauthenticationchangetype.md) | UserAuthenticationChangeType. |
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [setError](./foundation-auth.seterror.md)
4
+
5
+ ## setError variable
6
+
7
+ Set error action.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setError: {
13
+ (_: import("xstate").ActionArgs<import("xstate").MachineContext, import("xstate").EventObject, import("xstate").ParameterizedObject>): void;
14
+ type: string;
15
+ assignment: import("xstate").Assigner<import("xstate").MachineContext, import("xstate").EventObject> | import("xstate").PropertyAssigner<import("xstate").MachineContext, import("xstate").EventObject>;
16
+ resolve: (actorContext: import("xstate").AnyActorContext, state: import("xstate").AnyState, actionArgs: import("xstate").ActionArgs<any, any, import("xstate").ParameterizedObject>, { assignment }: {
17
+ assignment: import("xstate").Assigner<any, any> | import("xstate").PropertyAssigner<any, any>;
18
+ }) => import("xstate").AnyState[];
19
+ }
20
+ ```
21
+
22
+ ## Remarks
23
+
24
+ Used to set a top level error on the machine. This may equal to `lastError` in the `errors` property.
25
+
@@ -1,11 +1,12 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [IDPResponse](./foundation-auth.idpresponse.md) &gt; [TYPE](./foundation-auth.idpresponse.type.md)
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [SSO\_LIST\_URL](./foundation-auth.sso_list_url.md)
4
+
5
+ ## SSO\_LIST\_URL variable
4
6
 
5
- ## IDPResponse.TYPE property
6
7
 
7
8
  **Signature:**
8
9
 
9
10
  ```typescript
10
- TYPE: string;
11
+ SSO_LIST_URL: string
11
12
  ```
@@ -0,0 +1,12 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-auth](./foundation-auth.md) &gt; [SSO\_LOGIN\_URL](./foundation-auth.sso_login_url.md)
4
+
5
+ ## SSO\_LOGIN\_URL variable
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ SSO_LOGIN_URL: string
12
+ ```
@@ -10,6 +10,5 @@
10
10
  ```typescript
11
11
  export type SSOConfig = {
12
12
  toggled?: boolean;
13
- identityProvidersPath: string;
14
13
  };
15
14
  ```
@@ -7,7 +7,7 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): void;
10
+ addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): () => void;
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -18,7 +18,7 @@ addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent
18
18
 
19
19
  **Returns:**
20
20
 
21
- void
21
+ () =&gt; void
22
22
 
23
23
  ## Example
24
24
 
@@ -26,7 +26,7 @@ void
26
26
  ```ts
27
27
  import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-auth/user';
28
28
  ...
29
- this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
29
+ const unsubscribe = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
30
30
  console.log('User authenticated?', event.detail);
31
31
  });
32
32
  ```