@genesislcap/foundation-auth 14.107.0-auth-mf.27 → 14.121.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 (118) hide show
  1. package/README.md +14 -19
  2. package/dist/dts/dto/EVENT_LOGIN_AUTH_NACK.d.ts +1 -0
  3. package/dist/dts/dto/EVENT_LOGIN_AUTH_NACK.d.ts.map +1 -1
  4. package/dist/dts/dto/{IDP.d.ts → IDENTITY_PROVIDER.d.ts} +2 -2
  5. package/dist/dts/dto/IDENTITY_PROVIDER.d.ts.map +1 -0
  6. package/dist/dts/dto/index.d.ts +1 -1
  7. package/dist/dts/dto/index.d.ts.map +1 -1
  8. package/dist/dts/entity/{idp.d.ts → identityProvider.d.ts} +2 -2
  9. package/dist/dts/entity/identityProvider.d.ts.map +1 -0
  10. package/dist/dts/entity/index.d.ts +1 -1
  11. package/dist/dts/entity/index.d.ts.map +1 -1
  12. package/dist/dts/entity/loginNack.d.ts +1 -0
  13. package/dist/dts/entity/loginNack.d.ts.map +1 -1
  14. package/dist/dts/env.d.ts +0 -5
  15. package/dist/dts/env.d.ts.map +1 -1
  16. package/dist/dts/machine/errors.d.ts +2 -2
  17. package/dist/dts/main/main.d.ts +12 -4
  18. package/dist/dts/main/main.d.ts.map +1 -1
  19. package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
  20. package/dist/dts/mapper/utils.d.ts +4 -4
  21. package/dist/dts/mapper/utils.d.ts.map +1 -1
  22. package/dist/dts/routes/base.d.ts +5 -7
  23. package/dist/dts/routes/base.d.ts.map +1 -1
  24. package/dist/dts/routes/forgot-password/forgot-password.d.ts +9 -0
  25. package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
  26. package/dist/dts/routes/forgot-password/forgot-password.template.d.ts +4 -0
  27. package/dist/dts/routes/forgot-password/forgot-password.template.d.ts.map +1 -1
  28. package/dist/dts/routes/login/login.d.ts +14 -0
  29. package/dist/dts/routes/login/login.d.ts.map +1 -1
  30. package/dist/dts/routes/login/login.styles.d.ts +4 -0
  31. package/dist/dts/routes/login/login.styles.d.ts.map +1 -1
  32. package/dist/dts/routes/login/login.template.d.ts +4 -0
  33. package/dist/dts/routes/login/login.template.d.ts.map +1 -1
  34. package/dist/dts/routes/logout/logout.d.ts +7 -0
  35. package/dist/dts/routes/logout/logout.d.ts.map +1 -1
  36. package/dist/dts/routes/logout/logout.styles.d.ts +4 -0
  37. package/dist/dts/routes/logout/logout.styles.d.ts.map +1 -1
  38. package/dist/dts/routes/logout/logout.template.d.ts +4 -0
  39. package/dist/dts/routes/logout/logout.template.d.ts.map +1 -1
  40. package/dist/dts/routes/not-found/not-found.d.ts +4 -0
  41. package/dist/dts/routes/not-found/not-found.d.ts.map +1 -1
  42. package/dist/dts/routes/protected/protected.d.ts +5 -0
  43. package/dist/dts/routes/protected/protected.d.ts.map +1 -1
  44. package/dist/dts/routes/protected/protected.template.d.ts +4 -0
  45. package/dist/dts/routes/protected/protected.template.d.ts.map +1 -1
  46. package/dist/dts/routes/request-account/request-account.d.ts +11 -0
  47. package/dist/dts/routes/request-account/request-account.d.ts.map +1 -1
  48. package/dist/dts/routes/request-account/request-account.template.d.ts +4 -0
  49. package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
  50. package/dist/dts/routes/reset-password/reset-password.d.ts +13 -0
  51. package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
  52. package/dist/dts/routes/reset-password/reset-password.template.d.ts +4 -0
  53. package/dist/dts/routes/reset-password/reset-password.template.d.ts.map +1 -1
  54. package/dist/dts/routes/verify/verify.d.ts +4 -0
  55. package/dist/dts/routes/verify/verify.d.ts.map +1 -1
  56. package/dist/dts/routes/verify/verify.template.d.ts +4 -0
  57. package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
  58. package/dist/dts/services/idp.d.ts +6 -6
  59. package/dist/dts/services/idp.d.ts.map +1 -1
  60. package/dist/dts/store/authFormEntry.d.ts +6 -6
  61. package/dist/dts/store/authFormEntry.d.ts.map +1 -1
  62. package/dist/esm/entity/index.js +1 -1
  63. package/dist/esm/env.js +54 -95
  64. package/dist/esm/machine/errors.js +2 -2
  65. package/dist/esm/main/main.js +11 -0
  66. package/dist/esm/mapper/loginMapper.js +1 -1
  67. package/dist/esm/mapper/utils.js +1 -1
  68. package/dist/esm/routes/base.js +8 -8
  69. package/dist/esm/routes/forgot-password/forgot-password.js +9 -0
  70. package/dist/esm/routes/forgot-password/forgot-password.template.js +4 -0
  71. package/dist/esm/routes/login/login.js +14 -0
  72. package/dist/esm/routes/login/login.styles.js +4 -0
  73. package/dist/esm/routes/login/login.template.js +4 -0
  74. package/dist/esm/routes/logout/logout.js +7 -0
  75. package/dist/esm/routes/logout/logout.styles.js +4 -0
  76. package/dist/esm/routes/logout/logout.template.js +4 -0
  77. package/dist/esm/routes/not-found/not-found.js +4 -0
  78. package/dist/esm/routes/protected/protected.js +9 -2
  79. package/dist/esm/routes/protected/protected.template.js +16 -2
  80. package/dist/esm/routes/request-account/request-account.js +11 -0
  81. package/dist/esm/routes/request-account/request-account.template.js +4 -0
  82. package/dist/esm/routes/reset-password/reset-password.js +13 -0
  83. package/dist/esm/routes/reset-password/reset-password.template.js +4 -0
  84. package/dist/esm/routes/verify/verify.js +4 -0
  85. package/dist/esm/routes/verify/verify.template.js +4 -0
  86. package/dist/esm/services/idp.js +2 -2
  87. package/dist/esm/store/authFormEntry.js +22 -1
  88. package/dist/foundation-auth.api.json +107 -64
  89. package/dist/foundation-auth.d.ts +26 -21
  90. package/docs/api/foundation-auth.authformentrystore.idps.md +1 -1
  91. package/docs/api/foundation-auth.authformentrystore.md +2 -2
  92. package/docs/api/foundation-auth.authformentrystore.selectedidp.md +1 -1
  93. package/docs/api/foundation-auth.defaultauthformentrystore.idps.md +1 -1
  94. package/docs/api/foundation-auth.defaultauthformentrystore.md +2 -2
  95. package/docs/api/foundation-auth.defaultauthformentrystore.selectedidp.md +1 -1
  96. package/docs/api/foundation-auth.event_login_auth_nack.md +1 -0
  97. package/docs/api/foundation-auth.event_login_auth_nack.refresh_token_expiration_mins.md +11 -0
  98. package/docs/api/foundation-auth.fromidpdto.md +1 -1
  99. package/docs/api/{foundation-auth.idp.description.md → foundation-auth.identity_provider.description.md} +2 -2
  100. package/docs/api/{foundation-auth.idp.id.md → foundation-auth.identity_provider.id.md} +2 -2
  101. package/docs/api/foundation-auth.identity_provider.md +21 -0
  102. package/docs/api/{foundation-auth.idp.type.md → foundation-auth.identity_provider.type.md} +2 -2
  103. package/docs/api/foundation-auth.identityprovider.description.md +11 -0
  104. package/docs/api/foundation-auth.identityprovider.id.md +11 -0
  105. package/docs/api/foundation-auth.identityprovider.md +21 -0
  106. package/docs/api/foundation-auth.identityprovider.type.md +11 -0
  107. package/docs/api/foundation-auth.loginnack.md +1 -0
  108. package/docs/api/foundation-auth.loginnack.refreshtokenexpirationmins.md +11 -0
  109. package/docs/api/foundation-auth.md +2 -3
  110. package/docs/api-report.md +13 -10
  111. package/package.json +16 -15
  112. package/test/README.md +2 -0
  113. package/dist/dts/dto/IDP.d.ts.map +0 -1
  114. package/dist/dts/entity/idp.d.ts.map +0 -1
  115. package/docs/api/foundation-auth.idp.md +0 -21
  116. package/docs/api/foundation-auth.socket_url.md +0 -12
  117. /package/dist/esm/dto/{IDP.js → IDENTITY_PROVIDER.js} +0 -0
  118. /package/dist/esm/entity/{idp.js → identityProvider.js} +0 -0
@@ -2,6 +2,10 @@ import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html } from '@microsoft/fast-element';
3
3
  import { cardTag, checkboxTag } from '../../tags';
4
4
  import { backButton, emailField, organisationField, password2Field, passwordField, submitButton, usernameField, } from '../base';
5
+ /**
6
+ * RequestAccountTemplate
7
+ * @public
8
+ */
5
9
  export const RequestAccountTemplate = html `
6
10
  <auth-background>
7
11
  <div class="container">
@@ -3,6 +3,19 @@ import { customElement, observable, volatile } from '@microsoft/fast-element';
3
3
  import { commonStyles } from '../../styles';
4
4
  import { BaseRoute } from '../base';
5
5
  import { ResetPasswordTemplate as template } from './reset-password.template';
6
+ /**
7
+ * ResetPassword
8
+ *
9
+ * @fires auth-reset-password - Fires a custom 'auth-reset-password' event.
10
+ * @fires auth-change-password - Fires a custom 'auth-change-password' event.
11
+ * @fires auth-organisation-changed - Fires a custom 'auth-organisation-changed' event.
12
+ * @fires auth-username-changed - Fires a custom 'auth-username-changed' event.
13
+ * @fires auth-password-changed - Fires a custom 'auth-password-changed' event.
14
+ * @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event.
15
+ * @fires auth-showPasswords-changed - Fires a custom 'auth-showPasswords-changed' event.
16
+ *
17
+ * @public
18
+ */
6
19
  let ResetPassword = class ResetPassword extends BaseRoute {
7
20
  constructor() {
8
21
  super(...arguments);
@@ -1,6 +1,10 @@
1
1
  import { html, when } from '@microsoft/fast-element';
2
2
  import { cardTag } from '../../tags';
3
3
  import { backButton, organisationField, password2Field, passwordField, showPasswordsCheckbox, submitButton, usernameField, } from '../base';
4
+ /**
5
+ * ResetPasswordTemplate
6
+ * @public
7
+ */
4
8
  export const ResetPasswordTemplate = html `
5
9
  <auth-background>
6
10
  <div class="container">
@@ -4,6 +4,10 @@ import { commonStyles } from '../../styles';
4
4
  import { logger } from '../../utils';
5
5
  import { BaseRoute } from '../base';
6
6
  import { VerifyTemplate as template } from './verify.template';
7
+ /**
8
+ * Verify
9
+ * @public
10
+ */
7
11
  let Verify = class Verify extends BaseRoute {
8
12
  constructor() {
9
13
  super(...arguments);
@@ -2,6 +2,10 @@ import { sync } from '@genesislcap/foundation-utils';
2
2
  import { html } from '@microsoft/fast-element';
3
3
  import { cardTag, textFieldTag } from '../../tags';
4
4
  import { backButton, submitButton } from '../base';
5
+ /**
6
+ * VerifyTemplate
7
+ * @public
8
+ */
5
9
  export const VerifyTemplate = html `
6
10
  <auth-background>
7
11
  <div class="container">
@@ -24,7 +24,7 @@ export class DefaultIDPService {
24
24
  const { data } = context;
25
25
  /**
26
26
  * Format reference:
27
- * const IDPS: IDP[] = [
27
+ * const IDPS: IDENTITY_PROVIDER[] = [
28
28
  * { ID: 'hsbc', DESCRIPTION: 'hsbc', TYPE: 'saml' },
29
29
  * { ID: 'mufg', DESCRIPTION: 'mufg', TYPE: 'saml' },
30
30
  * ];
@@ -55,7 +55,7 @@ export class DefaultIDPService {
55
55
  /** {@inheritDoc IDPService.getLoginUrl} */
56
56
  this.getLoginUrl = (idp, urlTemplate = SSO_LOGIN_URL) => {
57
57
  if (!idp || !idp.type || !idp.id) {
58
- throw new Error(`Invalid IDP: ${JSON.stringify(idp)}`);
58
+ throw new Error(`Invalid Identity Provider: ${JSON.stringify(idp)}`);
59
59
  }
60
60
  return urlTemplate.replace(this.loginUrlReplacePattern, (_, token) => idp[token] || '');
61
61
  };
@@ -125,9 +125,30 @@ export class DefaultAuthFormEntryStore extends AbstractStore {
125
125
  this.username = (_a = passwordCredentials.name) !== null && _a !== void 0 ? _a : '';
126
126
  this.password = (_b = passwordCredentials.password) !== null && _b !== void 0 ? _b : '';
127
127
  if (this.config.fields.organisation) {
128
+ /**
129
+ * Credential data examples:
130
+ *
131
+ * ```
132
+ * id: JohnDoe:OrgX
133
+ * password: ************
134
+ *
135
+ * id: JJaneDee:OrgY
136
+ * password: **************
137
+ *
138
+ * id: JBob
139
+ * password: *******
140
+ * ```
141
+ *
142
+ * `valueParts` below is the id split by the `credentialSeparator`:
143
+ *
144
+ * ```
145
+ * ['JohnDoe', 'OrgX'], ['JaneDee', 'OrgY'], ['Bob']
146
+ * ```
147
+ */
128
148
  const combinedCompIdUsername = (_c = passwordCredentials.id) !== null && _c !== void 0 ? _c : '';
129
149
  const valueParts = combinedCompIdUsername.split(credentialSeparator);
130
- const orgIdx = valueParts.length === 2 ? 1 : 0;
150
+ const hasOrg = valueParts.length === 2;
151
+ const orgIdx = hasOrg ? 1 : 0;
131
152
  const proposedOrganisation = valueParts[orgIdx];
132
153
  if (proposedOrganisation !== this.username) {
133
154
  this.organisation = proposedOrganisation;
@@ -125,6 +125,16 @@
125
125
  {
126
126
  "tagName": "@preapproved",
127
127
  "syntaxKind": "modifier"
128
+ },
129
+ {
130
+ "tagName": "@tagname",
131
+ "syntaxKind": "block",
132
+ "allowMultiple": true
133
+ },
134
+ {
135
+ "tagName": "@fires",
136
+ "syntaxKind": "block",
137
+ "allowMultiple": true
128
138
  }
129
139
  ],
130
140
  "supportForTags": {
@@ -155,7 +165,9 @@
155
165
  "@virtual": true,
156
166
  "@betaDocumentation": true,
157
167
  "@internalRemarks": true,
158
- "@preapproved": true
168
+ "@preapproved": true,
169
+ "@tagname": true,
170
+ "@fires": true
159
171
  },
160
172
  "reportUnsupportedHtmlElements": false
161
173
  }
@@ -912,8 +924,8 @@
912
924
  },
913
925
  {
914
926
  "kind": "Reference",
915
- "text": "Idp",
916
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface"
927
+ "text": "IdentityProvider",
928
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface"
917
929
  },
918
930
  {
919
931
  "kind": "Content",
@@ -1556,8 +1568,8 @@
1556
1568
  },
1557
1569
  {
1558
1570
  "kind": "Reference",
1559
- "text": "Idp",
1560
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface"
1571
+ "text": "IdentityProvider",
1572
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface"
1561
1573
  },
1562
1574
  {
1563
1575
  "kind": "Content",
@@ -4607,8 +4619,8 @@
4607
4619
  },
4608
4620
  {
4609
4621
  "kind": "Reference",
4610
- "text": "Idp",
4611
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface"
4622
+ "text": "IdentityProvider",
4623
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface"
4612
4624
  },
4613
4625
  {
4614
4626
  "kind": "Content",
@@ -5132,8 +5144,8 @@
5132
5144
  },
5133
5145
  {
5134
5146
  "kind": "Reference",
5135
- "text": "Idp",
5136
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface"
5147
+ "text": "IdentityProvider",
5148
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface"
5137
5149
  },
5138
5150
  {
5139
5151
  "kind": "Content",
@@ -9881,6 +9893,33 @@
9881
9893
  "startIndex": 1,
9882
9894
  "endIndex": 2
9883
9895
  }
9896
+ },
9897
+ {
9898
+ "kind": "PropertySignature",
9899
+ "canonicalReference": "@genesislcap/foundation-auth!EVENT_LOGIN_AUTH_NACK#REFRESH_TOKEN_EXPIRATION_MINS:member",
9900
+ "docComment": "",
9901
+ "excerptTokens": [
9902
+ {
9903
+ "kind": "Content",
9904
+ "text": "readonly REFRESH_TOKEN_EXPIRATION_MINS: "
9905
+ },
9906
+ {
9907
+ "kind": "Content",
9908
+ "text": "number"
9909
+ },
9910
+ {
9911
+ "kind": "Content",
9912
+ "text": ";"
9913
+ }
9914
+ ],
9915
+ "isReadonly": true,
9916
+ "isOptional": false,
9917
+ "releaseTag": "Public",
9918
+ "name": "REFRESH_TOKEN_EXPIRATION_MINS",
9919
+ "propertyTypeTokenRange": {
9920
+ "startIndex": 1,
9921
+ "endIndex": 2
9922
+ }
9884
9923
  }
9885
9924
  ],
9886
9925
  "extendsTokenRanges": [
@@ -10323,7 +10362,7 @@
10323
10362
  {
10324
10363
  "kind": "Class",
10325
10364
  "canonicalReference": "@genesislcap/foundation-auth!FoundationAuth:class",
10326
- "docComment": "/**\n * FoundationAuth.\n *\n * @remarks\n *\n * Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.\n *\n * See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.\n *\n * @public\n */\n",
10365
+ "docComment": "/**\n * FoundationAuth.\n *\n * @remarks\n *\n * Base MF export used by host application `configure` calls. It does not set up a design system or components. Both are expected to be registered in the host application, which should provide the details of which to the MF via TemplateOptions.\n *\n * See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.\n *\n * @fires\n *\n * store-connected - Fires a custom 'store-connected' event after connection to connect the store.\n *\n * @fires\n *\n * store-ready - Fires a custom 'store-ready' event after connection to ready the store.\n *\n * @fires\n *\n * store-disconnected - Fires a custom 'store-disconnected' event after disconnection to unbind the store.\n *\n * @public\n */\n",
10327
10366
  "excerptTokens": [
10328
10367
  {
10329
10368
  "kind": "Content",
@@ -10451,7 +10490,7 @@
10451
10490
  {
10452
10491
  "kind": "Variable",
10453
10492
  "canonicalReference": "@genesislcap/foundation-auth!fromIDPDTO:var",
10454
- "docComment": "/**\n * fromIDPDTO\n *\n * @param dto - IDP.\n *\n * @public\n */\n",
10493
+ "docComment": "/**\n * fromIDPDTO\n *\n * @param dto - IDENTITY_PROVIDER.\n *\n * @public\n */\n",
10455
10494
  "excerptTokens": [
10456
10495
  {
10457
10496
  "kind": "Content",
@@ -10463,8 +10502,8 @@
10463
10502
  },
10464
10503
  {
10465
10504
  "kind": "Reference",
10466
- "text": "IDP",
10467
- "canonicalReference": "@genesislcap/foundation-auth!IDP:interface"
10505
+ "text": "IDENTITY_PROVIDER",
10506
+ "canonicalReference": "@genesislcap/foundation-auth!IDENTITY_PROVIDER:interface"
10468
10507
  },
10469
10508
  {
10470
10509
  "kind": "Content",
@@ -10472,8 +10511,8 @@
10472
10511
  },
10473
10512
  {
10474
10513
  "kind": "Reference",
10475
- "text": "Idp",
10476
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface"
10514
+ "text": "IdentityProvider",
10515
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface"
10477
10516
  }
10478
10517
  ],
10479
10518
  "fileUrlPath": "src/mapper/utils.ts",
@@ -10645,27 +10684,27 @@
10645
10684
  },
10646
10685
  {
10647
10686
  "kind": "Interface",
10648
- "canonicalReference": "@genesislcap/foundation-auth!Idp:interface",
10687
+ "canonicalReference": "@genesislcap/foundation-auth!IDENTITY_PROVIDER:interface",
10649
10688
  "docComment": "/**\n * @public\n */\n",
10650
10689
  "excerptTokens": [
10651
10690
  {
10652
10691
  "kind": "Content",
10653
- "text": "export interface Idp "
10692
+ "text": "export interface IDENTITY_PROVIDER "
10654
10693
  }
10655
10694
  ],
10656
- "fileUrlPath": "src/entity/idp.ts",
10695
+ "fileUrlPath": "src/dto/IDENTITY_PROVIDER.ts",
10657
10696
  "releaseTag": "Public",
10658
- "name": "Idp",
10697
+ "name": "IDENTITY_PROVIDER",
10659
10698
  "preserveMemberOrder": false,
10660
10699
  "members": [
10661
10700
  {
10662
10701
  "kind": "PropertySignature",
10663
- "canonicalReference": "@genesislcap/foundation-auth!Idp#description:member",
10702
+ "canonicalReference": "@genesislcap/foundation-auth!IDENTITY_PROVIDER#DESCRIPTION:member",
10664
10703
  "docComment": "",
10665
10704
  "excerptTokens": [
10666
10705
  {
10667
10706
  "kind": "Content",
10668
- "text": "readonly description: "
10707
+ "text": "readonly DESCRIPTION: "
10669
10708
  },
10670
10709
  {
10671
10710
  "kind": "Content",
@@ -10679,7 +10718,7 @@
10679
10718
  "isReadonly": true,
10680
10719
  "isOptional": false,
10681
10720
  "releaseTag": "Public",
10682
- "name": "description",
10721
+ "name": "DESCRIPTION",
10683
10722
  "propertyTypeTokenRange": {
10684
10723
  "startIndex": 1,
10685
10724
  "endIndex": 2
@@ -10687,12 +10726,12 @@
10687
10726
  },
10688
10727
  {
10689
10728
  "kind": "PropertySignature",
10690
- "canonicalReference": "@genesislcap/foundation-auth!Idp#id:member",
10729
+ "canonicalReference": "@genesislcap/foundation-auth!IDENTITY_PROVIDER#ID:member",
10691
10730
  "docComment": "",
10692
10731
  "excerptTokens": [
10693
10732
  {
10694
10733
  "kind": "Content",
10695
- "text": "readonly id: "
10734
+ "text": "readonly ID: "
10696
10735
  },
10697
10736
  {
10698
10737
  "kind": "Content",
@@ -10706,7 +10745,7 @@
10706
10745
  "isReadonly": true,
10707
10746
  "isOptional": false,
10708
10747
  "releaseTag": "Public",
10709
- "name": "id",
10748
+ "name": "ID",
10710
10749
  "propertyTypeTokenRange": {
10711
10750
  "startIndex": 1,
10712
10751
  "endIndex": 2
@@ -10714,12 +10753,12 @@
10714
10753
  },
10715
10754
  {
10716
10755
  "kind": "PropertySignature",
10717
- "canonicalReference": "@genesislcap/foundation-auth!Idp#type:member",
10756
+ "canonicalReference": "@genesislcap/foundation-auth!IDENTITY_PROVIDER#TYPE:member",
10718
10757
  "docComment": "",
10719
10758
  "excerptTokens": [
10720
10759
  {
10721
10760
  "kind": "Content",
10722
- "text": "readonly type: "
10761
+ "text": "readonly TYPE: "
10723
10762
  },
10724
10763
  {
10725
10764
  "kind": "Content",
@@ -10733,7 +10772,7 @@
10733
10772
  "isReadonly": true,
10734
10773
  "isOptional": false,
10735
10774
  "releaseTag": "Public",
10736
- "name": "type",
10775
+ "name": "TYPE",
10737
10776
  "propertyTypeTokenRange": {
10738
10777
  "startIndex": 1,
10739
10778
  "endIndex": 2
@@ -10744,27 +10783,27 @@
10744
10783
  },
10745
10784
  {
10746
10785
  "kind": "Interface",
10747
- "canonicalReference": "@genesislcap/foundation-auth!IDP:interface",
10786
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider:interface",
10748
10787
  "docComment": "/**\n * @public\n */\n",
10749
10788
  "excerptTokens": [
10750
10789
  {
10751
10790
  "kind": "Content",
10752
- "text": "export interface IDP "
10791
+ "text": "export interface IdentityProvider "
10753
10792
  }
10754
10793
  ],
10755
- "fileUrlPath": "src/dto/IDP.ts",
10794
+ "fileUrlPath": "src/entity/identityProvider.ts",
10756
10795
  "releaseTag": "Public",
10757
- "name": "IDP",
10796
+ "name": "IdentityProvider",
10758
10797
  "preserveMemberOrder": false,
10759
10798
  "members": [
10760
10799
  {
10761
10800
  "kind": "PropertySignature",
10762
- "canonicalReference": "@genesislcap/foundation-auth!IDP#DESCRIPTION:member",
10801
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider#description:member",
10763
10802
  "docComment": "",
10764
10803
  "excerptTokens": [
10765
10804
  {
10766
10805
  "kind": "Content",
10767
- "text": "readonly DESCRIPTION: "
10806
+ "text": "readonly description: "
10768
10807
  },
10769
10808
  {
10770
10809
  "kind": "Content",
@@ -10778,7 +10817,7 @@
10778
10817
  "isReadonly": true,
10779
10818
  "isOptional": false,
10780
10819
  "releaseTag": "Public",
10781
- "name": "DESCRIPTION",
10820
+ "name": "description",
10782
10821
  "propertyTypeTokenRange": {
10783
10822
  "startIndex": 1,
10784
10823
  "endIndex": 2
@@ -10786,12 +10825,12 @@
10786
10825
  },
10787
10826
  {
10788
10827
  "kind": "PropertySignature",
10789
- "canonicalReference": "@genesislcap/foundation-auth!IDP#ID:member",
10828
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider#id:member",
10790
10829
  "docComment": "",
10791
10830
  "excerptTokens": [
10792
10831
  {
10793
10832
  "kind": "Content",
10794
- "text": "readonly ID: "
10833
+ "text": "readonly id: "
10795
10834
  },
10796
10835
  {
10797
10836
  "kind": "Content",
@@ -10805,7 +10844,7 @@
10805
10844
  "isReadonly": true,
10806
10845
  "isOptional": false,
10807
10846
  "releaseTag": "Public",
10808
- "name": "ID",
10847
+ "name": "id",
10809
10848
  "propertyTypeTokenRange": {
10810
10849
  "startIndex": 1,
10811
10850
  "endIndex": 2
@@ -10813,12 +10852,12 @@
10813
10852
  },
10814
10853
  {
10815
10854
  "kind": "PropertySignature",
10816
- "canonicalReference": "@genesislcap/foundation-auth!IDP#TYPE:member",
10855
+ "canonicalReference": "@genesislcap/foundation-auth!IdentityProvider#type:member",
10817
10856
  "docComment": "",
10818
10857
  "excerptTokens": [
10819
10858
  {
10820
10859
  "kind": "Content",
10821
- "text": "readonly TYPE: "
10860
+ "text": "readonly type: "
10822
10861
  },
10823
10862
  {
10824
10863
  "kind": "Content",
@@ -10832,7 +10871,7 @@
10832
10871
  "isReadonly": true,
10833
10872
  "isOptional": false,
10834
10873
  "releaseTag": "Public",
10835
- "name": "TYPE",
10874
+ "name": "type",
10836
10875
  "propertyTypeTokenRange": {
10837
10876
  "startIndex": 1,
10838
10877
  "endIndex": 2
@@ -12699,6 +12738,33 @@
12699
12738
  "startIndex": 1,
12700
12739
  "endIndex": 2
12701
12740
  }
12741
+ },
12742
+ {
12743
+ "kind": "PropertySignature",
12744
+ "canonicalReference": "@genesislcap/foundation-auth!LoginNack#refreshTokenExpirationMins:member",
12745
+ "docComment": "",
12746
+ "excerptTokens": [
12747
+ {
12748
+ "kind": "Content",
12749
+ "text": "readonly refreshTokenExpirationMins: "
12750
+ },
12751
+ {
12752
+ "kind": "Content",
12753
+ "text": "number"
12754
+ },
12755
+ {
12756
+ "kind": "Content",
12757
+ "text": ";"
12758
+ }
12759
+ ],
12760
+ "isReadonly": true,
12761
+ "isOptional": false,
12762
+ "releaseTag": "Public",
12763
+ "name": "refreshTokenExpirationMins",
12764
+ "propertyTypeTokenRange": {
12765
+ "startIndex": 1,
12766
+ "endIndex": 2
12767
+ }
12702
12768
  }
12703
12769
  ],
12704
12770
  "extendsTokenRanges": [
@@ -14022,29 +14088,6 @@
14022
14088
  "endIndex": 2
14023
14089
  }
14024
14090
  },
14025
- {
14026
- "kind": "Variable",
14027
- "canonicalReference": "@genesislcap/foundation-auth!SOCKET_URL:var",
14028
- "docComment": "/**\n * @public\n */\n",
14029
- "excerptTokens": [
14030
- {
14031
- "kind": "Content",
14032
- "text": "SOCKET_URL: "
14033
- },
14034
- {
14035
- "kind": "Content",
14036
- "text": "string"
14037
- }
14038
- ],
14039
- "fileUrlPath": "src/env.ts",
14040
- "isReadonly": false,
14041
- "releaseTag": "Public",
14042
- "name": "SOCKET_URL",
14043
- "variableTypeTokenRange": {
14044
- "startIndex": 1,
14045
- "endIndex": 2
14046
- }
14047
- },
14048
14091
  {
14049
14092
  "kind": "Variable",
14050
14093
  "canonicalReference": "@genesislcap/foundation-auth!SSO_LIST_URL:var",
@@ -253,8 +253,8 @@ export declare interface AuthFormEntryStore extends Store {
253
253
  readonly hasPasswordExpired: boolean;
254
254
  readonly passwordResetToken: string;
255
255
  readonly mfaCode: string;
256
- readonly idps: Idp[];
257
- readonly selectedIdp: Idp;
256
+ readonly idps: IdentityProvider[];
257
+ readonly selectedIdp: IdentityProvider;
258
258
  readonly ssoLoginUrl: string;
259
259
  readonly ssoToggled: boolean;
260
260
  readonly termsAgreed: boolean;
@@ -824,9 +824,9 @@ export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEnt
824
824
  /** {@inheritDoc AuthFormEntryStore.mfaCode} */
825
825
  mfaCode: string;
826
826
  /** {@inheritDoc AuthFormEntryStore.idps} */
827
- idps: Idp[];
827
+ idps: IdentityProvider[];
828
828
  /** {@inheritDoc AuthFormEntryStore.selectedIdp} */
829
- selectedIdp: Idp;
829
+ selectedIdp: IdentityProvider;
830
830
  /** {@inheritDoc AuthFormEntryStore.ssoToggled} */
831
831
  ssoToggled: boolean;
832
832
  /** {@inheritDoc AuthFormEntryStore.termsAgreed} */
@@ -1260,6 +1260,7 @@ export declare interface EVENT_LOGIN_AUTH_NACK extends NACK {
1260
1260
  * A refresh token may be returned in a NACK on MFA_REQUIRED or similar.
1261
1261
  */
1262
1262
  readonly REFRESH_AUTH_TOKEN: string;
1263
+ readonly REFRESH_TOKEN_EXPIRATION_MINS: number;
1263
1264
  }
1264
1265
 
1265
1266
  /**
@@ -1369,6 +1370,10 @@ export declare type ForgotPasswordParams = {
1369
1370
  *
1370
1371
  * See the {@link configure} hook for more information on how to set up and use this micro frontend in your application.
1371
1372
  *
1373
+ * @fires store-connected - Fires a custom 'store-connected' event after connection to connect the store.
1374
+ * @fires store-ready - Fires a custom 'store-ready' event after connection to ready the store.
1375
+ * @fires store-disconnected - Fires a custom 'store-disconnected' event after disconnection to unbind the store.
1376
+ *
1372
1377
  * @public
1373
1378
  */
1374
1379
  export declare class FoundationAuth extends FoundationAuth_base {
@@ -1421,6 +1426,10 @@ export declare class FoundationAuth extends FoundationAuth_base {
1421
1426
  * @internal
1422
1427
  */
1423
1428
  protected readyStore(): void;
1429
+ /**
1430
+ * @internal
1431
+ */
1432
+ protected disconnectStore(): void;
1424
1433
  /**
1425
1434
  * @internal
1426
1435
  */
@@ -1446,7 +1455,9 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
1446
1455
  inert: boolean;
1447
1456
  innerText: string;
1448
1457
  lang: string;
1449
- readonly offsetHeight: number;
1458
+ readonly offsetHeight: number; /**
1459
+ * @internal
1460
+ */
1450
1461
  readonly offsetLeft: number;
1451
1462
  readonly offsetParent: Element;
1452
1463
  readonly offsetTop: number;
@@ -1476,9 +1487,7 @@ declare const FoundationAuth_base: abstract new (...args: any[]) => {
1476
1487
  outerHTML: string;
1477
1488
  readonly ownerDocument: Document;
1478
1489
  readonly part: DOMTokenList;
1479
- readonly prefix: string; /**
1480
- * @internal
1481
- */
1490
+ readonly prefix: string;
1482
1491
  readonly scrollHeight: number;
1483
1492
  scrollLeft: number;
1484
1493
  scrollTop: number;
@@ -1774,10 +1783,10 @@ export declare const fromDTOStringArray: (arr: string[]) => string[];
1774
1783
 
1775
1784
  /**
1776
1785
  * fromIDPDTO
1777
- * @param dto - IDP.
1786
+ * @param dto - IDENTITY_PROVIDER.
1778
1787
  * @public
1779
1788
  */
1780
- export declare const fromIDPDTO: (dto: IDP) => Idp;
1789
+ export declare const fromIDPDTO: (dto: IDENTITY_PROVIDER) => IdentityProvider;
1781
1790
 
1782
1791
  /**
1783
1792
  * Represents options for retrieving credentials.
@@ -1833,7 +1842,7 @@ export declare const hasDTOErrorWarningCode: (dto: NACK, code: string) => boolea
1833
1842
  /**
1834
1843
  * @public
1835
1844
  */
1836
- export declare interface IDP {
1845
+ export declare interface IDENTITY_PROVIDER {
1837
1846
  readonly ID: string;
1838
1847
  readonly TYPE: string;
1839
1848
  readonly DESCRIPTION: string;
@@ -1842,7 +1851,7 @@ export declare interface IDP {
1842
1851
  /**
1843
1852
  * @public
1844
1853
  */
1845
- export declare interface Idp {
1854
+ export declare interface IdentityProvider {
1846
1855
  readonly id: string;
1847
1856
  readonly type: string;
1848
1857
  readonly description: string;
@@ -1856,11 +1865,11 @@ declare interface IDPService {
1856
1865
  /**
1857
1866
  * @param url - Defaults to `SSO_LIST_URL`.
1858
1867
  */
1859
- getList(url?: string): Promise<Idp[]>;
1868
+ getList(url?: string): Promise<IdentityProvider[]>;
1860
1869
  /**
1861
- * @param idp - An idp entity.
1870
+ * @param idp - An IdentityProvider entity.
1862
1871
  */
1863
- getLoginUrl(idp: Idp): string;
1872
+ getLoginUrl(idp: IdentityProvider): string;
1864
1873
  }
1865
1874
 
1866
1875
  /**
@@ -1873,7 +1882,7 @@ declare type InternalAuthEventMap = {};
1873
1882
 
1874
1883
  declare type InternalEventMap = {
1875
1884
  'auth-fetch-idps': void;
1876
- 'auth-fetch-idps-success': Idp[];
1885
+ 'auth-fetch-idps-success': IdentityProvider[];
1877
1886
  'auth-fetch-idps-error': Error;
1878
1887
  };
1879
1888
 
@@ -2136,6 +2145,7 @@ export declare const LoginMapper: InterfaceSymbol<LoginMapper>;
2136
2145
  */
2137
2146
  export declare interface LoginNack extends Nack {
2138
2147
  readonly refreshAuthToken: string;
2148
+ readonly refreshTokenExpirationMins: number;
2139
2149
  readonly hasIncorrectCredentials: boolean;
2140
2150
  readonly maxTriesReached: boolean;
2141
2151
  readonly isMFARequired: boolean;
@@ -2469,11 +2479,6 @@ export declare type Settings = {
2469
2479
  public?: boolean;
2470
2480
  };
2471
2481
 
2472
- /**
2473
- * @public
2474
- */
2475
- export declare let SOCKET_URL: string;
2476
-
2477
2482
  /**
2478
2483
  * @public
2479
2484
  */
@@ -7,5 +7,5 @@
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- readonly idps: Idp[];
10
+ readonly idps: IdentityProvider[];
11
11
  ```