@genesislcap/foundation-auth 14.136.0 → 14.137.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -33
- package/dist/dts/config/config.d.ts.map +1 -1
- package/dist/dts/entity/loginAck.d.ts +20 -25
- package/dist/dts/entity/loginAck.d.ts.map +1 -1
- package/dist/dts/machine/machine.d.ts +2 -2
- package/dist/dts/machine/machine.d.ts.map +1 -1
- package/dist/dts/machine/types.d.ts +1 -1
- package/dist/dts/machine/types.d.ts.map +1 -1
- package/dist/dts/routes/base.d.ts +13 -7
- package/dist/dts/routes/base.d.ts.map +1 -1
- package/dist/dts/routes/config.d.ts +1 -1
- package/dist/dts/routes/config.d.ts.map +1 -1
- package/dist/dts/routes/protected/protected.d.ts +2 -0
- package/dist/dts/routes/protected/protected.d.ts.map +1 -1
- package/dist/dts/routes/protected/protected.template.d.ts.map +1 -1
- package/dist/dts/user/index.d.ts +5 -2
- package/dist/dts/user/index.d.ts.map +1 -1
- package/dist/esm/config/config.js +1 -1
- package/dist/esm/machine/machine.js +2 -2
- package/dist/esm/routes/base.js +1 -1
- package/dist/esm/routes/config.js +1 -1
- package/dist/esm/routes/protected/protected.js +11 -1
- package/dist/esm/routes/protected/protected.template.js +8 -0
- package/dist/esm/user/index.js +5 -2
- package/dist/foundation-auth.api.json +2704 -5197
- package/dist/foundation-auth.d.ts +42 -287
- package/docs/api/foundation-auth.authmachinecontext.md +1 -1
- package/docs/api/foundation-auth.defaultauthmachine._constructor_.md +1 -1
- package/docs/api/foundation-auth.details.md +6 -13
- package/docs/api/foundation-auth.getauthmachine.md +1 -1
- package/docs/api/foundation-auth.loginack.md +2 -16
- package/docs/api/foundation-auth.md +0 -9
- package/docs/api/foundation-auth.product.md +6 -8
- package/docs/api/foundation-auth.system.md +6 -7
- package/docs/api-report.md +29 -218
- package/package.json +13 -12
- package/dist/dts/user/config.d.ts +0 -29
- package/dist/dts/user/config.d.ts.map +0 -1
- package/dist/dts/user/user.d.ts +0 -233
- package/dist/dts/user/user.d.ts.map +0 -1
- package/dist/esm/user/config.js +0 -17
- package/dist/esm/user/user.js +0 -200
- package/docs/api/foundation-auth.defaultuser.actionhistory.md +0 -13
- package/docs/api/foundation-auth.defaultuser.addauthenticationchangelistener.md +0 -22
- package/docs/api/foundation-auth.defaultuser.clearactions.md +0 -17
- package/docs/api/foundation-auth.defaultuser.clearpaths.md +0 -17
- package/docs/api/foundation-auth.defaultuser.cleartrackinghistory.md +0 -16
- package/docs/api/foundation-auth.defaultuser.details.md +0 -12
- package/docs/api/foundation-auth.defaultuser.haspermission.md +0 -22
- package/docs/api/foundation-auth.defaultuser.hasprofile.md +0 -22
- package/docs/api/foundation-auth.defaultuser.isadmin.md +0 -16
- package/docs/api/foundation-auth.defaultuser.isanonymous.md +0 -12
- package/docs/api/foundation-auth.defaultuser.isauthenticated.md +0 -12
- package/docs/api/foundation-auth.defaultuser.isbanned.md +0 -16
- package/docs/api/foundation-auth.defaultuser.lastaction.md +0 -17
- package/docs/api/foundation-auth.defaultuser.lastpath.md +0 -19
- package/docs/api/foundation-auth.defaultuser.md +0 -50
- package/docs/api/foundation-auth.defaultuser.pathhistory.md +0 -13
- package/docs/api/foundation-auth.defaultuser.permission.md +0 -12
- package/docs/api/foundation-auth.defaultuser.profile.md +0 -12
- package/docs/api/foundation-auth.defaultuser.set.md +0 -22
- package/docs/api/foundation-auth.defaultuser.sourceref.md +0 -12
- package/docs/api/foundation-auth.defaultuser.trackaction.md +0 -24
- package/docs/api/foundation-auth.defaultuser.trackpath.md +0 -17
- package/docs/api/foundation-auth.defaultuser.unset.md +0 -16
- package/docs/api/foundation-auth.defaultuser.userkvs.md +0 -14
- package/docs/api/foundation-auth.defaultuser.username.md +0 -12
- package/docs/api/foundation-auth.defaultuserconfig.md +0 -13
- package/docs/api/foundation-auth.details.daystopasswordexpiry.md +0 -11
- package/docs/api/foundation-auth.details.failedloginattempts.md +0 -11
- package/docs/api/foundation-auth.details.heartbeatintervalsecs.md +0 -11
- package/docs/api/foundation-auth.details.lastlogindatetime.md +0 -11
- package/docs/api/foundation-auth.details.product.md +0 -11
- package/docs/api/foundation-auth.details.rejectedloginattempts.md +0 -11
- package/docs/api/foundation-auth.details.system.md +0 -11
- package/docs/api/foundation-auth.getuser.md +0 -30
- package/docs/api/foundation-auth.loginack.details.md +0 -11
- package/docs/api/foundation-auth.loginack.permission.md +0 -11
- package/docs/api/foundation-auth.loginack.profile.md +0 -11
- package/docs/api/foundation-auth.loginack.updatequeue.md +0 -11
- package/docs/api/foundation-auth.loginack.userkvs.md +0 -13
- package/docs/api/foundation-auth.loginack.username.md +0 -11
- package/docs/api/foundation-auth.loginack.zeromqproxyinboundport.md +0 -11
- package/docs/api/foundation-auth.loginack.zeromqproxymodeenabled.md +0 -11
- package/docs/api/foundation-auth.loginack.zeromqproxyoutboundport.md +0 -11
- package/docs/api/foundation-auth.product.name.md +0 -11
- package/docs/api/foundation-auth.product.version.md +0 -11
- package/docs/api/foundation-auth.system.date.md +0 -11
- package/docs/api/foundation-auth.user.addauthenticationchangelistener.md +0 -33
- package/docs/api/foundation-auth.user.cleartrackinghistory.md +0 -15
- package/docs/api/foundation-auth.user.details.md +0 -11
- package/docs/api/foundation-auth.user.haspermission.md +0 -22
- package/docs/api/foundation-auth.user.hasprofile.md +0 -22
- package/docs/api/foundation-auth.user.isadmin.md +0 -15
- package/docs/api/foundation-auth.user.isanonymous.md +0 -11
- package/docs/api/foundation-auth.user.isauthenticated.md +0 -11
- package/docs/api/foundation-auth.user.isbanned.md +0 -15
- package/docs/api/foundation-auth.user.md +0 -55
- package/docs/api/foundation-auth.user.permission.md +0 -11
- package/docs/api/foundation-auth.user.profile.md +0 -11
- package/docs/api/foundation-auth.user.set.md +0 -22
- package/docs/api/foundation-auth.user.sourceref.md +0 -11
- package/docs/api/foundation-auth.user.unset.md +0 -15
- package/docs/api/foundation-auth.user.userkvs.md +0 -13
- package/docs/api/foundation-auth.user.username.md +0 -11
- package/docs/api/foundation-auth.useractionhistory.actionhistory.md +0 -13
- package/docs/api/foundation-auth.useractionhistory.clearactions.md +0 -17
- package/docs/api/foundation-auth.useractionhistory.lastaction.md +0 -17
- package/docs/api/foundation-auth.useractionhistory.md +0 -32
- package/docs/api/foundation-auth.useractionhistory.trackaction.md +0 -24
- package/docs/api/foundation-auth.userauthenticationchangeevent.md +0 -18
- package/docs/api/foundation-auth.userauthenticationchangetype.md +0 -13
- package/docs/api/foundation-auth.userconfig.md +0 -21
- package/docs/api/foundation-auth.userconfig.trackactionexclusions.md +0 -13
- package/docs/api/foundation-auth.userconfig.trackpathexclusions.md +0 -13
- package/docs/api/foundation-auth.userpathhistory.clearpaths.md +0 -17
- package/docs/api/foundation-auth.userpathhistory.lastpath.md +0 -19
- package/docs/api/foundation-auth.userpathhistory.md +0 -32
- package/docs/api/foundation-auth.userpathhistory.pathhistory.md +0 -13
- package/docs/api/foundation-auth.userpathhistory.trackpath.md +0 -17
|
@@ -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) > [defaultUserConfig](./foundation-auth.defaultuserconfig.md)
|
|
4
|
-
|
|
5
|
-
## defaultUserConfig variable
|
|
6
|
-
|
|
7
|
-
Default UserConfig DI implementation.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
defaultUserConfig: UserConfig
|
|
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) > [Details](./foundation-auth.details.md) > [daysToPasswordExpiry](./foundation-auth.details.daystopasswordexpiry.md)
|
|
4
|
-
|
|
5
|
-
## Details.daysToPasswordExpiry property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly daysToPasswordExpiry: number;
|
|
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) > [Details](./foundation-auth.details.md) > [failedLoginAttempts](./foundation-auth.details.failedloginattempts.md)
|
|
4
|
-
|
|
5
|
-
## Details.failedLoginAttempts property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly failedLoginAttempts: number;
|
|
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) > [Details](./foundation-auth.details.md) > [heartbeatIntervalSecs](./foundation-auth.details.heartbeatintervalsecs.md)
|
|
4
|
-
|
|
5
|
-
## Details.heartbeatIntervalSecs property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly heartbeatIntervalSecs: number;
|
|
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) > [Details](./foundation-auth.details.md) > [lastLoginDatetime](./foundation-auth.details.lastlogindatetime.md)
|
|
4
|
-
|
|
5
|
-
## Details.lastLoginDatetime property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly lastLoginDatetime: number;
|
|
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) > [Details](./foundation-auth.details.md) > [product](./foundation-auth.details.product.md)
|
|
4
|
-
|
|
5
|
-
## Details.product property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly product: Product[];
|
|
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) > [Details](./foundation-auth.details.md) > [rejectedLoginAttempts](./foundation-auth.details.rejectedloginattempts.md)
|
|
4
|
-
|
|
5
|
-
## Details.rejectedLoginAttempts property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly rejectedLoginAttempts: number;
|
|
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) > [Details](./foundation-auth.details.md) > [system](./foundation-auth.details.system.md)
|
|
4
|
-
|
|
5
|
-
## Details.system property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly system: System | null;
|
|
11
|
-
```
|
|
@@ -1,30 +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) > [getUser](./foundation-auth.getuser.md)
|
|
4
|
-
|
|
5
|
-
## getUser() function
|
|
6
|
-
|
|
7
|
-
Gets User from the DI container.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export declare function getUser(): User;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
[User](./foundation-auth.user.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 { getUser, User } from '@genesislcap/foundation-auth/user';
|
|
27
|
-
...
|
|
28
|
-
private user: User = getUser();
|
|
29
|
-
```
|
|
30
|
-
|
|
@@ -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) > [LoginAck](./foundation-auth.loginack.md) > [details](./foundation-auth.loginack.details.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.details property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly details: Details;
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [permission](./foundation-auth.loginack.permission.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.permission property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly permission: string[];
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [profile](./foundation-auth.loginack.profile.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.profile property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly profile: string[];
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [updateQueue](./foundation-auth.loginack.updatequeue.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.updateQueue property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly updateQueue: 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) > [LoginAck](./foundation-auth.loginack.md) > [userKVs](./foundation-auth.loginack.userkvs.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.userKVs property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly userKVs: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [userName](./foundation-auth.loginack.username.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.userName property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly userName: string;
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [zeroMqProxyInboundPort](./foundation-auth.loginack.zeromqproxyinboundport.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.zeroMqProxyInboundPort property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly zeroMqProxyInboundPort: number;
|
|
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) > [LoginAck](./foundation-auth.loginack.md) > [zeroMqProxyModeEnabled](./foundation-auth.loginack.zeromqproxymodeenabled.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.zeroMqProxyModeEnabled property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly zeroMqProxyModeEnabled: 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) > [LoginAck](./foundation-auth.loginack.md) > [zeroMqProxyOutboundPort](./foundation-auth.loginack.zeromqproxyoutboundport.md)
|
|
4
|
-
|
|
5
|
-
## LoginAck.zeroMqProxyOutboundPort property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly zeroMqProxyOutboundPort: number;
|
|
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) > [Product](./foundation-auth.product.md) > [name](./foundation-auth.product.name.md)
|
|
4
|
-
|
|
5
|
-
## Product.name property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly name: string;
|
|
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) > [Product](./foundation-auth.product.md) > [version](./foundation-auth.product.version.md)
|
|
4
|
-
|
|
5
|
-
## Product.version property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly version: string;
|
|
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) > [System](./foundation-auth.system.md) > [date](./foundation-auth.system.date.md)
|
|
4
|
-
|
|
5
|
-
## System.date property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly date: string;
|
|
11
|
-
```
|
|
@@ -1,33 +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) > [User](./foundation-auth.user.md) > [addAuthenticationChangeListener](./foundation-auth.user.addauthenticationchangelistener.md)
|
|
4
|
-
|
|
5
|
-
## User.addAuthenticationChangeListener() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
addAuthenticationChangeListener(listener: Listener<UserAuthenticationChangeEvent>): () => void;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| listener | Listener<[UserAuthenticationChangeEvent](./foundation-auth.userauthenticationchangeevent.md)<!-- -->> | A listener function. |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
() => void
|
|
22
|
-
|
|
23
|
-
## Example
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
```ts
|
|
27
|
-
import type { UserAuthenticationChangeEvent } from '@genesislcap/foundation-auth/user';
|
|
28
|
-
...
|
|
29
|
-
const unsubscribe = this.user.addAuthenticationChangeListener((event: UserAuthenticationChangeEvent) => {
|
|
30
|
-
console.log('User authenticated?', event.detail);
|
|
31
|
-
});
|
|
32
|
-
```
|
|
33
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [clearTrackingHistory](./foundation-auth.user.cleartrackinghistory.md)
|
|
4
|
-
|
|
5
|
-
## User.clearTrackingHistory() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
clearTrackingHistory(): void;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
void
|
|
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) > [User](./foundation-auth.user.md) > [details](./foundation-auth.user.details.md)
|
|
4
|
-
|
|
5
|
-
## User.details property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly details: Details;
|
|
11
|
-
```
|
|
@@ -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) > [User](./foundation-auth.user.md) > [hasPermission](./foundation-auth.user.haspermission.md)
|
|
4
|
-
|
|
5
|
-
## User.hasPermission() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
hasPermission(permission: string | string[]): boolean;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| permission | string \| string\[\] | A permission string or an array of permission strings to check. |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
boolean
|
|
22
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [hasProfile](./foundation-auth.user.hasprofile.md)
|
|
4
|
-
|
|
5
|
-
## User.hasProfile() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
hasProfile(profile: string | string[]): boolean;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| profile | string \| string\[\] | A profile string or an array of profile strings to check. |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
boolean
|
|
22
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [isAdmin](./foundation-auth.user.isadmin.md)
|
|
4
|
-
|
|
5
|
-
## User.isAdmin() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isAdmin(): boolean;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
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) > [User](./foundation-auth.user.md) > [isAnonymous](./foundation-auth.user.isanonymous.md)
|
|
4
|
-
|
|
5
|
-
## User.isAnonymous property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly isAnonymous: 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) > [User](./foundation-auth.user.md) > [isAuthenticated](./foundation-auth.user.isauthenticated.md)
|
|
4
|
-
|
|
5
|
-
## User.isAuthenticated property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly isAuthenticated: boolean;
|
|
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) > [User](./foundation-auth.user.md) > [isBanned](./foundation-auth.user.isbanned.md)
|
|
4
|
-
|
|
5
|
-
## User.isBanned() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isBanned(): boolean;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
boolean
|
|
15
|
-
|
|
@@ -1,55 +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) > [User](./foundation-auth.user.md)
|
|
4
|
-
|
|
5
|
-
## User interface
|
|
6
|
-
|
|
7
|
-
User interface.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
export interface User extends UserPathHistory, UserActionHistory
|
|
13
|
-
```
|
|
14
|
-
**Extends:** [UserPathHistory](./foundation-auth.userpathhistory.md)<!-- -->, [UserActionHistory](./foundation-auth.useractionhistory.md)
|
|
15
|
-
|
|
16
|
-
## Remarks
|
|
17
|
-
|
|
18
|
-
The user singleton, which always exists in either an anonymous or authenticated mode.
|
|
19
|
-
|
|
20
|
-
## Example
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
```ts
|
|
24
|
-
import { User } from '@genesislcap/foundation-auth/user';
|
|
25
|
-
...
|
|
26
|
-
@User private user: User
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Properties
|
|
30
|
-
|
|
31
|
-
| Property | Modifiers | Type | Description |
|
|
32
|
-
| --- | --- | --- | --- |
|
|
33
|
-
| [details](./foundation-auth.user.details.md) | <code>readonly</code> | [Details](./foundation-auth.details.md) | |
|
|
34
|
-
| [isAnonymous](./foundation-auth.user.isanonymous.md) | <code>readonly</code> | boolean | |
|
|
35
|
-
| [isAuthenticated](./foundation-auth.user.isauthenticated.md) | <code>readonly</code> | boolean | |
|
|
36
|
-
| [permission](./foundation-auth.user.permission.md) | <code>readonly</code> | string\[\] | |
|
|
37
|
-
| [profile](./foundation-auth.user.profile.md) | <code>readonly</code> | string\[\] | |
|
|
38
|
-
| [sourceRef](./foundation-auth.user.sourceref.md) | <code>readonly</code> | string | |
|
|
39
|
-
| [userKVs](./foundation-auth.user.userkvs.md) | <code>readonly</code> | { \[key: string\]: any; } | |
|
|
40
|
-
| [username](./foundation-auth.user.username.md) | <code>readonly</code> | string | |
|
|
41
|
-
| [userName](./foundation-auth.user.username.md) | <code>readonly</code> | string | |
|
|
42
|
-
|
|
43
|
-
## Methods
|
|
44
|
-
|
|
45
|
-
| Method | Description |
|
|
46
|
-
| --- | --- |
|
|
47
|
-
| [addAuthenticationChangeListener(listener)](./foundation-auth.user.addauthenticationchangelistener.md) | |
|
|
48
|
-
| [clearTrackingHistory()](./foundation-auth.user.cleartrackinghistory.md) | |
|
|
49
|
-
| [hasPermission(permission)](./foundation-auth.user.haspermission.md) | |
|
|
50
|
-
| [hasProfile(profile)](./foundation-auth.user.hasprofile.md) | |
|
|
51
|
-
| [isAdmin()](./foundation-auth.user.isadmin.md) | |
|
|
52
|
-
| [isBanned()](./foundation-auth.user.isbanned.md) | |
|
|
53
|
-
| [set(entity)](./foundation-auth.user.set.md) | |
|
|
54
|
-
| [unset()](./foundation-auth.user.unset.md) | |
|
|
55
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [permission](./foundation-auth.user.permission.md)
|
|
4
|
-
|
|
5
|
-
## User.permission property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly permission: string[];
|
|
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) > [User](./foundation-auth.user.md) > [profile](./foundation-auth.user.profile.md)
|
|
4
|
-
|
|
5
|
-
## User.profile property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly profile: string[];
|
|
11
|
-
```
|
|
@@ -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) > [User](./foundation-auth.user.md) > [set](./foundation-auth.user.set.md)
|
|
4
|
-
|
|
5
|
-
## User.set() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
set(entity: Partial<LoginAck>): this;
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
| Parameter | Type | Description |
|
|
16
|
-
| --- | --- | --- |
|
|
17
|
-
| entity | Partial<[LoginAck](./foundation-auth.loginack.md)<!-- -->> | The LoginAck used to populate the User. |
|
|
18
|
-
|
|
19
|
-
**Returns:**
|
|
20
|
-
|
|
21
|
-
this
|
|
22
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [sourceRef](./foundation-auth.user.sourceref.md)
|
|
4
|
-
|
|
5
|
-
## User.sourceRef property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly sourceRef: 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) > [User](./foundation-auth.user.md) > [unset](./foundation-auth.user.unset.md)
|
|
4
|
-
|
|
5
|
-
## User.unset() method
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
unset(): this;
|
|
11
|
-
```
|
|
12
|
-
**Returns:**
|
|
13
|
-
|
|
14
|
-
this
|
|
15
|
-
|
|
@@ -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) > [User](./foundation-auth.user.md) > [userKVs](./foundation-auth.user.userkvs.md)
|
|
4
|
-
|
|
5
|
-
## User.userKVs property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly userKVs: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
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) > [User](./foundation-auth.user.md) > [userName](./foundation-auth.user.username.md)
|
|
4
|
-
|
|
5
|
-
## User.userName property
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
readonly userName: 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) > [UserActionHistory](./foundation-auth.useractionhistory.md) > [actionHistory](./foundation-auth.useractionhistory.actionhistory.md)
|
|
4
|
-
|
|
5
|
-
## UserActionHistory.actionHistory property
|
|
6
|
-
|
|
7
|
-
Array of actions that have been tracked.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly actionHistory: unknown[];
|
|
13
|
-
```
|
|
@@ -1,17 +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) > [UserActionHistory](./foundation-auth.useractionhistory.md) > [clearActions](./foundation-auth.useractionhistory.clearactions.md)
|
|
4
|
-
|
|
5
|
-
## UserActionHistory.clearActions() method
|
|
6
|
-
|
|
7
|
-
Clears action history.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
clearActions(): void;
|
|
13
|
-
```
|
|
14
|
-
**Returns:**
|
|
15
|
-
|
|
16
|
-
void
|
|
17
|
-
|