@genesislcap/foundation-auth 15.12.0 → 15.13.1

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.
@@ -131,6 +131,14 @@ export interface AuthConfig extends PartialFASTElementDefinition {
131
131
  * ```
132
132
  */
133
133
  omitRoutes: Exclude<AuthRoutes, 'login' | 'not-found'>[];
134
+ /**
135
+ * Show the Change Password link on the login page.
136
+ *
137
+ * @remarks
138
+ * Independent of {@link (AuthConfig:interface).omitRoutes}: the `reset-password` route can remain
139
+ * registered while this link is hidden. Defaults to `true`.
140
+ */
141
+ showChangePasswordLink?: boolean;
134
142
  /**
135
143
  * Map of configuration for each of the primary form fields.
136
144
  *
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAO,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAK9F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAA0B,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtE;;GAEG;AAEH;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IACjC,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,WAAW,CAAC;C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BACX,SAAQ,eAAe,CAAC,kBAAkB,EAAE,gBAAgB,CAC5D,YAAW,WAAW;IAGd,OAAO,CAAC,IAAI;IACJ,OAAO,CAAC,YAAY;IACf,OAAO,CAAC,EAAE;IACvB,OAAO,CAAC,IAAI;IACC,OAAO,CAAC,aAAa;IAC5B,OAAO,CAAC,MAAM;IACb,OAAO,CAAC,OAAO;gBANd,IAAI,EAAE,IAAI,EACF,YAAY,EAAE,YAAY,EACrB,EAAE,EAAE,iBAAiB,EAClC,IAAI,EAAE,IAAI,EACG,aAAa,EAAE,iBAAiB,EACvC,MAAM,EAAE,UAAU,EACjB,OAAO,EAAE,WAAW;IAipB3C,KAAK,CACH,OAAO,GAAE,kBAAkB,CAAC,OAAO,IAAI,CAAC,OAAO,CAM9C;IAKH;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAIxB,SAAS,CAAC,sBAAsB,IAAI,WAAW;IAQ/C,SAAS,CAAC,+BAA+B,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW;IAuB3E,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,KAAK,GAAG,iBAAiB;IAgB3E,SAAS,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;MAwBpB;IAEF,SAAS,CAAC,aAAa;;;MAGpB;CACJ;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,mEAA0E,CAAC;AAEnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAE5C"}
@@ -167,6 +167,7 @@ export declare const ResetPassword: React.ForwardRefExoticComponent<
167
167
  onAuthUsernameChanged?: (event: CustomEvent<string>) => void;
168
168
  onAuthPasswordChanged?: (event: CustomEvent<string>) => void;
169
169
  onAuthPassword2Changed?: (event: CustomEvent<string>) => void;
170
+ onAuthPasswordConfirmChanged?: (event: CustomEvent<string>) => void;
170
171
  onAuthShowPasswordChanged?: (event: CustomEvent<boolean>) => void;
171
172
  }
172
173
  > & React.RefAttributes<ResetPasswordWC>
@@ -24,7 +24,7 @@ export type ConfigHost = {
24
24
  config: AuthConfig;
25
25
  };
26
26
  declare const ConfigHostElement_base: abstract new (...args: any[]) => {
27
- $emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-showPassword-changed" | "auth-selectedIdp-changed" | "auth-ssoToggled-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-store-connected" | "auth-store-disconnected" | "auth-store-ready" | "auth-login" | "auth-logout" | "auth-change-password" | "auth-forgot-password" | "auth-reset-password" | "auth-terms-conditions">(...args: EventMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: EventMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
27
+ $emit<K extends "auth-autofill-form" | "auth-organisation-changed" | "auth-username-changed" | "auth-email-changed" | "auth-password-changed" | "auth-password2-changed" | "auth-password-confirm-changed" | "auth-showPassword-changed" | "auth-selectedIdp-changed" | "auth-ssoToggled-changed" | "store-connected" | "store-disconnected" | "store-ready" | "auth-machine-event" | "auth-store-connected" | "auth-store-disconnected" | "auth-store-ready" | "auth-login" | "auth-logout" | "auth-change-password" | "auth-forgot-password" | "auth-reset-password" | "auth-terms-conditions">(...args: EventMap[K] extends void ? [type: K, options?: import("@genesislcap/foundation-events").EmitOptions] : [type: K, detail: EventMap[K], options?: import("@genesislcap/foundation-events").EmitOptions]): import("@genesislcap/foundation-events").EmitReturn;
28
28
  accessKey: string;
29
29
  readonly accessKeyLabel: string;
30
30
  autocapitalize: string;
@@ -426,7 +426,7 @@ export declare const passwordField: <T extends BaseRoute>(label?: string) => imp
426
426
  /**
427
427
  * @internal
428
428
  */
429
- export declare const password2Field: <T extends BaseRoute>(type: "new" | "confirmation") => import("@microsoft/fast-element").ViewTemplate<T, any>;
429
+ export declare const password2Field: <T extends BaseRoute>(type: "new" | "confirmation" | "confirmNew") => import("@microsoft/fast-element").ViewTemplate<T, any>;
430
430
  /**
431
431
  * @internal
432
432
  */
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/routes/base.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AAGpD,OAAO,EAEL,OAAO,EAQR,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAGvD,OAAO,EAAE,UAAU,EAAqB,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,KAAK,QAAQ,GAAG,YAAY,GAAG,qBAAqB,GAAG,EAAE,CAAC;AAE1D;;GAEG;AACH,eAAO,MAAM,SAAS,yKAAiC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,UAAU,yKAAkC,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,UAAU,CAAC;CACpB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"version":3,"file":"login.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/login/login.template.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA+GrC;;;GAGG;AACH,eAAO,MAAM,aAAa,4DA8CzB,CAAC"}
@@ -10,6 +10,7 @@ import type { Settings } from '../types';
10
10
  * @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
11
11
  * @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
12
12
  * @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
13
+ * @fires auth-password-confirm-changed - Fires a custom 'auth-password-confirm-changed' event. detail: `string`
13
14
  * @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
14
15
  *
15
16
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;GAYG;AACH,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAE5C,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAKhC,QAAQ;IAiBd,IACI,WAAW,mEAEd;CACF"}
1
+ {"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;;GAaG;AACH,qBAKa,aAAc,SAAQ,SAAS;IAC9B,kBAAkB,EAAE,OAAO,CAAS;IACpC,kBAAkB,EAAE,MAAM,CAAM;IAE5C,KAAK,CAAC,KAAK,EAAE,eAAe,CAAC,QAAQ,CAAC;IAKhC,QAAQ;IAwBd,IACI,WAAW,mEAEd;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,oEA6BjC,CAAC"}
1
+ {"version":3,"file":"reset-password.template.d.ts","sourceRoot":"","sources":["../../../../src/routes/reset-password/reset-password.template.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,oEAoCjC,CAAC"}
@@ -14,6 +14,7 @@ export type AuthFormEntryEventMap = {
14
14
  'auth-email-changed': string;
15
15
  'auth-password-changed': string;
16
16
  'auth-password2-changed': string;
17
+ 'auth-password-confirm-changed': string;
17
18
  'auth-showPassword-changed': boolean;
18
19
  'auth-selectedIdp-changed': string;
19
20
  'auth-ssoToggled-changed': boolean;
@@ -26,6 +27,7 @@ type InternalEventMap = {
26
27
  'auth-fetch-idps': void;
27
28
  'auth-fetch-idps-success': IdentityProvider[];
28
29
  'auth-fetch-idps-error': Error;
30
+ 'auth-password-mismatch': Error;
29
31
  };
30
32
  /**
31
33
  * AuthFormEntryStore interface.
@@ -42,6 +44,10 @@ export interface AuthFormEntryStore extends Store {
42
44
  * New, confirm etc.
43
45
  */
44
46
  readonly password2: string;
47
+ /**
48
+ * Confirmation of {@link (AuthFormEntryStore:interface).password2} (new password).
49
+ */
50
+ readonly passwordConfirm: string;
45
51
  readonly showPassword: boolean;
46
52
  readonly hasPasswordExpired: boolean;
47
53
  readonly passwordResetToken: string;
@@ -57,6 +63,7 @@ export interface AuthFormEntryStore extends Store {
57
63
  onEmailChanged(event: CustomEvent<string>): void;
58
64
  onPasswordChanged(event: CustomEvent<string>): void;
59
65
  onPassword2Changed(event: CustomEvent<string>): void;
66
+ onPasswordConfirmChanged(event: CustomEvent<string>): void;
60
67
  onShowPasswordChanged(event: CustomEvent<boolean>): void;
61
68
  onSelectedIdpChanged(event: CustomEvent<string>): void;
62
69
  onSSOToggleChanged(event: CustomEvent<boolean>): void;
@@ -80,6 +87,8 @@ export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEnt
80
87
  password: string;
81
88
  /** {@inheritDoc AuthFormEntryStore.password2} */
82
89
  password2: string;
90
+ /** {@inheritDoc AuthFormEntryStore.passwordConfirm} */
91
+ passwordConfirm: string;
83
92
  /** {@inheritDoc AuthFormEntryStore.showPassword} */
84
93
  showPassword: boolean;
85
94
  /** {@inheritDoc AuthFormEntryStore.hasPasswordExpired} */
@@ -121,6 +130,8 @@ export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEnt
121
130
  onPasswordChanged: EventListener;
122
131
  /** {@inheritDoc AuthFormEntryStore.onPassword2Changed} */
123
132
  onPassword2Changed: EventListener;
133
+ /** {@inheritDoc AuthFormEntryStore.onPasswordConfirmChanged} */
134
+ onPasswordConfirmChanged: EventListener;
124
135
  /** {@inheritDoc AuthFormEntryStore.onShowPasswordChanged} */
125
136
  onShowPasswordChanged: EventListener;
126
137
  /** {@inheritDoc AuthFormEntryStore.onSelectedIdpChanged} */
@@ -1 +1 @@
1
- {"version":3,"file":"authFormEntry.d.ts","sourceRoot":"","sources":["../../../src/store/authFormEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,aAAa,EAAiB,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAOpF,OAAO,EA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DAAmD;IACnD,IACI,WAAW,IAAI,MAAM,CAIxB;;IAeD;;OAEG;IACH,SAAS,CAAC,aAAa;IAKvB;;OAEG;cACa,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IAuE5C,sDAAsD;IACtD,cAAc,gBAAoE;IAElF,6DAA6D;IAC7D,qBAAqB,gBAGnB;IAEF,yDAAyD;IACzD,iBAAiB,gBAGf;IAEF,sDAAsD;IACtD,cAAc,gBAGZ;IAEF,yDAAyD;IACzD,iBAAiB,gBAGf;IAEF,0DAA0D;IAC1D,kBAAkB,gBAGhB;IAEF,gEAAgE;IAChE,wBAAwB,gBAQtB;IAEF,6DAA6D;IAC7D,qBAAqB,gBAGnB;IAEF,4DAA4D;IAC5D,oBAAoB,gBAIjB;IAEH,0DAA0D;IAC1D,kBAAkB,gBAGhB;IAEF;;;;OAIG;IACH,SAAS,CAAC,iBAAiB,GAAU,MAAM,OAAO,EAAE,MAAM,OAAO,mBAW/D;IAEF,mDAAmD;IACnD,IAAI,WAAW,IAAI,MAAM,CAExB;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,0EAG9B,CAAC"}
@@ -25,6 +25,7 @@ export const defaultAuthConfig = {
25
25
  `,
26
26
  backgroundVideo: null,
27
27
  omitRoutes: [],
28
+ showChangePasswordLink: true,
28
29
  fields: {
29
30
  organisation: null,
30
31
  username: {
@@ -464,7 +464,10 @@ let DefaultAuthMachine = class DefaultAuthMachine extends AbstractMachine {
464
464
  content: 'MESSAGE_PASSWORD_CHANGE_SUCCESS',
465
465
  },
466
466
  after: {
467
- feedbackDelay: '#authMachine.idle',
467
+ feedbackDelay: {
468
+ actions: 'loginRedirect',
469
+ target: '#authMachine.idle',
470
+ },
468
471
  },
469
472
  },
470
473
  forgotPassword: {
@@ -482,7 +485,10 @@ let DefaultAuthMachine = class DefaultAuthMachine extends AbstractMachine {
482
485
  content: 'MESSAGE_PASSWORD_RESET_SUCCESS',
483
486
  },
484
487
  after: {
485
- feedbackDelay: '#authMachine.idle',
488
+ feedbackDelay: {
489
+ actions: 'loginRedirect',
490
+ target: '#authMachine.idle',
491
+ },
486
492
  },
487
493
  },
488
494
  incorrectCredentials: {
@@ -516,11 +522,9 @@ let DefaultAuthMachine = class DefaultAuthMachine extends AbstractMachine {
516
522
  meta: {
517
523
  content: 'MESSAGE_PASSWORD_EXPIRED',
518
524
  },
519
- after: {
520
- feedbackDelay: {
521
- actions: 'resetPasswordRedirect',
522
- target: '#authMachine.idle',
523
- },
525
+ always: {
526
+ actions: 'resetPasswordRedirect',
527
+ target: '#authMachine.idle',
524
528
  },
525
529
  },
526
530
  termsAndConditions: {
@@ -633,6 +637,7 @@ let DefaultAuthMachine = class DefaultAuthMachine extends AbstractMachine {
633
637
  postLoginRedirect: this.config.postLoginRedirect,
634
638
  postLogoutRedirect: this.config.postLogoutRedirect,
635
639
  resetPasswordRedirect: () => this.routing.navigateTo('reset-password?expired'),
640
+ loginRedirect: () => this.routing.navigateTo(''),
636
641
  termsAndConditionsRedirect: () => this.routing.navigateTo('terms-and-conditions'),
637
642
  verifyRedirect: () => this.routing.navigateTo('verify'),
638
643
  refreshLogin: () => this.send({ type: 'login', params: { type: CredentialType.REFRESH } }),
@@ -171,14 +171,32 @@ export const passwordField = (label) => html `
171
171
  </rapid-text-field>
172
172
  `;
173
173
  const password2FieldMeta = {
174
- new: ['new-password', 'FIELD_PASSWORD_NEW_TITLE'],
175
- confirmation: ['password-confirmation', 'FIELD_PASSWORD_CONFIRM_TITLE'],
174
+ new: {
175
+ name: 'new-password',
176
+ label: 'FIELD_PASSWORD_NEW_TITLE',
177
+ valueKey: 'password2',
178
+ event: 'auth-password2-changed',
179
+ },
180
+ /** Confirm against `password` (e.g. request-account). */
181
+ confirmation: {
182
+ name: 'password-confirmation',
183
+ label: 'FIELD_PASSWORD_CONFIRM_TITLE',
184
+ valueKey: 'password2',
185
+ event: 'auth-password2-changed',
186
+ },
187
+ /** Confirm against `password2` / new password (e.g. reset-password / first login). */
188
+ confirmNew: {
189
+ name: 'password-confirmation',
190
+ label: 'FIELD_PASSWORD_REPEAT_NEW_TITLE',
191
+ valueKey: 'passwordConfirm',
192
+ event: 'auth-password-confirm-changed',
193
+ },
176
194
  };
177
195
  /**
178
196
  * @internal
179
197
  */
180
198
  export const password2Field = (type) => {
181
- const [name, label] = password2FieldMeta[type];
199
+ const { name, label, valueKey, event } = password2FieldMeta[type];
182
200
  return html `
183
201
  <rapid-text-field
184
202
  type="${(x) => (x.store.formEntry.showPassword ? 'text' : 'password')}"
@@ -186,8 +204,8 @@ export const password2Field = (type) => {
186
204
  id="${name}"
187
205
  autocomplete="${name}"
188
206
  data-test-id="${name}"
189
- :value="${(x) => x.store.formEntry.password2}"
190
- @input="${inputEmit('auth-password2-changed')}"
207
+ :value="${(x) => x.store.formEntry[valueKey]}"
208
+ @input="${inputEmit(event)}"
191
209
  required
192
210
  >
193
211
  <span class="form-title">${(x) => x.toLocalisedText(label)}</span>
@@ -19,7 +19,8 @@ const regularLogin = html `
19
19
  ${(x) => x.toLocalisedText('LOGIN_FORGOT_PASSWORD_LINK')}
20
20
  </rapid-button>
21
21
  `)}
22
- ${when((x) => !x.config.omitRoutes.includes('reset-password'), html `
22
+ ${when((x) => x.config.showChangePasswordLink !== false &&
23
+ !x.config.omitRoutes.includes('reset-password'), html `
23
24
  <rapid-button
24
25
  class="link-url"
25
26
  appearance="lightweight"
@@ -12,6 +12,7 @@ import { ResetPasswordTemplate as template } from './reset-password.template';
12
12
  * @fires auth-username-changed - Fires a custom 'auth-username-changed' event. detail: `string`
13
13
  * @fires auth-password-changed - Fires a custom 'auth-password-changed' event. detail: `string`
14
14
  * @fires auth-password2-changed - Fires a custom 'auth-password2-changed' event. detail: `string`
15
+ * @fires auth-password-confirm-changed - Fires a custom 'auth-password-confirm-changed' event. detail: `string`
15
16
  * @fires auth-showPassword-changed - Fires a custom 'auth-showPassword-changed' event. detail: `boolean`
16
17
  *
17
18
  * @public
@@ -28,10 +29,16 @@ let ResetPassword = class ResetPassword extends BaseRoute {
28
29
  }
29
30
  onSubmit() {
30
31
  return __awaiter(this, void 0, void 0, function* () {
32
+ const { password2, passwordConfirm, errors } = this.store.formEntry;
33
+ if (password2 !== passwordConfirm) {
34
+ errors.set('auth-password-mismatch', new Error('ERROR_PASSWORD_MISMATCH'));
35
+ return;
36
+ }
37
+ errors.delete('auth-password-mismatch');
31
38
  if (this.passwordResetToken) {
32
39
  this.$emit('auth-reset-password', {
33
40
  username: this.store.formEntry.orgUsername,
34
- newPassword: this.store.formEntry.password2,
41
+ newPassword: password2,
35
42
  resetToken: this.passwordResetToken,
36
43
  });
37
44
  return;
@@ -39,7 +46,7 @@ let ResetPassword = class ResetPassword extends BaseRoute {
39
46
  this.$emit('auth-change-password', {
40
47
  username: this.store.formEntry.orgUsername,
41
48
  oldPassword: this.store.formEntry.password,
42
- newPassword: this.store.formEntry.password2,
49
+ newPassword: password2,
43
50
  });
44
51
  });
45
52
  }
@@ -17,9 +17,11 @@ export const ResetPasswordTemplate = html `
17
17
  <form @submit=${(x) => x.onSubmit()} autocomplete="on" data-test-id="form">
18
18
  ${organisationField()} ${usernameField()}
19
19
  ${when((x) => !x.passwordResetToken, html `
20
- ${(x) => passwordField(x.toLocalisedText('RESET_PASSWORD_OLD_PASSWORD_FIELD'))}
20
+ ${(x) => passwordField(x.toLocalisedText(x.hasPasswordExpired
21
+ ? 'RESET_PASSWORD_CURRENT_PASSWORD_FIELD'
22
+ : 'RESET_PASSWORD_OLD_PASSWORD_FIELD'))}
21
23
  `)}
22
- ${password2Field('new')}
24
+ ${password2Field('new')} ${password2Field('confirmNew')}
23
25
  <div class="form-buttons">
24
26
  ${(x) => submitButton(x.toLocalisedText('RESET_PASSWORD_SUBMIT_BUTTON'))}
25
27
  ${(x) => backButton(() => x.onBack(), x.toLocalisedText('RESET_PASSWORD_BACK_BUTTON'))}
@@ -30,6 +30,8 @@ export class DefaultAuthFormEntryStore extends AbstractStore {
30
30
  this.password = '';
31
31
  /** {@inheritDoc AuthFormEntryStore.password2} */
32
32
  this.password2 = '';
33
+ /** {@inheritDoc AuthFormEntryStore.passwordConfirm} */
34
+ this.passwordConfirm = '';
33
35
  /** {@inheritDoc AuthFormEntryStore.showPassword} */
34
36
  this.showPassword = false;
35
37
  /** {@inheritDoc AuthFormEntryStore.hasPasswordExpired} */
@@ -58,6 +60,13 @@ export class DefaultAuthFormEntryStore extends AbstractStore {
58
60
  this.onPasswordChanged = this.createListener('auth-password-changed', (detail) => (this.commit.password = detail));
59
61
  /** {@inheritDoc AuthFormEntryStore.onPassword2Changed} */
60
62
  this.onPassword2Changed = this.createListener('auth-password2-changed', (detail) => (this.commit.password2 = detail));
63
+ /** {@inheritDoc AuthFormEntryStore.onPasswordConfirmChanged} */
64
+ this.onPasswordConfirmChanged = this.createListener('auth-password-confirm-changed', (detail) => {
65
+ this.commit.passwordConfirm = detail;
66
+ if (this.commit.password2 === detail) {
67
+ this.commit.errors.delete('auth-password-mismatch');
68
+ }
69
+ });
61
70
  /** {@inheritDoc AuthFormEntryStore.onShowPasswordChanged} */
62
71
  this.onShowPasswordChanged = this.createListener('auth-showPassword-changed', (detail) => (this.commit.showPassword = detail));
63
72
  /** {@inheritDoc AuthFormEntryStore.onSelectedIdpChanged} */
@@ -200,6 +209,9 @@ __decorate([
200
209
  __decorate([
201
210
  observable
202
211
  ], DefaultAuthFormEntryStore.prototype, "password2", void 0);
212
+ __decorate([
213
+ observable
214
+ ], DefaultAuthFormEntryStore.prototype, "passwordConfirm", void 0);
203
215
  __decorate([
204
216
  observable
205
217
  ], DefaultAuthFormEntryStore.prototype, "showPassword", void 0);
@@ -27,6 +27,7 @@
27
27
  "REQUEST_ACCOUNT_BUTTON_BACK": "Back",
28
28
  "RESET_PASSWORD_SUBTITLE": "Enter the username registered to your account",
29
29
  "RESET_PASSWORD_OLD_PASSWORD_FIELD": "Old Password",
30
+ "RESET_PASSWORD_CURRENT_PASSWORD_FIELD": "Current Password",
30
31
  "RESET_PASSWORD_SUBMIT_BUTTON": "Change Password",
31
32
  "RESET_PASSWORD_BACK_BUTTON": "Back",
32
33
  "VERIFY_TITLE": "Verify that it's you",
@@ -39,6 +40,7 @@
39
40
  "FIELD_PASSWORD_TITLE": "Password",
40
41
  "FIELD_PASSWORD_NEW_TITLE": "New Password",
41
42
  "FIELD_PASSWORD_CONFIRM_TITLE": "Confirm Password",
43
+ "FIELD_PASSWORD_REPEAT_NEW_TITLE": "Repeat New Password",
42
44
  "MESSAGE_PASSWORD_CHANGE_SUCCESS": "Password change success.",
43
45
  "MESSAGE_FORGOT_PASSWORD_RESET": "Please check your inbox for reset instructions.",
44
46
  "MESSAGE_PASSWORD_RESET_SUCCESS": "Password reset success.",
@@ -49,6 +51,7 @@
49
51
  "ERROR_LOGIN": "Login error.",
50
52
  "ERROR_SILENT_LOGIN": "Silent login error.",
51
53
  "ERROR_CHANGE_PASSWORD": "Change password error.",
54
+ "ERROR_PASSWORD_MISMATCH": "New password and confirmation must match.",
52
55
  "ERROR_FORGOT_PASSWORD": "Forgot password error.",
53
56
  "ERROR_RESET_PASSWORD": "Reset password error.",
54
57
  "ERROR_LOGOUT_ERROR": "Logout error.",
@@ -606,6 +606,33 @@
606
606
  "endIndex": 2
607
607
  }
608
608
  },
609
+ {
610
+ "kind": "PropertySignature",
611
+ "canonicalReference": "@genesislcap/foundation-auth!AuthConfig#showChangePasswordLink:member",
612
+ "docComment": "/**\n * Show the Change Password link on the login page.\n *\n * @remarks\n *\n * Independent of {@link (AuthConfig:interface).omitRoutes}: the `reset-password` route can remain registered while this link is hidden. Defaults to `true`.\n */\n",
613
+ "excerptTokens": [
614
+ {
615
+ "kind": "Content",
616
+ "text": "showChangePasswordLink?: "
617
+ },
618
+ {
619
+ "kind": "Content",
620
+ "text": "boolean"
621
+ },
622
+ {
623
+ "kind": "Content",
624
+ "text": ";"
625
+ }
626
+ ],
627
+ "isReadonly": false,
628
+ "isOptional": true,
629
+ "releaseTag": "Public",
630
+ "name": "showChangePasswordLink",
631
+ "propertyTypeTokenRange": {
632
+ "startIndex": 1,
633
+ "endIndex": 2
634
+ }
635
+ },
609
636
  {
610
637
  "kind": "PropertySignature",
611
638
  "canonicalReference": "@genesislcap/foundation-auth!AuthConfig#showEnvironmentIndicator:member",
@@ -923,7 +950,7 @@
923
950
  },
924
951
  {
925
952
  "kind": "Content",
926
- "text": "{\n 'auth-autofill-form': void;\n 'auth-organisation-changed': string;\n 'auth-username-changed': string;\n 'auth-email-changed': string;\n 'auth-password-changed': string;\n 'auth-password2-changed': string;\n 'auth-showPassword-changed': boolean;\n 'auth-selectedIdp-changed': string;\n 'auth-ssoToggled-changed': boolean;\n}"
953
+ "text": "{\n 'auth-autofill-form': void;\n 'auth-organisation-changed': string;\n 'auth-username-changed': string;\n 'auth-email-changed': string;\n 'auth-password-changed': string;\n 'auth-password2-changed': string;\n 'auth-password-confirm-changed': string;\n 'auth-showPassword-changed': boolean;\n 'auth-selectedIdp-changed': string;\n 'auth-ssoToggled-changed': boolean;\n}"
927
954
  },
928
955
  {
929
956
  "kind": "Content",
@@ -1352,6 +1379,56 @@
1352
1379
  ],
1353
1380
  "name": "onPasswordChanged"
1354
1381
  },
1382
+ {
1383
+ "kind": "MethodSignature",
1384
+ "canonicalReference": "@genesislcap/foundation-auth!AuthFormEntryStore#onPasswordConfirmChanged:member(1)",
1385
+ "docComment": "",
1386
+ "excerptTokens": [
1387
+ {
1388
+ "kind": "Content",
1389
+ "text": "onPasswordConfirmChanged(event: "
1390
+ },
1391
+ {
1392
+ "kind": "Reference",
1393
+ "text": "CustomEvent",
1394
+ "canonicalReference": "!CustomEvent:interface"
1395
+ },
1396
+ {
1397
+ "kind": "Content",
1398
+ "text": "<string>"
1399
+ },
1400
+ {
1401
+ "kind": "Content",
1402
+ "text": "): "
1403
+ },
1404
+ {
1405
+ "kind": "Content",
1406
+ "text": "void"
1407
+ },
1408
+ {
1409
+ "kind": "Content",
1410
+ "text": ";"
1411
+ }
1412
+ ],
1413
+ "isOptional": false,
1414
+ "returnTypeTokenRange": {
1415
+ "startIndex": 4,
1416
+ "endIndex": 5
1417
+ },
1418
+ "releaseTag": "Public",
1419
+ "overloadIndex": 1,
1420
+ "parameters": [
1421
+ {
1422
+ "parameterName": "event",
1423
+ "parameterTypeTokenRange": {
1424
+ "startIndex": 1,
1425
+ "endIndex": 3
1426
+ },
1427
+ "isOptional": false
1428
+ }
1429
+ ],
1430
+ "name": "onPasswordConfirmChanged"
1431
+ },
1355
1432
  {
1356
1433
  "kind": "MethodSignature",
1357
1434
  "canonicalReference": "@genesislcap/foundation-auth!AuthFormEntryStore#onSelectedIdpChanged:member(1)",
@@ -1660,6 +1737,33 @@
1660
1737
  "endIndex": 2
1661
1738
  }
1662
1739
  },
1740
+ {
1741
+ "kind": "PropertySignature",
1742
+ "canonicalReference": "@genesislcap/foundation-auth!AuthFormEntryStore#passwordConfirm:member",
1743
+ "docComment": "/**\n * Confirmation of {@link (AuthFormEntryStore:interface).password2} (new password).\n */\n",
1744
+ "excerptTokens": [
1745
+ {
1746
+ "kind": "Content",
1747
+ "text": "readonly passwordConfirm: "
1748
+ },
1749
+ {
1750
+ "kind": "Content",
1751
+ "text": "string"
1752
+ },
1753
+ {
1754
+ "kind": "Content",
1755
+ "text": ";"
1756
+ }
1757
+ ],
1758
+ "isReadonly": true,
1759
+ "isOptional": false,
1760
+ "releaseTag": "Public",
1761
+ "name": "passwordConfirm",
1762
+ "propertyTypeTokenRange": {
1763
+ "startIndex": 1,
1764
+ "endIndex": 2
1765
+ }
1766
+ },
1663
1767
  {
1664
1768
  "kind": "PropertySignature",
1665
1769
  "canonicalReference": "@genesislcap/foundation-auth!AuthFormEntryStore#passwordResetToken:member",
@@ -5026,6 +5130,37 @@
5026
5130
  "isProtected": false,
5027
5131
  "isAbstract": false
5028
5132
  },
5133
+ {
5134
+ "kind": "Property",
5135
+ "canonicalReference": "@genesislcap/foundation-auth!DefaultAuthFormEntryStore#onPasswordConfirmChanged:member",
5136
+ "docComment": "/**\n * {@inheritDoc AuthFormEntryStore.onPasswordConfirmChanged}\n */\n",
5137
+ "excerptTokens": [
5138
+ {
5139
+ "kind": "Content",
5140
+ "text": "onPasswordConfirmChanged: "
5141
+ },
5142
+ {
5143
+ "kind": "Reference",
5144
+ "text": "EventListener",
5145
+ "canonicalReference": "!EventListener:interface"
5146
+ },
5147
+ {
5148
+ "kind": "Content",
5149
+ "text": ";"
5150
+ }
5151
+ ],
5152
+ "isReadonly": false,
5153
+ "isOptional": false,
5154
+ "releaseTag": "Public",
5155
+ "name": "onPasswordConfirmChanged",
5156
+ "propertyTypeTokenRange": {
5157
+ "startIndex": 1,
5158
+ "endIndex": 2
5159
+ },
5160
+ "isStatic": false,
5161
+ "isProtected": false,
5162
+ "isAbstract": false
5163
+ },
5029
5164
  {
5030
5165
  "kind": "Property",
5031
5166
  "canonicalReference": "@genesislcap/foundation-auth!DefaultAuthFormEntryStore#onSelectedIdpChanged:member",
@@ -5270,6 +5405,36 @@
5270
5405
  "isProtected": false,
5271
5406
  "isAbstract": false
5272
5407
  },
5408
+ {
5409
+ "kind": "Property",
5410
+ "canonicalReference": "@genesislcap/foundation-auth!DefaultAuthFormEntryStore#passwordConfirm:member",
5411
+ "docComment": "/**\n * {@inheritDoc AuthFormEntryStore.passwordConfirm}\n */\n",
5412
+ "excerptTokens": [
5413
+ {
5414
+ "kind": "Content",
5415
+ "text": "passwordConfirm: "
5416
+ },
5417
+ {
5418
+ "kind": "Content",
5419
+ "text": "string"
5420
+ },
5421
+ {
5422
+ "kind": "Content",
5423
+ "text": ";"
5424
+ }
5425
+ ],
5426
+ "isReadonly": false,
5427
+ "isOptional": false,
5428
+ "releaseTag": "Public",
5429
+ "name": "passwordConfirm",
5430
+ "propertyTypeTokenRange": {
5431
+ "startIndex": 1,
5432
+ "endIndex": 2
5433
+ },
5434
+ "isStatic": false,
5435
+ "isProtected": false,
5436
+ "isAbstract": false
5437
+ },
5273
5438
  {
5274
5439
  "kind": "Property",
5275
5440
  "canonicalReference": "@genesislcap/foundation-auth!DefaultAuthFormEntryStore#passwordResetToken:member",
@@ -151,6 +151,14 @@ export declare interface AuthConfig extends PartialFASTElementDefinition {
151
151
  * ```
152
152
  */
153
153
  omitRoutes: Exclude<AuthRoutes, 'login' | 'not-found'>[];
154
+ /**
155
+ * Show the Change Password link on the login page.
156
+ *
157
+ * @remarks
158
+ * Independent of {@link (AuthConfig:interface).omitRoutes}: the `reset-password` route can remain
159
+ * registered while this link is hidden. Defaults to `true`.
160
+ */
161
+ showChangePasswordLink?: boolean;
154
162
  /**
155
163
  * Map of configuration for each of the primary form fields.
156
164
  *
@@ -326,6 +334,7 @@ export declare type AuthFormEntryEventMap = {
326
334
  'auth-email-changed': string;
327
335
  'auth-password-changed': string;
328
336
  'auth-password2-changed': string;
337
+ 'auth-password-confirm-changed': string;
329
338
  'auth-showPassword-changed': boolean;
330
339
  'auth-selectedIdp-changed': string;
331
340
  'auth-ssoToggled-changed': boolean;
@@ -346,6 +355,10 @@ export declare interface AuthFormEntryStore extends Store {
346
355
  * New, confirm etc.
347
356
  */
348
357
  readonly password2: string;
358
+ /**
359
+ * Confirmation of {@link (AuthFormEntryStore:interface).password2} (new password).
360
+ */
361
+ readonly passwordConfirm: string;
349
362
  readonly showPassword: boolean;
350
363
  readonly hasPasswordExpired: boolean;
351
364
  readonly passwordResetToken: string;
@@ -361,6 +374,7 @@ export declare interface AuthFormEntryStore extends Store {
361
374
  onEmailChanged(event: CustomEvent<string>): void;
362
375
  onPasswordChanged(event: CustomEvent<string>): void;
363
376
  onPassword2Changed(event: CustomEvent<string>): void;
377
+ onPasswordConfirmChanged(event: CustomEvent<string>): void;
364
378
  onShowPasswordChanged(event: CustomEvent<boolean>): void;
365
379
  onSelectedIdpChanged(event: CustomEvent<string>): void;
366
380
  onSSOToggleChanged(event: CustomEvent<boolean>): void;
@@ -914,6 +928,8 @@ export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEnt
914
928
  password: string;
915
929
  /** {@inheritDoc AuthFormEntryStore.password2} */
916
930
  password2: string;
931
+ /** {@inheritDoc AuthFormEntryStore.passwordConfirm} */
932
+ passwordConfirm: string;
917
933
  /** {@inheritDoc AuthFormEntryStore.showPassword} */
918
934
  showPassword: boolean;
919
935
  /** {@inheritDoc AuthFormEntryStore.hasPasswordExpired} */
@@ -955,6 +971,8 @@ export declare class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEnt
955
971
  onPasswordChanged: EventListener;
956
972
  /** {@inheritDoc AuthFormEntryStore.onPassword2Changed} */
957
973
  onPassword2Changed: EventListener;
974
+ /** {@inheritDoc AuthFormEntryStore.onPasswordConfirmChanged} */
975
+ onPasswordConfirmChanged: EventListener;
958
976
  /** {@inheritDoc AuthFormEntryStore.onShowPasswordChanged} */
959
977
  onShowPasswordChanged: EventListener;
960
978
  /** {@inheritDoc AuthFormEntryStore.onSelectedIdpChanged} */
@@ -1988,6 +2006,7 @@ declare type InternalEventMap = {
1988
2006
  'auth-fetch-idps': void;
1989
2007
  'auth-fetch-idps-success': IdentityProvider[];
1990
2008
  'auth-fetch-idps-error': Error;
2009
+ 'auth-password-mismatch': Error;
1991
2010
  };
1992
2011
 
1993
2012
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-auth",
3
3
  "description": "Genesis Foundation Auth",
4
- "version": "15.12.0",
4
+ "version": "15.13.1",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-auth.d.ts",
@@ -134,25 +134,25 @@
134
134
  }
135
135
  },
136
136
  "devDependencies": {
137
- "@genesislcap/foundation-testing": "15.12.0",
138
- "@genesislcap/genx": "15.12.0",
139
- "@genesislcap/rollup-builder": "15.12.0",
140
- "@genesislcap/ts-builder": "15.12.0",
141
- "@genesislcap/uvu-playwright-builder": "15.12.0",
142
- "@genesislcap/vite-builder": "15.12.0",
143
- "@genesislcap/webpack-builder": "15.12.0"
137
+ "@genesislcap/foundation-testing": "15.13.1",
138
+ "@genesislcap/genx": "15.13.1",
139
+ "@genesislcap/rollup-builder": "15.13.1",
140
+ "@genesislcap/ts-builder": "15.13.1",
141
+ "@genesislcap/uvu-playwright-builder": "15.13.1",
142
+ "@genesislcap/vite-builder": "15.13.1",
143
+ "@genesislcap/webpack-builder": "15.13.1"
144
144
  },
145
145
  "dependencies": {
146
- "@genesislcap/foundation-comms": "15.12.0",
147
- "@genesislcap/foundation-events": "15.12.0",
148
- "@genesislcap/foundation-i18n": "15.12.0",
149
- "@genesislcap/foundation-logger": "15.12.0",
150
- "@genesislcap/foundation-state-machine": "15.12.0",
151
- "@genesislcap/foundation-store": "15.12.0",
152
- "@genesislcap/foundation-ui": "15.12.0",
153
- "@genesislcap/foundation-user": "15.12.0",
154
- "@genesislcap/foundation-utils": "15.12.0",
155
- "@genesislcap/foundation-zero": "15.12.0",
146
+ "@genesislcap/foundation-comms": "15.13.1",
147
+ "@genesislcap/foundation-events": "15.13.1",
148
+ "@genesislcap/foundation-i18n": "15.13.1",
149
+ "@genesislcap/foundation-logger": "15.13.1",
150
+ "@genesislcap/foundation-state-machine": "15.13.1",
151
+ "@genesislcap/foundation-store": "15.13.1",
152
+ "@genesislcap/foundation-ui": "15.13.1",
153
+ "@genesislcap/foundation-user": "15.13.1",
154
+ "@genesislcap/foundation-utils": "15.13.1",
155
+ "@genesislcap/foundation-zero": "15.13.1",
156
156
  "@microsoft/fast-components": "2.30.6",
157
157
  "@microsoft/fast-element": "1.14.0",
158
158
  "@microsoft/fast-foundation": "2.50.0",
@@ -173,5 +173,5 @@
173
173
  "access": "public"
174
174
  },
175
175
  "customElements": "dist/custom-elements.json",
176
- "gitHead": "06f5ab51086c6616c6b96a7a1aebccddb3af7881"
176
+ "gitHead": "4ac0cfb22051b17da81586baf5166c9b605fae10"
177
177
  }