@rxap/authentication 19.0.1-dev.5 → 19.0.2-dev.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/CHANGELOG.md +14 -0
- package/README.md +25 -23
- package/compodoc/changelog.html +9 -0
- package/compodoc/dependencies.html +1 -1
- package/compodoc/index.html +15 -21
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/variables.html +26 -0
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +76 -76
- package/docs/html/assets/highlight.css +6 -13
- package/docs/html/classes/AuthenticationRoutingService.html +2 -2
- package/docs/html/classes/DisabledAuthenticationService.html +2 -2
- package/docs/html/classes/RegisterService.html +2 -2
- package/docs/html/classes/RxapAuthenticationGuard.html +2 -2
- package/docs/html/classes/RxapAuthenticationService.html +2 -2
- package/docs/html/classes/SignOutDirective.html +2 -2
- package/docs/html/enums/AuthenticationEventType.html +2 -2
- package/docs/html/functions/BearerTokenInterceptor.html +1 -1
- package/docs/html/functions/provideAuthentication.html +1 -1
- package/docs/html/functions/withDisabledAuthentication.html +1 -1
- package/docs/html/functions/withInitialAuthenticationState.html +1 -1
- package/docs/html/index.html +22 -21
- package/docs/html/interfaces/AuthenticationAccessToken.html +2 -2
- package/docs/html/interfaces/AuthenticationEvent.html +2 -2
- package/docs/html/interfaces/IAuthenticationService.html +2 -2
- package/docs/html/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +1 -1
- package/docs/html/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +1 -1
- package/docs/html/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +1 -1
- package/docs/markdown/README.md +25 -23
- package/docs/markdown/classes/AuthenticationRoutingService.md +2 -2
- package/docs/markdown/classes/DisabledAuthenticationService.md +5 -5
- package/docs/markdown/classes/RegisterService.md +3 -3
- package/docs/markdown/classes/RxapAuthenticationGuard.md +7 -7
- package/docs/markdown/classes/RxapAuthenticationService.md +6 -6
- package/docs/markdown/classes/SignOutDirective.md +5 -5
- package/docs/markdown/enumerations/AuthenticationEventType.md +4 -4
- package/docs/markdown/functions/BearerTokenInterceptor.md +1 -1
- package/docs/markdown/functions/provideAuthentication.md +1 -1
- package/docs/markdown/functions/withDisabledAuthentication.md +1 -1
- package/docs/markdown/functions/withInitialAuthenticationState.md +1 -1
- package/docs/markdown/interfaces/AuthenticationAccessToken.md +3 -3
- package/docs/markdown/interfaces/AuthenticationEvent.md +2 -2
- package/docs/markdown/interfaces/IAuthenticationService.md +5 -5
- package/docs/markdown/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md +1 -1
- package/docs/markdown/variables/RXAP_AUTHENTICATION_DEACTIVATED.md +1 -1
- package/docs/markdown/variables/RXAP_INITIAL_AUTHENTICATION_STATE.md +1 -1
- package/docs/wiki/Class.AuthenticationRoutingService.md +2 -2
- package/docs/wiki/Class.DisabledAuthenticationService.md +5 -5
- package/docs/wiki/Class.RegisterService.md +3 -3
- package/docs/wiki/Class.RxapAuthenticationGuard.md +7 -7
- package/docs/wiki/Class.RxapAuthenticationService.md +6 -6
- package/docs/wiki/Class.SignOutDirective.md +5 -5
- package/docs/wiki/Enumeration.AuthenticationEventType.md +4 -4
- package/docs/wiki/Function.BearerTokenInterceptor.md +1 -1
- package/docs/wiki/Function.provideAuthentication.md +1 -1
- package/docs/wiki/Function.withDisabledAuthentication.md +1 -1
- package/docs/wiki/Function.withInitialAuthenticationState.md +1 -1
- package/docs/wiki/Home.md +25 -23
- package/docs/wiki/Interface.AuthenticationAccessToken.md +3 -3
- package/docs/wiki/Interface.AuthenticationEvent.md +2 -2
- package/docs/wiki/Interface.IAuthenticationService.md +5 -5
- package/docs/wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN.md +1 -1
- package/docs/wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED.md +1 -1
- package/docs/wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE.md +1 -1
- package/package.json +4 -4
package/docs/markdown/README.md
CHANGED
|
@@ -5,33 +5,35 @@
|
|
|
5
5
|
Provides authentication services, guards, and interceptors for Angular applications. It supports token-based authentication and provides features such as sign-out functionality and routing based on authentication status. This package also includes utilities for disabling authentication in certain environments and managing access tokens.
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@rxap/authentication)
|
|
8
|
-
[](https://github.com/prettier/prettier)
|
|
12
|
-

|
|
8
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
9
|
+
[](https://github.com/prettier/prettier)
|
|
10
|
+

|
|
14
11
|

|
|
15
|
-

|
|
16
|
-
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
- [Installation](#installation)
|
|
17
15
|
- [Generators](#generators)
|
|
18
|
-
|
|
16
|
+
- [init](#init)
|
|
17
|
+
|
|
18
|
+
# Installation
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
**Add the package to your workspace:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @rxap/authentication
|
|
23
|
+
```
|
|
24
|
+
**Install peer dependencies:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn add @angular/common@^19.1.3 @angular/core@^19.1.3 @angular/router@^19.1.3 @rxap/utilities@^16.4.2 rxjs@^7.8.1
|
|
27
|
+
```
|
|
28
|
+
**Execute the init generator:**
|
|
29
|
+
```bash
|
|
30
|
+
yarn nx g @rxap/authentication:init
|
|
22
31
|
```
|
|
23
|
-
**Install peer dependencies:** ```bash yarn add
|
|
24
|
-
@angular/common@^19.1.3 @angular/core@^19.1.3 @angular/router@^19.1.3 @rxap/utilities@^16.4.2-dev.4 rxjs@^7.8.1
|
|
25
|
-
```
|
|
26
|
-
**Execute the init generator:** ```bash yarn nx g
|
|
27
|
-
@rxap/authentication:init ```
|
|
28
32
|
# Generators
|
|
29
33
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
>
|
|
33
|
-
Initialize the package in the workspace
|
|
34
|
+
## init
|
|
35
|
+
> Initialize the package in the workspace
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
```bash
|
|
38
|
+
nx g @rxap/authentication:init
|
|
39
|
+
```
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: AuthenticationRoutingService
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication-routing.service.ts#L14)
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packa
|
|
|
14
14
|
|
|
15
15
|
> **new AuthenticationRoutingService**(`router`, `authenticationService`, `deactivated`): [`AuthenticationRoutingService`](AuthenticationRoutingService.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [authentication-routing.service.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [authentication-routing.service.ts:16](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication-routing.service.ts#L16)
|
|
18
18
|
|
|
19
19
|
#### Parameters
|
|
20
20
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: DisabledAuthenticationService
|
|
8
8
|
|
|
9
|
-
Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L9)
|
|
10
10
|
|
|
11
11
|
## Implements
|
|
12
12
|
|
|
@@ -28,7 +28,7 @@ Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packa
|
|
|
28
28
|
|
|
29
29
|
> `readonly` **events$**: `Observable`\<`never`\> = `EMPTY`
|
|
30
30
|
|
|
31
|
-
Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
31
|
+
Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L12)
|
|
32
32
|
|
|
33
33
|
#### Implementation of
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/pack
|
|
|
40
40
|
|
|
41
41
|
> `readonly` **isAuthenticated$**: `Observable`\<`boolean`\>
|
|
42
42
|
|
|
43
|
-
Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
43
|
+
Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L11)
|
|
44
44
|
|
|
45
45
|
#### Implementation of
|
|
46
46
|
|
|
@@ -52,7 +52,7 @@ Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/pack
|
|
|
52
52
|
|
|
53
53
|
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
54
54
|
|
|
55
|
-
Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
55
|
+
Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L18)
|
|
56
56
|
|
|
57
57
|
#### Returns
|
|
58
58
|
|
|
@@ -68,7 +68,7 @@ Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/pack
|
|
|
68
68
|
|
|
69
69
|
> **signOut**(): `Promise`\<`void`\>
|
|
70
70
|
|
|
71
|
-
Defined in: [disabled-authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
71
|
+
Defined in: [disabled-authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L14)
|
|
72
72
|
|
|
73
73
|
#### Returns
|
|
74
74
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: RegisterService
|
|
8
8
|
|
|
9
|
-
Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L5)
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/969f
|
|
|
14
14
|
|
|
15
15
|
> **new RegisterService**(): [`RegisterService`](RegisterService.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L7)
|
|
18
18
|
|
|
19
19
|
#### Returns
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/969f
|
|
|
26
26
|
|
|
27
27
|
> **register**(`email`, `password`): `Promise`\<`boolean`\>
|
|
28
28
|
|
|
29
|
-
Defined in: [register.service.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [register.service.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L11)
|
|
30
30
|
|
|
31
31
|
#### Parameters
|
|
32
32
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: RxapAuthenticationGuard
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication.guard.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication.guard.ts:16](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L16)
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [authentication.guard.ts:16](https://gitlab.com/rxap/packages/-/blob
|
|
|
14
14
|
|
|
15
15
|
> **new RxapAuthenticationGuard**(`authentication`, `router`, `deactivated`): [`RxapAuthenticationGuard`](RxapAuthenticationGuard.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [authentication.guard.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [authentication.guard.ts:20](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L20)
|
|
18
18
|
|
|
19
19
|
#### Parameters
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ Defined in: [authentication.guard.ts:20](https://gitlab.com/rxap/packages/-/blob
|
|
|
40
40
|
|
|
41
41
|
> **authentication**: [`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
42
42
|
|
|
43
|
-
Defined in: [authentication.guard.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
43
|
+
Defined in: [authentication.guard.ts:22](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L22)
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ Defined in: [authentication.guard.ts:22](https://gitlab.com/rxap/packages/-/blob
|
|
|
48
48
|
|
|
49
49
|
> **lastUrl**: `null` \| `string` = `null`
|
|
50
50
|
|
|
51
|
-
Defined in: [authentication.guard.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
51
|
+
Defined in: [authentication.guard.ts:18](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L18)
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ Defined in: [authentication.guard.ts:18](https://gitlab.com/rxap/packages/-/blob
|
|
|
56
56
|
|
|
57
57
|
> **router**: `Router`
|
|
58
58
|
|
|
59
|
-
Defined in: [authentication.guard.ts:24](https://gitlab.com/rxap/packages/-/blob/
|
|
59
|
+
Defined in: [authentication.guard.ts:24](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L24)
|
|
60
60
|
|
|
61
61
|
## Methods
|
|
62
62
|
|
|
@@ -64,7 +64,7 @@ Defined in: [authentication.guard.ts:24](https://gitlab.com/rxap/packages/-/blob
|
|
|
64
64
|
|
|
65
65
|
> **canActivate**(`route`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
|
|
66
66
|
|
|
67
|
-
Defined in: [authentication.guard.ts:31](https://gitlab.com/rxap/packages/-/blob/
|
|
67
|
+
Defined in: [authentication.guard.ts:31](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L31)
|
|
68
68
|
|
|
69
69
|
#### Parameters
|
|
70
70
|
|
|
@@ -86,7 +86,7 @@ Defined in: [authentication.guard.ts:31](https://gitlab.com/rxap/packages/-/blob
|
|
|
86
86
|
|
|
87
87
|
> **canActivateChild**(`childRoute`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
|
|
88
88
|
|
|
89
|
-
Defined in: [authentication.guard.ts:39](https://gitlab.com/rxap/packages/-/blob/
|
|
89
|
+
Defined in: [authentication.guard.ts:39](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.guard.ts#L39)
|
|
90
90
|
|
|
91
91
|
#### Parameters
|
|
92
92
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: RxapAuthenticationService
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L31)
|
|
10
10
|
|
|
11
11
|
## Implements
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/bl
|
|
|
18
18
|
|
|
19
19
|
> **new RxapAuthenticationService**(): [`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
20
20
|
|
|
21
|
-
Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L39)
|
|
22
22
|
|
|
23
23
|
#### Returns
|
|
24
24
|
|
|
@@ -30,7 +30,7 @@ Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/bl
|
|
|
30
30
|
|
|
31
31
|
> `readonly` **events$**: `ReplaySubject`\<[`AuthenticationEvent`](../interfaces/AuthenticationEvent.md)\>
|
|
32
32
|
|
|
33
|
-
Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L35)
|
|
34
34
|
|
|
35
35
|
#### Implementation of
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/bl
|
|
|
42
42
|
|
|
43
43
|
> **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\>
|
|
44
44
|
|
|
45
|
-
Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L33)
|
|
46
46
|
|
|
47
47
|
#### Implementation of
|
|
48
48
|
|
|
@@ -54,7 +54,7 @@ Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/bl
|
|
|
54
54
|
|
|
55
55
|
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
56
56
|
|
|
57
|
-
Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/blob/
|
|
57
|
+
Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L49)
|
|
58
58
|
|
|
59
59
|
#### Returns
|
|
60
60
|
|
|
@@ -70,7 +70,7 @@ Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/bl
|
|
|
70
70
|
|
|
71
71
|
> **signOut**(): `Promise`\<`void`\>
|
|
72
72
|
|
|
73
|
-
Defined in: [authentication.service.ts:43](https://gitlab.com/rxap/packages/-/blob/
|
|
73
|
+
Defined in: [authentication.service.ts:43](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L43)
|
|
74
74
|
|
|
75
75
|
#### Returns
|
|
76
76
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Class: SignOutDirective
|
|
8
8
|
|
|
9
|
-
Defined in: [sign-out.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [sign-out.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/sign-out.directive.ts#L13)
|
|
10
10
|
|
|
11
11
|
## Constructors
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [sign-out.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/9
|
|
|
14
14
|
|
|
15
15
|
> **new SignOutDirective**(`auth`): [`SignOutDirective`](SignOutDirective.md)
|
|
16
16
|
|
|
17
|
-
Defined in: [sign-out.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [sign-out.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/sign-out.directive.ts#L21)
|
|
18
18
|
|
|
19
19
|
#### Parameters
|
|
20
20
|
|
|
@@ -32,7 +32,7 @@ Defined in: [sign-out.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/9
|
|
|
32
32
|
|
|
33
33
|
> **failure**: `EventEmitter`\<`Error`\>
|
|
34
34
|
|
|
35
|
-
Defined in: [sign-out.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/
|
|
35
|
+
Defined in: [sign-out.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/sign-out.directive.ts#L19)
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
@@ -40,7 +40,7 @@ Defined in: [sign-out.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/9
|
|
|
40
40
|
|
|
41
41
|
> **successful**: `EventEmitter`\<`void`\>
|
|
42
42
|
|
|
43
|
-
Defined in: [sign-out.directive.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
43
|
+
Defined in: [sign-out.directive.ts:16](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/sign-out.directive.ts#L16)
|
|
44
44
|
|
|
45
45
|
## Methods
|
|
46
46
|
|
|
@@ -48,7 +48,7 @@ Defined in: [sign-out.directive.ts:16](https://gitlab.com/rxap/packages/-/blob/9
|
|
|
48
48
|
|
|
49
49
|
> **onClick**(): `Promise`\<`void`\>
|
|
50
50
|
|
|
51
|
-
Defined in: [sign-out.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/
|
|
51
|
+
Defined in: [sign-out.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/sign-out.directive.ts#L25)
|
|
52
52
|
|
|
53
53
|
#### Returns
|
|
54
54
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Enumeration: AuthenticationEventType
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication.service.ts:20](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication.service.ts:20](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L20)
|
|
10
10
|
|
|
11
11
|
## Enumeration Members
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [authentication.service.ts:20](https://gitlab.com/rxap/packages/-/bl
|
|
|
14
14
|
|
|
15
15
|
> **OnAuthError**: `"on-auth-error"`
|
|
16
16
|
|
|
17
|
-
Defined in: [authentication.service.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [authentication.service.ts:22](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L22)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [authentication.service.ts:22](https://gitlab.com/rxap/packages/-/bl
|
|
|
22
22
|
|
|
23
23
|
> **OnAuthSuccess**: `"on-auth-success"`
|
|
24
24
|
|
|
25
|
-
Defined in: [authentication.service.ts:21](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [authentication.service.ts:21](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L21)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,4 +30,4 @@ Defined in: [authentication.service.ts:21](https://gitlab.com/rxap/packages/-/bl
|
|
|
30
30
|
|
|
31
31
|
> **OnLogout**: `"on-logout"`
|
|
32
32
|
|
|
33
|
-
Defined in: [authentication.service.ts:23](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [authentication.service.ts:23](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L23)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **BearerTokenInterceptor**(`req`, `next`): `Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
10
10
|
|
|
11
|
-
Defined in: [bearer-token.interceptor.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [bearer-token.interceptor.ts:10](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/bearer-token.interceptor.ts#L10)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **provideAuthentication**(`service`, ...`additionalProviders`): `Provider`[]
|
|
10
10
|
|
|
11
|
-
Defined in: [provide.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [provide.ts:9](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/provide.ts#L9)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **withDisabledAuthentication**(`disabled`): `Provider`
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:27](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:27](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L27)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
> **withInitialAuthenticationState**(`state`): `Provider`
|
|
10
10
|
|
|
11
|
-
Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/provide.ts#L22)
|
|
12
12
|
|
|
13
13
|
## Parameters
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: AuthenticationAccessToken
|
|
8
8
|
|
|
9
|
-
Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L9)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05
|
|
|
22
22
|
|
|
23
23
|
> **token**: `string`
|
|
24
24
|
|
|
25
|
-
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L10)
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
@@ -30,4 +30,4 @@ Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da0
|
|
|
30
30
|
|
|
31
31
|
> `optional` **valid**: `boolean`
|
|
32
32
|
|
|
33
|
-
Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L11)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: AuthenticationEvent
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L26)
|
|
10
10
|
|
|
11
11
|
## Extends
|
|
12
12
|
|
|
@@ -22,4 +22,4 @@ Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/bl
|
|
|
22
22
|
|
|
23
23
|
> **type**: [`AuthenticationEventType`](../enumerations/AuthenticationEventType.md)
|
|
24
24
|
|
|
25
|
-
Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L27)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# Interface: IAuthenticationService
|
|
8
8
|
|
|
9
|
-
Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
9
|
+
Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L12)
|
|
10
10
|
|
|
11
11
|
## Properties
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/bl
|
|
|
14
14
|
|
|
15
15
|
> **events$**: `Observable`\<[`AuthenticationEvent`](AuthenticationEvent.md)\>
|
|
16
16
|
|
|
17
|
-
Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
17
|
+
Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L14)
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/bl
|
|
|
22
22
|
|
|
23
23
|
> **isAuthenticated$**: `Observable`\<`null` \| `boolean`\>
|
|
24
24
|
|
|
25
|
-
Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L13)
|
|
26
26
|
|
|
27
27
|
## Methods
|
|
28
28
|
|
|
@@ -30,7 +30,7 @@ Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/bl
|
|
|
30
30
|
|
|
31
31
|
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
32
32
|
|
|
33
|
-
Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
33
|
+
Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L17)
|
|
34
34
|
|
|
35
35
|
#### Returns
|
|
36
36
|
|
|
@@ -42,7 +42,7 @@ Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/bl
|
|
|
42
42
|
|
|
43
43
|
> **signOut**(): `Promise`\<`void`\>
|
|
44
44
|
|
|
45
|
-
Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
45
|
+
Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication.service.ts#L15)
|
|
46
46
|
|
|
47
47
|
#### Returns
|
|
48
48
|
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **RXAP\_AUTHENTICATION\_ACCESS\_TOKEN**: `InjectionToken`\<`BehaviorSubject`\<`null` \| [`AuthenticationAccessToken`](../interfaces/AuthenticationAccessToken.md)\>\>
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L14)
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **RXAP\_AUTHENTICATION\_DEACTIVATED**: `InjectionToken`\<`boolean`\>
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L7)
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
|
|
9
9
|
> `const` **RXAP\_INITIAL\_AUTHENTICATION\_STATE**: `InjectionToken`\<`boolean`\>
|
|
10
10
|
|
|
11
|
-
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
11
|
+
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/tokens.ts#L22)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: AuthenticationRoutingService
|
|
4
4
|
|
|
5
|
-
Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication-routing.service.ts#L14)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packa
|
|
|
10
10
|
|
|
11
11
|
> **new AuthenticationRoutingService**(`router`, `authenticationService`, `deactivated`): [`AuthenticationRoutingService`](../wiki/Class.AuthenticationRoutingService)
|
|
12
12
|
|
|
13
|
-
Defined in: [authentication-routing.service.ts:16](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [authentication-routing.service.ts:16](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/authentication-routing.service.ts#L16)
|
|
14
14
|
|
|
15
15
|
#### Parameters
|
|
16
16
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: DisabledAuthenticationService
|
|
4
4
|
|
|
5
|
-
Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L9)
|
|
6
6
|
|
|
7
7
|
## Implements
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@ Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packa
|
|
|
24
24
|
|
|
25
25
|
> `readonly` **events$**: `Observable`\<`never`\> = `EMPTY`
|
|
26
26
|
|
|
27
|
-
Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
27
|
+
Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L12)
|
|
28
28
|
|
|
29
29
|
#### Implementation of
|
|
30
30
|
|
|
@@ -36,7 +36,7 @@ Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/pack
|
|
|
36
36
|
|
|
37
37
|
> `readonly` **isAuthenticated$**: `Observable`\<`boolean`\>
|
|
38
38
|
|
|
39
|
-
Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
39
|
+
Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L11)
|
|
40
40
|
|
|
41
41
|
#### Implementation of
|
|
42
42
|
|
|
@@ -48,7 +48,7 @@ Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/pack
|
|
|
48
48
|
|
|
49
49
|
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
50
50
|
|
|
51
|
-
Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/packages/-/blob/
|
|
51
|
+
Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L18)
|
|
52
52
|
|
|
53
53
|
#### Returns
|
|
54
54
|
|
|
@@ -64,7 +64,7 @@ Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/pack
|
|
|
64
64
|
|
|
65
65
|
> **signOut**(): `Promise`\<`void`\>
|
|
66
66
|
|
|
67
|
-
Defined in: [disabled-authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
67
|
+
Defined in: [disabled-authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L14)
|
|
68
68
|
|
|
69
69
|
#### Returns
|
|
70
70
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Class: RegisterService
|
|
4
4
|
|
|
5
|
-
Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L5)
|
|
6
6
|
|
|
7
7
|
## Constructors
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/969f
|
|
|
10
10
|
|
|
11
11
|
> **new RegisterService**(): [`RegisterService`](../wiki/Class.RegisterService)
|
|
12
12
|
|
|
13
|
-
Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L7)
|
|
14
14
|
|
|
15
15
|
#### Returns
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/969f
|
|
|
22
22
|
|
|
23
23
|
> **register**(`email`, `password`): `Promise`\<`boolean`\>
|
|
24
24
|
|
|
25
|
-
Defined in: [register.service.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
25
|
+
Defined in: [register.service.ts:11](https://gitlab.com/rxap/packages/-/blob/9978b20018f781a5952245bfe2db15ab7612611c/packages/angular/authentication/src/lib/register.service.ts#L11)
|
|
26
26
|
|
|
27
27
|
#### Parameters
|
|
28
28
|
|