@genesislcap/foundation-auth 14.71.1-auth-mf.21 → 14.99.0-auth-mf.22
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 +27 -11
- package/dist/dts/components/zero-components.d.ts.map +1 -1
- package/dist/dts/config/config.d.ts +0 -9
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/config/templates.d.ts +1 -0
- package/dist/dts/config/templates.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 +36 -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 +8 -0
- 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/reset-password/reset-password.d.ts +0 -1
- package/dist/dts/routes/reset-password/reset-password.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 +17 -4
- package/dist/dts/store/auth.d.ts.map +1 -1
- package/dist/dts/store/authFormEntry.d.ts +56 -20
- package/dist/dts/store/authFormEntry.d.ts.map +1 -1
- package/dist/dts/tags/tags.d.ts +2 -5
- package/dist/dts/tags/tags.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/components/zero-components.js +2 -2
- package/dist/esm/config/config.js +1 -1
- package/dist/esm/config/templates.js +1 -0
- 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 +53 -3
- package/dist/esm/main/main.styles.js +7 -1
- package/dist/esm/main/main.template.js +16 -3
- 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/index.js +0 -1
- package/dist/esm/routes/login/login.js +13 -12
- package/dist/esm/routes/login/login.template.js +3 -3
- package/dist/esm/routes/reset-password/reset-password.js +0 -4
- 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 +68 -49
- package/dist/esm/tags/tags.js +2 -20
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/logger.js +1 -1
- package/dist/foundation-auth.api.json +816 -769
- package/dist/foundation-auth.d.ts +210 -91
- 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.loadingtemplate.md +12 -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 +12 -11
- package/docs/api/foundation-auth.routertemplate.md +12 -0
- 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-report.md +175 -76
- 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
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthFormEntryStore](./foundation-auth.authformentrystore.md) > [hasErrors](./foundation-auth.authformentrystore.haserrors.md)
|
|
4
|
-
|
|
5
|
-
## AuthFormEntryStore.hasErrors property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly hasErrors: boolean;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthFormEntryStore](./foundation-auth.authformentrystore.md) > [message](./foundation-auth.authformentrystore.message.md)
|
|
4
|
-
|
|
5
|
-
## AuthFormEntryStore.message property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly message: string;
|
|
11
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthRouting](./foundation-auth.authrouting.md) > [getRoutePath](./foundation-auth.authrouting.getroutepath.md)
|
|
4
|
-
|
|
5
|
-
## AuthRouting.getRoutePath property
|
|
6
|
-
|
|
7
|
-
A utility to get a sub route path taking the host path into account.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getRoutePath: typeof getRoutePath;
|
|
13
|
-
```
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthRouting](./foundation-auth.authrouting.md)
|
|
4
|
-
|
|
5
|
-
## AuthRouting interface
|
|
6
|
-
|
|
7
|
-
AuthRouting interface.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface AuthRouting
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
A utility to navigate to a sub route of the auth micro frontend without needing to know the full path in advance.
|
|
18
|
-
|
|
19
|
-
## Example
|
|
20
|
-
|
|
21
|
-
Import the utility into any component or logic you wish to invoke from.
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { AuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
25
|
-
...
|
|
26
|
-
@AuthRouting private authRouting: AuthRouting;
|
|
27
|
-
...
|
|
28
|
-
this.authRouting.navigateTo('logout');
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Properties
|
|
32
|
-
|
|
33
|
-
| Property | Modifiers | Type | Description |
|
|
34
|
-
| --- | --- | --- | --- |
|
|
35
|
-
| [getRoutePath](./foundation-auth.authrouting.getroutepath.md) | | typeof getRoutePath | A utility to get a sub route path taking the host path into account. |
|
|
36
|
-
| [navigateTo](./foundation-auth.authrouting.navigateto.md) | | typeof navigateTo | |
|
|
37
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [AuthRouting](./foundation-auth.authrouting.md) > [navigateTo](./foundation-auth.authrouting.navigateto.md)
|
|
4
|
-
|
|
5
|
-
## AuthRouting.navigateTo property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
navigateTo: typeof navigateTo;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Remarks
|
|
14
|
-
|
|
15
|
-
Uses the `FASTRouter`<!-- -->.
|
|
16
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) > [autofill](./foundation-auth.defaultauthformentrystore.autofill.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthFormEntryStore.autofill() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected autofill(): Promise<boolean>;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
Promise<boolean>
|
|
15
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) > [fetchMachine](./foundation-auth.defaultauthformentrystore.fetchmachine.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthFormEntryStore.fetchMachine property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly fetchMachine: FetchMachine;
|
|
11
|
-
```
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) > [host](./foundation-auth.defaultauthformentrystore.host.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthFormEntryStore.host property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
host: string;
|
|
11
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) > [resetIDPState](./foundation-auth.defaultauthformentrystore.resetidpstate.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthFormEntryStore.resetIDPState() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected resetIDPState(): void;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
void
|
|
15
|
-
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthFormEntryStore](./foundation-auth.defaultauthformentrystore.md) > [ssoToggledChanged](./foundation-auth.defaultauthformentrystore.ssotoggledchanged.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthFormEntryStore.ssoToggledChanged() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
protected ssoToggledChanged(prev: boolean, next: boolean): void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| prev | boolean | |
|
|
18
|
-
| next | boolean | |
|
|
19
|
-
|
|
20
|
-
**Returns:**
|
|
21
|
-
|
|
22
|
-
void
|
|
23
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthRouting](./foundation-auth.defaultauthrouting.md) > [getRoutePath](./foundation-auth.defaultauthrouting.getroutepath.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthRouting.getRoutePath() method
|
|
6
|
-
|
|
7
|
-
A utility to get a sub route path taking the host path into account.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getRoutePath(route: AuthRoutes | string): string;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Parameters
|
|
16
|
-
|
|
17
|
-
| Parameter | Type | Description |
|
|
18
|
-
| --- | --- | --- |
|
|
19
|
-
| route | [AuthRoutes](./foundation-auth.authroutes.md) \| string | An auth route. |
|
|
20
|
-
|
|
21
|
-
**Returns:**
|
|
22
|
-
|
|
23
|
-
string
|
|
24
|
-
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthRouting](./foundation-auth.defaultauthrouting.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthRouting class
|
|
6
|
-
|
|
7
|
-
Default AuthRouting.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare class DefaultAuthRouting implements AuthRouting
|
|
13
|
-
```
|
|
14
|
-
**Implements:** [AuthRouting](./foundation-auth.authrouting.md)
|
|
15
|
-
|
|
16
|
-
## Methods
|
|
17
|
-
|
|
18
|
-
| Method | Modifiers | Description |
|
|
19
|
-
| --- | --- | --- |
|
|
20
|
-
| [getRoutePath(route)](./foundation-auth.defaultauthrouting.getroutepath.md) | | A utility to get a sub route path taking the host path into account. |
|
|
21
|
-
| [navigateTo(route)](./foundation-auth.defaultauthrouting.navigateto.md) | | |
|
|
22
|
-
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [DefaultAuthRouting](./foundation-auth.defaultauthrouting.md) > [navigateTo](./foundation-auth.defaultauthrouting.navigateto.md)
|
|
4
|
-
|
|
5
|
-
## DefaultAuthRouting.navigateTo() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
navigateTo(route: AuthRoutes | string): void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| route | [AuthRoutes](./foundation-auth.authroutes.md) \| string | An auth route including query params if required, ie. <code>reset-password?expired</code>. |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
void
|
|
22
|
-
|
|
23
|
-
## Remarks
|
|
24
|
-
|
|
25
|
-
Uses the `FASTRouter`<!-- -->.
|
|
26
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [fetchIDPs](./foundation-auth.fetchidps.md)
|
|
4
|
-
|
|
5
|
-
## fetchIDPs variable
|
|
6
|
-
|
|
7
|
-
Request SSO identity provider list
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
fetchIDPs: (path?: string, host?: string) => Promise<IDP[]>
|
|
13
|
-
```
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [fromDTONackErrorWarningArray](./foundation-auth.fromdtonackerrorwarningarray.md)
|
|
4
|
-
|
|
5
|
-
## fromDTONackErrorWarningArray variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
fromDTONackErrorWarningArray: (arr: NACK_ERROR_WARNING[]) => NackErrorWarning[]
|
|
12
|
-
```
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [getAuthRouting](./foundation-auth.getauthrouting.md)
|
|
4
|
-
|
|
5
|
-
## getAuthRouting() function
|
|
6
|
-
|
|
7
|
-
Gets AuthRouting from the DI container.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getAuthRouting(): AuthRouting;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
[AuthRouting](./foundation-auth.authrouting.md)
|
|
17
|
-
|
|
18
|
-
## Remarks
|
|
19
|
-
|
|
20
|
-
A utility method for host applications that are not using decorators or the DI container.
|
|
21
|
-
|
|
22
|
-
## Example
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
```ts
|
|
26
|
-
import { getAuthRouting } from '@genesislcap/foundation-auth/routing';
|
|
27
|
-
...
|
|
28
|
-
private authRouting = getAuthRouting();
|
|
29
|
-
...
|
|
30
|
-
this.authRouting.navigateTo('logout');
|
|
31
|
-
```
|
|
32
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [getSSOLoginURL](./foundation-auth.getssologinurl.md)
|
|
4
|
-
|
|
5
|
-
## getSSOLoginURL variable
|
|
6
|
-
|
|
7
|
-
Get SSO identity provider login URL
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
getSSOLoginURL: (idp: any, path?: string, host?: string) => string
|
|
13
|
-
```
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [IDPResponse](./foundation-auth.idpresponse.md)
|
|
4
|
-
|
|
5
|
-
## IDPResponse interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
export interface IDPResponse
|
|
12
|
-
```
|
|
13
|
-
|
|
14
|
-
## Properties
|
|
15
|
-
|
|
16
|
-
| Property | Modifiers | Type | Description |
|
|
17
|
-
| --- | --- | --- | --- |
|
|
18
|
-
| [ID](./foundation-auth.idpresponse.id.md) | | string | |
|
|
19
|
-
| [TYPE](./foundation-auth.idpresponse.type.md) | | string | |
|
|
20
|
-
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-auth](./foundation-auth.md) > [includesErrorWarningCode](./foundation-auth.includeserrorwarningcode.md)
|
|
4
|
-
|
|
5
|
-
## includesErrorWarningCode variable
|
|
6
|
-
|
|
7
|
-
includesErrorWarningCode
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
includesErrorWarningCode: (arr: NACK_ERROR_WARNING[], code: string) => boolean
|
|
13
|
-
```
|