@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.
- package/README.md +62 -12
- package/dist/dts/config/config.d.ts +0 -9
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/dto/IDP.d.ts +9 -0
- package/dist/dts/dto/IDP.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/idp.d.ts +9 -0
- package/dist/dts/entity/idp.d.ts.map +1 -0
- package/dist/dts/entity/index.d.ts +1 -0
- package/dist/dts/entity/index.d.ts.map +1 -1
- package/dist/dts/entity/loginNack.d.ts +2 -0
- package/dist/dts/entity/loginNack.d.ts.map +1 -1
- package/dist/dts/entity/nack.d.ts +4 -0
- package/dist/dts/entity/nack.d.ts.map +1 -1
- package/dist/dts/env.d.ts +10 -0
- package/dist/dts/env.d.ts.map +1 -1
- package/dist/dts/machine/actions.d.ts +15 -0
- package/dist/dts/machine/actions.d.ts.map +1 -0
- package/dist/dts/machine/errors.d.ts +26 -0
- package/dist/dts/machine/errors.d.ts.map +1 -0
- package/dist/dts/machine/guards.d.ts +9 -0
- package/dist/dts/machine/guards.d.ts.map +1 -0
- package/dist/dts/machine/index.d.ts +2 -0
- package/dist/dts/machine/index.d.ts.map +1 -1
- package/dist/dts/machine/machine.d.ts +1 -1
- package/dist/dts/machine/machine.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +35 -3
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/dts/mapper/loginMapper.d.ts.map +1 -1
- package/dist/dts/mapper/passwordManagementMapper.d.ts +1 -1
- package/dist/dts/mapper/passwordManagementMapper.d.ts.map +1 -1
- package/dist/dts/mapper/types.d.ts +2 -2
- package/dist/dts/mapper/utils.d.ts +20 -10
- package/dist/dts/mapper/utils.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +4 -11
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts +0 -1
- package/dist/dts/routes/forgot-password/forgot-password.d.ts.map +1 -1
- package/dist/dts/routes/index.d.ts +0 -1
- package/dist/dts/routes/index.d.ts.map +1 -1
- package/dist/dts/routes/login/login.d.ts +1 -1
- 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/routes/logout/logout.template.d.ts.map +1 -1
- package/dist/dts/routes/request-account/request-account.template.d.ts.map +1 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts +0 -1
- package/dist/dts/routes/reset-password/reset-password.d.ts.map +1 -1
- package/dist/dts/routes/verify/verify.template.d.ts.map +1 -1
- package/dist/dts/services/idp.d.ts +41 -0
- package/dist/dts/services/idp.d.ts.map +1 -0
- package/dist/dts/services/index.d.ts +2 -0
- package/dist/dts/services/index.d.ts.map +1 -0
- package/dist/dts/store/auth.d.ts +18 -5
- package/dist/dts/store/auth.d.ts.map +1 -1
- package/dist/dts/store/authFormEntry.d.ts +57 -21
- package/dist/dts/store/authFormEntry.d.ts.map +1 -1
- package/dist/dts/tags/tags.d.ts +0 -7
- package/dist/dts/tags/tags.d.ts.map +1 -1
- package/dist/dts/user/user.d.ts +2 -2
- package/dist/dts/user/user.d.ts.map +1 -1
- package/dist/dts/utils/index.d.ts +0 -1
- package/dist/dts/utils/index.d.ts.map +1 -1
- package/dist/dts/utils/logger.d.ts +1 -1
- package/dist/dts/utils/logger.d.ts.map +1 -1
- package/dist/esm/config/config.js +1 -1
- package/dist/esm/dto/IDP.js +1 -0
- package/dist/esm/entity/idp.js +1 -0
- package/dist/esm/entity/index.js +1 -0
- package/dist/esm/env.js +29 -1
- package/dist/esm/machine/actions.js +24 -0
- package/dist/esm/machine/errors.js +40 -0
- package/dist/esm/machine/guards.js +11 -0
- package/dist/esm/machine/index.js +2 -0
- package/dist/esm/machine/machine.js +57 -66
- package/dist/esm/main/main.js +46 -2
- package/dist/esm/main/main.styles.js +3 -1
- package/dist/esm/main/main.template.js +2 -1
- package/dist/esm/mapper/loginMapper.js +2 -2
- package/dist/esm/mapper/passwordManagementMapper.js +1 -1
- package/dist/esm/mapper/utils.js +69 -13
- package/dist/esm/routes/base.js +9 -13
- package/dist/esm/routes/config.js +1 -1
- package/dist/esm/routes/forgot-password/forgot-password.js +0 -4
- package/dist/esm/routes/forgot-password/forgot-password.template.js +2 -2
- package/dist/esm/routes/index.js +0 -1
- package/dist/esm/routes/login/login.js +13 -12
- package/dist/esm/routes/login/login.template.js +8 -7
- package/dist/esm/routes/logout/logout.template.js +1 -0
- package/dist/esm/routes/request-account/request-account.template.js +3 -2
- package/dist/esm/routes/reset-password/reset-password.js +0 -4
- package/dist/esm/routes/reset-password/reset-password.template.js +1 -1
- package/dist/esm/routes/verify/verify.template.js +3 -2
- package/dist/esm/services/idp.js +71 -0
- package/dist/esm/services/index.js +1 -0
- package/dist/esm/store/auth.js +25 -3
- package/dist/esm/store/authFormEntry.js +62 -49
- package/dist/esm/tags/tags.js +0 -22
- package/dist/esm/user/user.js +6 -2
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/logger.js +1 -1
- package/dist/foundation-auth.api.json +749 -784
- package/dist/foundation-auth.d.ts +202 -96
- package/docs/api/foundation-auth.authformentryeventmap.md +1 -1
- package/docs/api/foundation-auth.authformentrystore.idps.md +1 -1
- package/docs/api/foundation-auth.authformentrystore.md +4 -6
- package/docs/api/foundation-auth.authformentrystore.onselectedidpchanged.md +3 -3
- package/docs/api/foundation-auth.authformentrystore.password2.md +5 -0
- package/docs/api/foundation-auth.authformentrystore.selectedidp.md +3 -3
- package/docs/api/{foundation-auth.authformentrystore.host.md → foundation-auth.authformentrystore.ssologinurl.md} +3 -3
- package/docs/api/foundation-auth.authstore.errormessages.md +11 -0
- package/docs/api/foundation-auth.authstore.md +2 -0
- package/docs/api/foundation-auth.authstore.metamessages.md +11 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.autofilling.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.email.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.haspasswordexpired.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.idps.md +2 -1
- package/docs/api/{foundation-auth.defaultauthformentrystore.haserrors.md → foundation-auth.defaultauthformentrystore.idpservice.md} +3 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.md +6 -16
- package/docs/api/foundation-auth.defaultauthformentrystore.mfacode.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onautofillform.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onemailchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onorganisationchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onpassword2changed.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onpasswordchanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onselectedidpchanged.md +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.onshowpasswordschanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onssotogglechanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.onusernamechanged.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.organisation.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.orgusername.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.password.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.password2.md +5 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.passwordresettoken.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.selectedidp.md +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.showpasswords.md +1 -0
- package/docs/api/{foundation-auth.defaultauthformentrystore.message.md → foundation-auth.defaultauthformentrystore.ssologinurl.md} +4 -3
- package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggled.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.termsagreed.md +1 -0
- package/docs/api/foundation-auth.defaultauthformentrystore.username.md +1 -0
- package/docs/api/foundation-auth.defaultauthmachine._constructor_.md +1 -1
- package/docs/api/{foundation-auth.defaultauthmachine.ondonedto.md → foundation-auth.defaultauthmachine.dtotransition.md} +3 -3
- package/docs/api/foundation-auth.defaultauthmachine.md +1 -1
- package/docs/api/foundation-auth.defaultauthstore.errormessages.md +12 -0
- package/docs/api/foundation-auth.defaultauthstore.ispending.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.md +3 -1
- package/docs/api/foundation-auth.defaultauthstore.metamessages.md +12 -0
- package/docs/api/foundation-auth.defaultauthstore.onchangepassword.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onforgotpassword.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onlogin.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onlogout.md +1 -0
- package/docs/api/foundation-auth.defaultauthstore.onresetpassword.md +1 -0
- package/docs/api/{foundation-auth.idpresponse.id.md → foundation-auth.fromidpdto.md} +5 -3
- package/docs/api/foundation-auth.idp.description.md +11 -0
- package/docs/api/foundation-auth.idp.id.md +3 -3
- package/docs/api/foundation-auth.idp.md +3 -2
- package/docs/api/foundation-auth.idp.type.md +3 -3
- package/docs/api/foundation-auth.is200nack.md +13 -0
- package/docs/api/foundation-auth.isnackdto.md +1 -1
- package/docs/api/foundation-auth.isnackentity.md +24 -0
- package/docs/api/foundation-auth.logger.md +1 -1
- package/docs/api/foundation-auth.loginnack.hasincorrectcredentials.md +11 -0
- package/docs/api/foundation-auth.loginnack.maxtriesreached.md +11 -0
- package/docs/api/foundation-auth.loginnack.md +2 -0
- package/docs/api/foundation-auth.md +10 -11
- package/docs/api/foundation-auth.seterror.md +25 -0
- package/docs/api/{foundation-auth.idpresponse.type.md → foundation-auth.sso_list_url.md} +4 -3
- package/docs/api/foundation-auth.sso_login_url.md +12 -0
- package/docs/api/foundation-auth.ssoconfig.md +0 -1
- package/docs/api/foundation-auth.user.addauthenticationchangelistener.md +3 -3
- package/docs/api-report.md +170 -80
- package/package.json +12 -13
- package/dist/dts/utils/sso.d.ts +0 -27
- package/dist/dts/utils/sso.d.ts.map +0 -1
- package/dist/esm/utils/sso.js +0 -50
- package/docs/api/foundation-auth.authformentrystore.haserrors.md +0 -11
- package/docs/api/foundation-auth.authformentrystore.message.md +0 -11
- package/docs/api/foundation-auth.authrouting.getroutepath.md +0 -13
- package/docs/api/foundation-auth.authrouting.md +0 -37
- package/docs/api/foundation-auth.authrouting.navigateto.md +0 -16
- package/docs/api/foundation-auth.defaultauthformentrystore.autofill.md +0 -15
- package/docs/api/foundation-auth.defaultauthformentrystore.fetchmachine.md +0 -11
- package/docs/api/foundation-auth.defaultauthformentrystore.host.md +0 -11
- package/docs/api/foundation-auth.defaultauthformentrystore.resetidpstate.md +0 -15
- package/docs/api/foundation-auth.defaultauthformentrystore.ssotoggledchanged.md +0 -23
- package/docs/api/foundation-auth.defaultauthrouting.getroutepath.md +0 -24
- package/docs/api/foundation-auth.defaultauthrouting.md +0 -22
- package/docs/api/foundation-auth.defaultauthrouting.navigateto.md +0 -26
- package/docs/api/foundation-auth.fetchidps.md +0 -13
- package/docs/api/foundation-auth.fromdtonackerrorwarningarray.md +0 -12
- package/docs/api/foundation-auth.getauthrouting.md +0 -32
- package/docs/api/foundation-auth.getssologinurl.md +0 -13
- package/docs/api/foundation-auth.idpresponse.md +0 -20
- package/docs/api/foundation-auth.includeserrorwarningcode.md +0 -13
|
@@ -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) > [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
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [LoginNack](./foundation-auth.loginnack.md) > [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) > [@genesislcap/foundation-auth](./foundation-auth.md) > [LoginNack](./foundation-auth.loginnack.md) > [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
|
|
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
|
-
| [
|
|
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) |
|
|
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
|
-
| [
|
|
117
|
+
| [fromIDPDTO](./foundation-auth.fromidpdto.md) | fromIDPDTO |
|
|
122
118
|
| [hasDTOErrorWarningCode](./foundation-auth.hasdtoerrorwarningcode.md) | hasDTOErrorWarningCode |
|
|
123
|
-
| [
|
|
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) > [@genesislcap/foundation-auth](./foundation-auth.md) > [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) > [@genesislcap/foundation-auth](./foundation-auth.md) > [
|
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [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
|
-
|
|
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) > [@genesislcap/foundation-auth](./foundation-auth.md) > [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
|
+
```
|
|
@@ -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
|
+
() => 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
|
```
|