@rxap/authentication 19.0.1 → 19.0.2-dev.1
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 +10 -0
- package/README.md +25 -23
- package/compodoc/changelog.html +7 -0
- package/compodoc/dependencies.html +1 -1
- package/compodoc/index.html +15 -21
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +77 -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/hierarchy.html +1 -1
- package/docs/html/index.html +23 -22
- 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/modules.html +1 -1
- 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 +26 -24
- package/docs/markdown/classes/AuthenticationRoutingService.md +3 -3
- package/docs/markdown/classes/DisabledAuthenticationService.md +6 -6
- package/docs/markdown/classes/RegisterService.md +4 -4
- package/docs/markdown/classes/RxapAuthenticationGuard.md +8 -8
- package/docs/markdown/classes/RxapAuthenticationService.md +7 -7
- package/docs/markdown/classes/SignOutDirective.md +6 -6
- package/docs/markdown/enumerations/AuthenticationEventType.md +5 -5
- package/docs/markdown/functions/BearerTokenInterceptor.md +2 -2
- package/docs/markdown/functions/provideAuthentication.md +2 -2
- package/docs/markdown/functions/withDisabledAuthentication.md +2 -2
- package/docs/markdown/functions/withInitialAuthenticationState.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/AuthenticationAccessToken.md +4 -4
- package/docs/markdown/interfaces/AuthenticationEvent.md +3 -3
- package/docs/markdown/interfaces/IAuthenticationService.md +6 -6
- package/docs/markdown/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md +2 -2
- package/docs/markdown/variables/RXAP_AUTHENTICATION_DEACTIVATED.md +2 -2
- package/docs/markdown/variables/RXAP_INITIAL_AUTHENTICATION_STATE.md +2 -2
- 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/docs/wiki/globals.md +1 -1
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **withInitialAuthenticationState**(`state`): `Provider`
|
|
6
6
|
|
|
7
|
-
Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/provide.ts#L22)
|
|
8
8
|
|
|
9
9
|
## Parameters
|
|
10
10
|
|
package/docs/wiki/Home.md
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
1
|
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.
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@rxap/authentication)
|
|
4
|
-
[](https://github.com/prettier/prettier)
|
|
8
|
-

|
|
4
|
+
[](https://commitizen.github.io/cz-cli/)
|
|
5
|
+
[](https://github.com/prettier/prettier)
|
|
6
|
+

|
|
10
7
|

|
|
11
|
-

|
|
12
|
-
|
|
8
|
+

|
|
9
|
+
|
|
10
|
+
- [Installation](../wiki/#installation)
|
|
13
11
|
- [Generators](../wiki/#generators)
|
|
14
|
-
|
|
12
|
+
- [init](../wiki/#init)
|
|
13
|
+
|
|
14
|
+
# Installation
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
**Add the package to your workspace:**
|
|
17
|
+
```bash
|
|
18
|
+
yarn add @rxap/authentication
|
|
19
|
+
```
|
|
20
|
+
**Install peer dependencies:**
|
|
21
|
+
```bash
|
|
22
|
+
yarn add @angular/common@^19.1.3 @angular/core@^19.1.3 @angular/router@^19.1.3 @rxap/utilities@^16.4.3-dev.0 rxjs@^7.8.1
|
|
23
|
+
```
|
|
24
|
+
**Execute the init generator:**
|
|
25
|
+
```bash
|
|
26
|
+
yarn nx g @rxap/authentication:init
|
|
18
27
|
```
|
|
19
|
-
**Install peer dependencies:** ```bash yarn add
|
|
20
|
-
@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
|
|
21
|
-
```
|
|
22
|
-
**Execute the init generator:** ```bash yarn nx g
|
|
23
|
-
@rxap/authentication:init ```
|
|
24
28
|
# Generators
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
>
|
|
29
|
-
Initialize the package in the workspace
|
|
30
|
+
## init
|
|
31
|
+
> Initialize the package in the workspace
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
```bash
|
|
34
|
+
nx g @rxap/authentication:init
|
|
35
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: AuthenticationAccessToken
|
|
4
4
|
|
|
5
|
-
Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L9)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -18,7 +18,7 @@ Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2
|
|
|
18
18
|
|
|
19
19
|
> **token**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L10)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c
|
|
|
26
26
|
|
|
27
27
|
> `optional` **valid**: `boolean`
|
|
28
28
|
|
|
29
|
-
Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L11)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: AuthenticationEvent
|
|
4
4
|
|
|
5
|
-
Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L26)
|
|
6
6
|
|
|
7
7
|
## Extends
|
|
8
8
|
|
|
@@ -18,4 +18,4 @@ Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/bl
|
|
|
18
18
|
|
|
19
19
|
> **type**: [`AuthenticationEventType`](../wiki/Enumeration.AuthenticationEventType)
|
|
20
20
|
|
|
21
|
-
Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L27)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: IAuthenticationService
|
|
4
4
|
|
|
5
|
-
Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
|
|
5
|
+
Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L12)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/bl
|
|
|
10
10
|
|
|
11
11
|
> **events$**: `Observable`\<[`AuthenticationEvent`](../wiki/Interface.AuthenticationEvent)\>
|
|
12
12
|
|
|
13
|
-
Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
13
|
+
Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L14)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/bl
|
|
|
18
18
|
|
|
19
19
|
> **isAuthenticated$**: `Observable`\<`null` \| `boolean`\>
|
|
20
20
|
|
|
21
|
-
Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/
|
|
21
|
+
Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L13)
|
|
22
22
|
|
|
23
23
|
## Methods
|
|
24
24
|
|
|
@@ -26,7 +26,7 @@ Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/bl
|
|
|
26
26
|
|
|
27
27
|
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
28
28
|
|
|
29
|
-
Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/
|
|
29
|
+
Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L17)
|
|
30
30
|
|
|
31
31
|
#### Returns
|
|
32
32
|
|
|
@@ -38,7 +38,7 @@ Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/bl
|
|
|
38
38
|
|
|
39
39
|
> **signOut**(): `Promise`\<`void`\>
|
|
40
40
|
|
|
41
|
-
Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/
|
|
41
|
+
Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/authentication.service.ts#L15)
|
|
42
42
|
|
|
43
43
|
#### Returns
|
|
44
44
|
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_AUTHENTICATION\_ACCESS\_TOKEN**: `InjectionToken`\<`BehaviorSubject`\<`null` \| [`AuthenticationAccessToken`](../wiki/Interface.AuthenticationAccessToken)\>\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L14)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_AUTHENTICATION\_DEACTIVATED**: `InjectionToken`\<`boolean`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L7)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **RXAP\_INITIAL\_AUTHENTICATION\_STATE**: `InjectionToken`\<`boolean`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/
|
|
7
|
+
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/8058138ff98d9e37b711846892c79ebc45ed17d4/packages/angular/authentication/src/lib/tokens.ts#L22)
|
package/docs/wiki/globals.md
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.0.1",
|
|
2
|
+
"version": "19.0.2-dev.1",
|
|
3
3
|
"name": "@rxap/authentication",
|
|
4
4
|
"description": "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.\n",
|
|
5
5
|
"license": "GPL-3.0-or-later",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@angular/common": "^19.1.3",
|
|
12
12
|
"@angular/core": "^19.1.3",
|
|
13
13
|
"@angular/router": "^19.1.3",
|
|
14
|
-
"@rxap/utilities": "^16.4.
|
|
14
|
+
"@rxap/utilities": "^16.4.3-dev.0",
|
|
15
15
|
"rxjs": "^7.8.1"
|
|
16
16
|
},
|
|
17
17
|
"author": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"package": "@rxap/utilities",
|
|
56
|
-
"version": "16.4.
|
|
56
|
+
"version": "16.4.3-dev.0"
|
|
57
57
|
}
|
|
58
58
|
]
|
|
59
59
|
},
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"schematics": "./generators.json",
|
|
70
70
|
"sideEffects": false,
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "8058138ff98d9e37b711846892c79ebc45ed17d4",
|
|
72
72
|
"module": "fesm2022/rxap-authentication.mjs",
|
|
73
73
|
"typings": "index.d.ts",
|
|
74
74
|
"exports": {
|