@genesislcap/foundation-auth 14.71.1-auth-mf.2 → 14.71.1-auth-mf.4
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.
- package/dist/dts/dto/EVENT_LOGIN_DETAILS_ACK.d.ts +7 -0
- package/dist/dts/dto/EVENT_LOGIN_DETAILS_ACK.d.ts.map +1 -0
- package/dist/dts/dto/index.d.ts +1 -0
- package/dist/dts/dto/index.d.ts.map +1 -1
- package/dist/dts/entity/index.d.ts +1 -0
- package/dist/dts/entity/index.d.ts.map +1 -1
- package/dist/dts/entity/loginDetailsAck.d.ts +7 -0
- package/dist/dts/entity/loginDetailsAck.d.ts.map +1 -0
- package/dist/dts/machine/machine.d.ts +12 -1
- package/dist/dts/machine/machine.d.ts.map +1 -1
- package/dist/dts/machine/types.d.ts +3 -5
- package/dist/dts/machine/types.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +14 -4
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/mapper/loginMapper.d.ts +16 -4
- package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +6 -15
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/config.d.ts.map +1 -1
- package/dist/dts/routes/login/login.d.ts +5 -5
- package/dist/dts/routes/login/login.d.ts.map +1 -1
- package/dist/dts/routes/login/login.template.d.ts.map +1 -1
- package/dist/dts/store/auth.d.ts +2 -1
- package/dist/dts/store/auth.d.ts.map +1 -1
- package/dist/dts/store/authFormEntry.d.ts +6 -0
- package/dist/dts/store/authFormEntry.d.ts.map +1 -1
- package/dist/esm/dto/EVENT_LOGIN_DETAILS_ACK.js +1 -0
- package/dist/esm/entity/index.js +1 -0
- package/dist/esm/entity/loginDetailsAck.js +1 -0
- package/dist/esm/machine/machine.js +135 -169
- package/dist/esm/main/main.js +42 -6
- package/dist/esm/mapper/loginMapper.js +17 -1
- package/dist/esm/routes/base.js +3 -30
- package/dist/esm/routes/config.js +0 -2
- package/dist/esm/routes/login/login.js +46 -63
- package/dist/esm/routes/login/login.template.js +4 -5
- package/dist/esm/store/auth.js +1 -0
- package/dist/esm/store/authFormEntry.js +39 -27
- package/dist/foundation-auth.api.json +648 -45
- package/dist/foundation-auth.d.ts +67 -26
- package/docs/api/foundation-auth.auth.loginwithcookies.md +15 -0
- package/docs/api/foundation-auth.auth.loginwithcredentials.md +22 -0
- package/docs/api/{foundation-auth.auth.store.md → foundation-auth.auth.logout.md} +7 -3
- package/docs/api/foundation-auth.auth.md +6 -4
- package/docs/api/foundation-auth.autheventmap.md +0 -1
- package/docs/api/foundation-auth.authformentryeventmap.md +1 -0
- package/docs/api/foundation-auth.authformentrystore.md +2 -0
- package/docs/api/foundation-auth.authformentrystore.onautofillform.md +22 -0
- package/docs/api/foundation-auth.authformentrystore.orgusername.md +11 -0
- package/docs/api/foundation-auth.authmachinecontext.authdto.md +1 -1
- package/docs/api/foundation-auth.authmachinecontext.authentity.md +1 -1
- package/docs/api/foundation-auth.authmachinecontext.credentials.md +1 -1
- package/docs/api/foundation-auth.authmachinecontext.md +2 -2
- package/docs/api/foundation-auth.authmachineevent.md +0 -2
- package/docs/api/foundation-auth.authstore.md +1 -0
- package/docs/api/foundation-auth.authstore.onlogindetails.md +22 -0
- package/docs/api/foundation-auth.defaultauthformentrystore._constructor_.md +13 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.md +8 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onautofillform.md +11 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.orgusername.md +11 -0
- package/docs/api/foundation-auth.defaultauthmachine.addloginevents.md +23 -0
- package/docs/api/foundation-auth.defaultauthmachine.createfetchmachineevent.md +23 -0
- package/docs/api/foundation-auth.defaultauthmachine.md +2 -0
- package/docs/api/foundation-auth.defaultauthstore.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onlogindetails.md +11 -0
- package/docs/api/foundation-auth.event_login_details_ack.md +14 -0
- package/docs/api/foundation-auth.islogindetailsackdto.md +24 -0
- package/docs/api/foundation-auth.islogindetailsackentity.md +24 -0
- package/docs/api/foundation-auth.logindetailsack.md +14 -0
- package/docs/api/foundation-auth.logindto.md +2 -2
- package/docs/api/foundation-auth.loginentity.md +2 -2
- package/docs/api/foundation-auth.md +4 -0
- package/docs/api-report.md +59 -13
- package/package.json +11 -11
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md)
|
|
4
|
+
|
|
5
|
+
## EVENT\_LOGIN\_DETAILS\_ACK interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface EVENT_LOGIN_DETAILS_ACK extends EVENT_LOGIN_AUTH_ACK
|
|
12
|
+
```
|
|
13
|
+
**Extends:** [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md)
|
|
14
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [isLoginDetailsAckDTO](./foundation-auth.islogindetailsackdto.md)
|
|
4
|
+
|
|
5
|
+
## isLoginDetailsAckDTO() function
|
|
6
|
+
|
|
7
|
+
isLoginDetailsAckDTO.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function isLoginDetailsAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_DETAILS_ACK;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| dto | [LoginDTO](./foundation-auth.logindto.md) | Potential DTO. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
dto is [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md)
|
|
24
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [isLoginDetailsAckEntity](./foundation-auth.islogindetailsackentity.md)
|
|
4
|
+
|
|
5
|
+
## isLoginDetailsAckEntity() function
|
|
6
|
+
|
|
7
|
+
isLoginDetailsAckEntity.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export declare function isLoginDetailsAckEntity(entity: LoginEntity): entity is LoginDetailsAck;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Parameters
|
|
16
|
+
|
|
17
|
+
| Parameter | Type | Description |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| entity | [LoginEntity](./foundation-auth.loginentity.md) | Potential entity. |
|
|
20
|
+
|
|
21
|
+
**Returns:**
|
|
22
|
+
|
|
23
|
+
entity is [LoginDetailsAck](./foundation-auth.logindetailsack.md)
|
|
24
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [LoginDetailsAck](./foundation-auth.logindetailsack.md)
|
|
4
|
+
|
|
5
|
+
## LoginDetailsAck interface
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
**Signature:**
|
|
9
|
+
|
|
10
|
+
```typescript
|
|
11
|
+
export interface LoginDetailsAck extends LoginAck
|
|
12
|
+
```
|
|
13
|
+
**Extends:** [LoginAck](./foundation-auth.loginack.md)
|
|
14
|
+
|
|
@@ -9,7 +9,7 @@ LoginDTO type.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_AUTH_NACK;
|
|
12
|
+
export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_DETAILS_ACK | EVENT_LOGIN_AUTH_NACK;
|
|
13
13
|
```
|
|
14
|
-
**References:** [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md)<!-- -->, [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md)
|
|
14
|
+
**References:** [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md)<!-- -->, [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md)<!-- -->, [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md)
|
|
15
15
|
|
|
@@ -9,7 +9,7 @@ LoginEntity type.
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
export type LoginEntity = LoginAck | LoginNack;
|
|
12
|
+
export type LoginEntity = LoginAck | LoginDetailsAck | LoginNack;
|
|
13
13
|
```
|
|
14
|
-
**References:** [LoginAck](./foundation-auth.loginack.md)<!-- -->, [LoginNack](./foundation-auth.loginnack.md)
|
|
14
|
+
**References:** [LoginAck](./foundation-auth.loginack.md)<!-- -->, [LoginDetailsAck](./foundation-auth.logindetailsack.md)<!-- -->, [LoginNack](./foundation-auth.loginnack.md)
|
|
15
15
|
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
| [configure(container, config)](./foundation-auth.configure.md) | Configure the auth micro frontend settings. |
|
|
26
26
|
| [isLoginAckDTO(dto)](./foundation-auth.isloginackdto.md) | isLoginAckDTO. |
|
|
27
27
|
| [isLoginAckEntity(entity)](./foundation-auth.isloginackentity.md) | isLoginAckEntity. |
|
|
28
|
+
| [isLoginDetailsAckDTO(dto)](./foundation-auth.islogindetailsackdto.md) | isLoginDetailsAckDTO. |
|
|
29
|
+
| [isLoginDetailsAckEntity(entity)](./foundation-auth.islogindetailsackentity.md) | isLoginDetailsAckEntity. |
|
|
28
30
|
| [isLoginNackDTO(dto)](./foundation-auth.isloginnackdto.md) | isLoginNackDTO. |
|
|
29
31
|
| [isLoginNackEntity(entity)](./foundation-auth.isloginnackentity.md) | isLoginNackEntity. |
|
|
30
32
|
| [isLogoutAckDTO(dto)](./foundation-auth.islogoutackdto.md) | isLogoutAckDTO. |
|
|
@@ -45,10 +47,12 @@
|
|
|
45
47
|
| [Details](./foundation-auth.details.md) | |
|
|
46
48
|
| [EVENT\_LOGIN\_AUTH\_ACK](./foundation-auth.event_login_auth_ack.md) | |
|
|
47
49
|
| [EVENT\_LOGIN\_AUTH\_NACK](./foundation-auth.event_login_auth_nack.md) | |
|
|
50
|
+
| [EVENT\_LOGIN\_DETAILS\_ACK](./foundation-auth.event_login_details_ack.md) | |
|
|
48
51
|
| [EVENT\_LOGOUT\_NACK](./foundation-auth.event_logout_nack.md) | |
|
|
49
52
|
| [IDP](./foundation-auth.idp.md) | |
|
|
50
53
|
| [IDPResponse](./foundation-auth.idpresponse.md) | |
|
|
51
54
|
| [LoginAck](./foundation-auth.loginack.md) | |
|
|
55
|
+
| [LoginDetailsAck](./foundation-auth.logindetailsack.md) | |
|
|
52
56
|
| [LoginMapper](./foundation-auth.loginmapper.md) | LoginMapper interface. |
|
|
53
57
|
| [LoginNack](./foundation-auth.loginnack.md) | |
|
|
54
58
|
| [LOGOUT\_ACK](./foundation-auth.logout_ack.md) | |
|
package/docs/api-report.md
CHANGED
|
@@ -23,6 +23,7 @@ import { EmitReturn } from '@genesislcap/foundation-events';
|
|
|
23
23
|
import type { ErrorEvent as ErrorEvent_2 } from 'xstate';
|
|
24
24
|
import { FASTElement } from '@microsoft/fast-element';
|
|
25
25
|
import { FetchMachine } from '@genesislcap/foundation-state-machine';
|
|
26
|
+
import { FetchMachineEvent } from '@genesislcap/foundation-state-machine';
|
|
26
27
|
import { FoundationAnalytics } from '@genesislcap/foundation-comms';
|
|
27
28
|
import { GenesisServerError } from '@genesislcap/foundation-state-machine';
|
|
28
29
|
import { InterfaceSymbol } from '@microsoft/fast-foundation';
|
|
@@ -34,6 +35,7 @@ import { Machine } from '@genesislcap/foundation-state-machine';
|
|
|
34
35
|
import type { MachineContext } from '@genesislcap/foundation-state-machine';
|
|
35
36
|
import { Message as Message_2 } from '@genesislcap/foundation-comms';
|
|
36
37
|
import { MessageBuilder } from '@genesislcap/foundation-comms';
|
|
38
|
+
import { NavigationPhase } from '@microsoft/fast-router';
|
|
37
39
|
import { PartialFASTElementDefinition } from '@microsoft/fast-element';
|
|
38
40
|
import { RouterConfiguration } from '@microsoft/fast-router';
|
|
39
41
|
import { Session } from '@genesislcap/foundation-comms';
|
|
@@ -49,10 +51,12 @@ import { ViewTemplate } from '@microsoft/fast-element';
|
|
|
49
51
|
//
|
|
50
52
|
// @public (undocumented)
|
|
51
53
|
export class Auth extends Auth_base {
|
|
54
|
+
// @internal
|
|
55
|
+
actionQueryParams(): void;
|
|
52
56
|
// @internal (undocumented)
|
|
53
57
|
protected addEventListeners(): void;
|
|
54
|
-
// @internal
|
|
55
|
-
|
|
58
|
+
// @internal (undocumented)
|
|
59
|
+
cm: CredentialManager;
|
|
56
60
|
// @internal
|
|
57
61
|
config: MainRouterConfig;
|
|
58
62
|
// @internal (undocumented)
|
|
@@ -61,6 +65,12 @@ export class Auth extends Auth_base {
|
|
|
61
65
|
container: Container;
|
|
62
66
|
// @internal (undocumented)
|
|
63
67
|
disconnectedCallback(): void;
|
|
68
|
+
// (undocumented)
|
|
69
|
+
loginWithCookies(): void;
|
|
70
|
+
// (undocumented)
|
|
71
|
+
loginWithCredentials(credentials: AuthInfo): void;
|
|
72
|
+
// (undocumented)
|
|
73
|
+
logout(): void;
|
|
64
74
|
// @internal
|
|
65
75
|
provider: HTMLElement;
|
|
66
76
|
// @internal
|
|
@@ -75,7 +85,7 @@ export class Auth extends Auth_base {
|
|
|
75
85
|
protected removeEventListeners(): void;
|
|
76
86
|
// @internal
|
|
77
87
|
session: Session;
|
|
78
|
-
// (undocumented)
|
|
88
|
+
// @internal (undocumented)
|
|
79
89
|
store: AuthStore;
|
|
80
90
|
}
|
|
81
91
|
|
|
@@ -121,13 +131,13 @@ export class AuthError extends GenesisServerError {
|
|
|
121
131
|
// @public (undocumented)
|
|
122
132
|
export type AuthEventMap = StoreRootEventDetailMap & AuthMachineEventMap & {
|
|
123
133
|
'auth-login': AuthInfo;
|
|
124
|
-
'auth-login-refresh': void;
|
|
125
134
|
'auth-login-details': void;
|
|
126
135
|
'auth-logout': void;
|
|
127
136
|
};
|
|
128
137
|
|
|
129
138
|
// @public (undocumented)
|
|
130
139
|
export type AuthFormEntryEventMap = {
|
|
140
|
+
'auth-autofill-form': void;
|
|
131
141
|
'auth-organisation-changed': string;
|
|
132
142
|
'auth-username-changed': string;
|
|
133
143
|
'auth-email-changed': string;
|
|
@@ -155,6 +165,8 @@ export interface AuthFormEntryStore extends Store {
|
|
|
155
165
|
// (undocumented)
|
|
156
166
|
readonly mfaCode: string;
|
|
157
167
|
// (undocumented)
|
|
168
|
+
onAutofillForm(event: CustomEvent<void>): void;
|
|
169
|
+
// (undocumented)
|
|
158
170
|
onEmailChanged(event: CustomEvent<string>): void;
|
|
159
171
|
// (undocumented)
|
|
160
172
|
onOrganisationChanged(event: CustomEvent<string>): void;
|
|
@@ -169,6 +181,8 @@ export interface AuthFormEntryStore extends Store {
|
|
|
169
181
|
// (undocumented)
|
|
170
182
|
readonly organisation: string;
|
|
171
183
|
// (undocumented)
|
|
184
|
+
readonly orgUsername: string;
|
|
185
|
+
// (undocumented)
|
|
172
186
|
readonly password: string;
|
|
173
187
|
// (undocumented)
|
|
174
188
|
readonly password2: string;
|
|
@@ -219,8 +233,6 @@ export type AuthMachineEvent = {
|
|
|
219
233
|
params: {
|
|
220
234
|
credentials?: AuthInfo;
|
|
221
235
|
};
|
|
222
|
-
} | {
|
|
223
|
-
type: 'refresh';
|
|
224
236
|
} | {
|
|
225
237
|
type: 'logout';
|
|
226
238
|
} | {
|
|
@@ -248,6 +260,8 @@ export interface AuthStore extends StoreRoot {
|
|
|
248
260
|
// (undocumented)
|
|
249
261
|
onLogin(event: CustomEvent<AuthInfo>): void;
|
|
250
262
|
// (undocumented)
|
|
263
|
+
onLoginDetails(event: CustomEvent<void>): void;
|
|
264
|
+
// (undocumented)
|
|
251
265
|
onLogout(event: CustomEvent<void>): void;
|
|
252
266
|
// (undocumented)
|
|
253
267
|
onMachineEvent(event: CustomEvent<AuthEventMap['auth-machine-event']>): void;
|
|
@@ -290,6 +304,8 @@ export class BaseRoute extends ConfigHostElement {
|
|
|
290
304
|
// (undocumented)
|
|
291
305
|
ensureConnection(): Promise<boolean>;
|
|
292
306
|
// (undocumented)
|
|
307
|
+
enter(phase: NavigationPhase<Settings>): void;
|
|
308
|
+
// (undocumented)
|
|
293
309
|
getSubRoutePath(routeName: Routes | string): string;
|
|
294
310
|
// (undocumented)
|
|
295
311
|
hasErrors: boolean;
|
|
@@ -302,6 +318,8 @@ export class BaseRoute extends ConfigHostElement {
|
|
|
302
318
|
// (undocumented)
|
|
303
319
|
messageBuilder: MessageBuilder;
|
|
304
320
|
// (undocumented)
|
|
321
|
+
protected navigationPhase: NavigationPhase<Settings>;
|
|
322
|
+
// (undocumented)
|
|
305
323
|
onBack: () => void;
|
|
306
324
|
// (undocumented)
|
|
307
325
|
onNavigate: (path: string) => void;
|
|
@@ -355,11 +373,6 @@ export class ConfigHostElement extends ConfigHostElement_base implements ConfigH
|
|
|
355
373
|
container: Container;
|
|
356
374
|
}
|
|
357
375
|
|
|
358
|
-
// Warning: (ae-internal-missing-underscore) The name "configurableTextField" should be prefixed with an underscore because the declaration is marked as @internal
|
|
359
|
-
//
|
|
360
|
-
// @internal (undocumented)
|
|
361
|
-
export const configurableTextField: <T extends ConfigHost>(name: keyof FieldConfigMap | [name: keyof FieldConfigMap, valueKey: string], type: string, autofocus?: boolean, autocomplete?: string, className?: string, labelOverride?: string, testIdOverride?: string, required?: boolean) => ViewTemplate<T, any>;
|
|
362
|
-
|
|
363
376
|
// @public
|
|
364
377
|
export function configure(container: Container, config: Partial<AuthConfig>): void;
|
|
365
378
|
|
|
@@ -373,6 +386,7 @@ export const defaultAuthConfig: AuthConfig;
|
|
|
373
386
|
//
|
|
374
387
|
// @public
|
|
375
388
|
export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore, AuthFormEntryEventMap, InternalEventMap> implements AuthFormEntryStore {
|
|
389
|
+
constructor();
|
|
376
390
|
// (undocumented)
|
|
377
391
|
protected config: AuthConfig;
|
|
378
392
|
// (undocumented)
|
|
@@ -392,6 +406,8 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
|
|
|
392
406
|
// (undocumented)
|
|
393
407
|
mfaCode: string;
|
|
394
408
|
// (undocumented)
|
|
409
|
+
onAutofillForm: EventListener;
|
|
410
|
+
// (undocumented)
|
|
395
411
|
onEmailChanged: EventListener;
|
|
396
412
|
// (undocumented)
|
|
397
413
|
onOrganisationChanged: EventListener;
|
|
@@ -406,6 +422,8 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
|
|
|
406
422
|
// (undocumented)
|
|
407
423
|
organisation: string;
|
|
408
424
|
// (undocumented)
|
|
425
|
+
get orgUsername(): string;
|
|
426
|
+
// (undocumented)
|
|
409
427
|
password: string;
|
|
410
428
|
// (undocumented)
|
|
411
429
|
password2: string;
|
|
@@ -426,6 +444,18 @@ export class DefaultAuthFormEntryStore extends AbstractStore<AuthFormEntryStore,
|
|
|
426
444
|
// @public
|
|
427
445
|
export class DefaultAuthMachine extends AbstractMachine<AuthMachineContext, AuthMachineEvent> implements AuthMachine {
|
|
428
446
|
constructor(user: User, connect: Connect, fetchMachine: FetchMachine, messageBuilder: MessageBuilder, credentialManager: CredentialManager, uuid: UUID, loginMapper: LoginMapper, logoutMapper: LogoutMapper, config: AuthConfig);
|
|
447
|
+
// (undocumented)
|
|
448
|
+
addLoginEvents(): {
|
|
449
|
+
login: {
|
|
450
|
+
actions: string[];
|
|
451
|
+
target: string;
|
|
452
|
+
};
|
|
453
|
+
"login-details": {
|
|
454
|
+
target: string;
|
|
455
|
+
};
|
|
456
|
+
};
|
|
457
|
+
// (undocumented)
|
|
458
|
+
createFetchMachineEvent(url: string, msg?: Message_2): FetchMachineEvent;
|
|
429
459
|
getFromContainer(): this;
|
|
430
460
|
// (undocumented)
|
|
431
461
|
start(options?: InterpreterOptions<typeof DefaultAuthMachine.machine>): void;
|
|
@@ -450,6 +480,8 @@ export class DefaultAuthStore extends AbstractStoreRoot<AuthStore, AuthEventMap,
|
|
|
450
480
|
// (undocumented)
|
|
451
481
|
onLogin: EventListener;
|
|
452
482
|
// (undocumented)
|
|
483
|
+
onLoginDetails: EventListener;
|
|
484
|
+
// (undocumented)
|
|
453
485
|
onLogout: EventListener;
|
|
454
486
|
// (undocumented)
|
|
455
487
|
onMachineEvent: EventListener;
|
|
@@ -624,6 +656,10 @@ export interface EVENT_LOGIN_AUTH_ACK extends ACK {
|
|
|
624
656
|
export interface EVENT_LOGIN_AUTH_NACK extends NACK {
|
|
625
657
|
}
|
|
626
658
|
|
|
659
|
+
// @public (undocumented)
|
|
660
|
+
export interface EVENT_LOGIN_DETAILS_ACK extends EVENT_LOGIN_AUTH_ACK {
|
|
661
|
+
}
|
|
662
|
+
|
|
627
663
|
// @public (undocumented)
|
|
628
664
|
export interface EVENT_LOGOUT_NACK extends NACK {
|
|
629
665
|
}
|
|
@@ -713,6 +749,12 @@ export function isLoginAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_ACK;
|
|
|
713
749
|
// @public
|
|
714
750
|
export function isLoginAckEntity(entity: LoginEntity): entity is LoginAck;
|
|
715
751
|
|
|
752
|
+
// @public
|
|
753
|
+
export function isLoginDetailsAckDTO(dto: LoginDTO): dto is EVENT_LOGIN_DETAILS_ACK;
|
|
754
|
+
|
|
755
|
+
// @public
|
|
756
|
+
export function isLoginDetailsAckEntity(entity: LoginEntity): entity is LoginDetailsAck;
|
|
757
|
+
|
|
716
758
|
// @public
|
|
717
759
|
export function isLoginNackDTO(dto: LoginDTO): dto is EVENT_LOGIN_AUTH_NACK;
|
|
718
760
|
|
|
@@ -776,11 +818,15 @@ export interface LoginAck extends Ack {
|
|
|
776
818
|
readonly zeroMqProxyOutboundPort: number;
|
|
777
819
|
}
|
|
778
820
|
|
|
821
|
+
// @public (undocumented)
|
|
822
|
+
export interface LoginDetailsAck extends LoginAck {
|
|
823
|
+
}
|
|
824
|
+
|
|
779
825
|
// @public
|
|
780
|
-
export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_AUTH_NACK;
|
|
826
|
+
export type LoginDTO = EVENT_LOGIN_AUTH_ACK | EVENT_LOGIN_DETAILS_ACK | EVENT_LOGIN_AUTH_NACK;
|
|
781
827
|
|
|
782
828
|
// @public
|
|
783
|
-
export type LoginEntity = LoginAck | LoginNack;
|
|
829
|
+
export type LoginEntity = LoginAck | LoginDetailsAck | LoginNack;
|
|
784
830
|
|
|
785
831
|
// Warning: (ae-internal-mixed-release-tag) Mixed release tags are not allowed for "LoginMapper" because one of its declarations is marked as @internal
|
|
786
832
|
//
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-auth",
|
|
3
3
|
"description": "Genesis Foundation Auth",
|
|
4
|
-
"version": "14.71.1-auth-mf.
|
|
4
|
+
"version": "14.71.1-auth-mf.4",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
@@ -51,18 +51,18 @@
|
|
|
51
51
|
"test:debug": "genx test --debug"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "14.71.1-auth-mf.
|
|
55
|
-
"@genesislcap/genx": "14.71.1-auth-mf.
|
|
54
|
+
"@genesislcap/foundation-testing": "14.71.1-auth-mf.4",
|
|
55
|
+
"@genesislcap/genx": "14.71.1-auth-mf.4",
|
|
56
56
|
"rimraf": "^3.0.2"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@genesislcap/foundation-comms": "14.71.1-auth-mf.
|
|
60
|
-
"@genesislcap/foundation-events": "14.71.1-auth-mf.
|
|
61
|
-
"@genesislcap/foundation-state-machine": "14.71.1-auth-mf.
|
|
62
|
-
"@genesislcap/foundation-store": "14.71.1-auth-mf.
|
|
63
|
-
"@genesislcap/foundation-ui": "14.71.1-auth-mf.
|
|
64
|
-
"@genesislcap/foundation-utils": "14.71.1-auth-mf.
|
|
65
|
-
"@genesislcap/foundation-zero": "14.71.1-auth-mf.
|
|
59
|
+
"@genesislcap/foundation-comms": "14.71.1-auth-mf.4",
|
|
60
|
+
"@genesislcap/foundation-events": "14.71.1-auth-mf.4",
|
|
61
|
+
"@genesislcap/foundation-state-machine": "14.71.1-auth-mf.4",
|
|
62
|
+
"@genesislcap/foundation-store": "14.71.1-auth-mf.4",
|
|
63
|
+
"@genesislcap/foundation-ui": "14.71.1-auth-mf.4",
|
|
64
|
+
"@genesislcap/foundation-utils": "14.71.1-auth-mf.4",
|
|
65
|
+
"@genesislcap/foundation-zero": "14.71.1-auth-mf.4",
|
|
66
66
|
"@microsoft/fast-components": "^2.21.3",
|
|
67
67
|
"@microsoft/fast-element": "^1.7.0",
|
|
68
68
|
"@microsoft/fast-foundation": "^2.33.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
84
|
"customElements": "dist/custom-elements.json",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "349e46c5dc26cf11b292dc5cc9c24e88908f3333"
|
|
86
86
|
}
|