@rxap/authentication 19.0.1-dev.4 → 19.0.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.
Files changed (103) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +24 -26
  3. package/compodoc/changelog.html +9 -0
  4. package/compodoc/dependencies.html +1 -1
  5. package/compodoc/index.html +26 -20
  6. package/compodoc/js/search/search_index.js +2 -2
  7. package/compodoc/miscellaneous/variables.html +26 -0
  8. package/compodoc/properties.html +3 -2
  9. package/docs/documentation.json +357 -676
  10. package/docs/html/assets/hierarchy.js +1 -0
  11. package/docs/{assets → html/assets}/highlight.css +13 -6
  12. package/docs/html/assets/icons.js +18 -0
  13. package/docs/html/assets/icons.svg +1 -0
  14. package/docs/{assets → html/assets}/main.js +5 -4
  15. package/docs/html/assets/navigation.js +1 -0
  16. package/docs/html/assets/search.js +1 -0
  17. package/docs/html/assets/style.css +1611 -0
  18. package/docs/html/classes/AuthenticationRoutingService.html +2 -0
  19. package/docs/html/classes/DisabledAuthenticationService.html +6 -0
  20. package/docs/html/classes/RegisterService.html +3 -0
  21. package/docs/html/classes/RxapAuthenticationGuard.html +7 -0
  22. package/docs/html/classes/RxapAuthenticationService.html +6 -0
  23. package/docs/html/classes/SignOutDirective.html +5 -0
  24. package/docs/html/enums/AuthenticationEventType.html +4 -0
  25. package/docs/html/functions/BearerTokenInterceptor.html +1 -0
  26. package/docs/html/functions/provideAuthentication.html +1 -0
  27. package/docs/html/functions/withDisabledAuthentication.html +1 -0
  28. package/docs/html/functions/withInitialAuthenticationState.html +1 -0
  29. package/docs/html/hierarchy.html +1 -0
  30. package/docs/html/index.html +33 -0
  31. package/docs/html/interfaces/AuthenticationAccessToken.html +3 -0
  32. package/docs/html/interfaces/AuthenticationEvent.html +2 -0
  33. package/docs/html/interfaces/IAuthenticationService.html +5 -0
  34. package/docs/html/modules.html +1 -0
  35. package/docs/html/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +1 -0
  36. package/docs/html/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +1 -0
  37. package/docs/html/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +1 -0
  38. package/docs/markdown/README.md +37 -0
  39. package/docs/markdown/classes/AuthenticationRoutingService.md +35 -0
  40. package/docs/markdown/classes/DisabledAuthenticationService.md +79 -0
  41. package/docs/markdown/classes/RegisterService.md +43 -0
  42. package/docs/markdown/classes/RxapAuthenticationGuard.md +103 -0
  43. package/docs/markdown/classes/RxapAuthenticationService.md +81 -0
  44. package/docs/markdown/classes/SignOutDirective.md +55 -0
  45. package/docs/markdown/enumerations/AuthenticationEventType.md +33 -0
  46. package/docs/markdown/functions/BearerTokenInterceptor.md +25 -0
  47. package/docs/markdown/functions/provideAuthentication.md +25 -0
  48. package/docs/markdown/functions/withDisabledAuthentication.md +21 -0
  49. package/docs/markdown/functions/withInitialAuthenticationState.md +21 -0
  50. package/docs/markdown/globals.md +37 -0
  51. package/docs/markdown/interfaces/AuthenticationAccessToken.md +33 -0
  52. package/docs/markdown/interfaces/AuthenticationEvent.md +25 -0
  53. package/docs/markdown/interfaces/IAuthenticationService.md +49 -0
  54. package/docs/markdown/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md +11 -0
  55. package/docs/markdown/variables/RXAP_AUTHENTICATION_DEACTIVATED.md +11 -0
  56. package/docs/markdown/variables/RXAP_INITIAL_AUTHENTICATION_STATE.md +11 -0
  57. package/docs/wiki/Class.AuthenticationRoutingService.md +31 -0
  58. package/docs/wiki/Class.DisabledAuthenticationService.md +75 -0
  59. package/docs/wiki/Class.RegisterService.md +39 -0
  60. package/docs/wiki/Class.RxapAuthenticationGuard.md +99 -0
  61. package/docs/wiki/Class.RxapAuthenticationService.md +77 -0
  62. package/docs/wiki/Class.SignOutDirective.md +51 -0
  63. package/docs/wiki/Enumeration.AuthenticationEventType.md +29 -0
  64. package/docs/wiki/Function.BearerTokenInterceptor.md +21 -0
  65. package/docs/wiki/Function.provideAuthentication.md +21 -0
  66. package/docs/wiki/Function.withDisabledAuthentication.md +17 -0
  67. package/docs/wiki/Function.withInitialAuthenticationState.md +17 -0
  68. package/docs/wiki/Home.md +33 -0
  69. package/docs/wiki/Interface.AuthenticationAccessToken.md +29 -0
  70. package/docs/wiki/Interface.AuthenticationEvent.md +21 -0
  71. package/docs/wiki/Interface.IAuthenticationService.md +45 -0
  72. package/docs/wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN.md +7 -0
  73. package/docs/wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED.md +7 -0
  74. package/docs/wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE.md +7 -0
  75. package/docs/wiki/_Sidebar.md +33 -0
  76. package/docs/wiki/globals.md +33 -0
  77. package/package.json +6 -5
  78. package/docs/assets/icons.js +0 -15
  79. package/docs/assets/icons.svg +0 -1
  80. package/docs/assets/navigation.js +0 -1
  81. package/docs/assets/search.js +0 -1
  82. package/docs/assets/style.css +0 -1412
  83. package/docs/classes/AuthenticationRoutingService.html +0 -5
  84. package/docs/classes/DisabledAuthenticationService.html +0 -6
  85. package/docs/classes/RegisterService.html +0 -3
  86. package/docs/classes/RxapAuthenticationGuard.html +0 -10
  87. package/docs/classes/RxapAuthenticationService.html +0 -7
  88. package/docs/classes/SignOutDirective.html +0 -6
  89. package/docs/enums/AuthenticationEventType.html +0 -4
  90. package/docs/functions/BearerTokenInterceptor.html +0 -1
  91. package/docs/functions/provideAuthentication.html +0 -1
  92. package/docs/functions/withDisabledAuthentication.html +0 -1
  93. package/docs/functions/withInitialAuthenticationState.html +0 -1
  94. package/docs/hierarchy.html +0 -1
  95. package/docs/index.html +0 -28
  96. package/docs/interfaces/AuthenticationAccessToken.html +0 -3
  97. package/docs/interfaces/AuthenticationEvent.html +0 -2
  98. package/docs/interfaces/IAuthenticationService.html +0 -5
  99. package/docs/modules.html +0 -18
  100. package/docs/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +0 -1
  101. package/docs/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +0 -1
  102. package/docs/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +0 -1
  103. /package/docs/{.nojekyll → html/.nojekyll} +0 -0
@@ -0,0 +1,39 @@
1
+ [@rxap/authentication](../wiki/globals) / RegisterService
2
+
3
+ # Class: RegisterService
4
+
5
+ Defined in: [register.service.ts:5](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/register.service.ts#L5)
6
+
7
+ ## Constructors
8
+
9
+ ### new RegisterService()
10
+
11
+ > **new RegisterService**(): [`RegisterService`](../wiki/Class.RegisterService)
12
+
13
+ Defined in: [register.service.ts:7](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/register.service.ts#L7)
14
+
15
+ #### Returns
16
+
17
+ [`RegisterService`](../wiki/Class.RegisterService)
18
+
19
+ ## Methods
20
+
21
+ ### register()
22
+
23
+ > **register**(`email`, `password`): `Promise`\<`boolean`\>
24
+
25
+ Defined in: [register.service.ts:11](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/register.service.ts#L11)
26
+
27
+ #### Parameters
28
+
29
+ ##### email
30
+
31
+ `string`
32
+
33
+ ##### password
34
+
35
+ `string`
36
+
37
+ #### Returns
38
+
39
+ `Promise`\<`boolean`\>
@@ -0,0 +1,99 @@
1
+ [@rxap/authentication](../wiki/globals) / RxapAuthenticationGuard
2
+
3
+ # Class: RxapAuthenticationGuard
4
+
5
+ Defined in: [authentication.guard.ts:16](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L16)
6
+
7
+ ## Constructors
8
+
9
+ ### new RxapAuthenticationGuard()
10
+
11
+ > **new RxapAuthenticationGuard**(`authentication`, `router`, `deactivated`): [`RxapAuthenticationGuard`](../wiki/Class.RxapAuthenticationGuard)
12
+
13
+ Defined in: [authentication.guard.ts:20](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L20)
14
+
15
+ #### Parameters
16
+
17
+ ##### authentication
18
+
19
+ [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
20
+
21
+ ##### router
22
+
23
+ `Router`
24
+
25
+ ##### deactivated
26
+
27
+ `null` | `boolean`
28
+
29
+ #### Returns
30
+
31
+ [`RxapAuthenticationGuard`](../wiki/Class.RxapAuthenticationGuard)
32
+
33
+ ## Properties
34
+
35
+ ### authentication
36
+
37
+ > **authentication**: [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
38
+
39
+ Defined in: [authentication.guard.ts:22](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L22)
40
+
41
+ ***
42
+
43
+ ### lastUrl
44
+
45
+ > **lastUrl**: `null` \| `string` = `null`
46
+
47
+ Defined in: [authentication.guard.ts:18](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L18)
48
+
49
+ ***
50
+
51
+ ### router
52
+
53
+ > **router**: `Router`
54
+
55
+ Defined in: [authentication.guard.ts:24](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L24)
56
+
57
+ ## Methods
58
+
59
+ ### canActivate()
60
+
61
+ > **canActivate**(`route`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
62
+
63
+ Defined in: [authentication.guard.ts:31](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L31)
64
+
65
+ #### Parameters
66
+
67
+ ##### route
68
+
69
+ `ActivatedRouteSnapshot`
70
+
71
+ ##### state
72
+
73
+ `RouterStateSnapshot`
74
+
75
+ #### Returns
76
+
77
+ `Promise`\<`boolean` \| `UrlTree`\>
78
+
79
+ ***
80
+
81
+ ### canActivateChild()
82
+
83
+ > **canActivateChild**(`childRoute`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
84
+
85
+ Defined in: [authentication.guard.ts:39](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.guard.ts#L39)
86
+
87
+ #### Parameters
88
+
89
+ ##### childRoute
90
+
91
+ `ActivatedRouteSnapshot`
92
+
93
+ ##### state
94
+
95
+ `RouterStateSnapshot`
96
+
97
+ #### Returns
98
+
99
+ `Promise`\<`boolean` \| `UrlTree`\>
@@ -0,0 +1,77 @@
1
+ [@rxap/authentication](../wiki/globals) / RxapAuthenticationService
2
+
3
+ # Class: RxapAuthenticationService
4
+
5
+ Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L31)
6
+
7
+ ## Implements
8
+
9
+ - [`IAuthenticationService`](../wiki/Interface.IAuthenticationService)
10
+
11
+ ## Constructors
12
+
13
+ ### new RxapAuthenticationService()
14
+
15
+ > **new RxapAuthenticationService**(): [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
16
+
17
+ Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L39)
18
+
19
+ #### Returns
20
+
21
+ [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
22
+
23
+ ## Properties
24
+
25
+ ### events$
26
+
27
+ > `readonly` **events$**: `ReplaySubject`\<[`AuthenticationEvent`](../wiki/Interface.AuthenticationEvent)\>
28
+
29
+ Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L35)
30
+
31
+ #### Implementation of
32
+
33
+ [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`events$`](../wiki/Interface.IAuthenticationService#events$)
34
+
35
+ ***
36
+
37
+ ### isAuthenticated$
38
+
39
+ > **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\>
40
+
41
+ Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L33)
42
+
43
+ #### Implementation of
44
+
45
+ [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated$`](../wiki/Interface.IAuthenticationService#isauthenticated$)
46
+
47
+ ## Methods
48
+
49
+ ### isAuthenticated()
50
+
51
+ > **isAuthenticated**(): `Promise`\<`boolean`\>
52
+
53
+ Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L49)
54
+
55
+ #### Returns
56
+
57
+ `Promise`\<`boolean`\>
58
+
59
+ #### Implementation of
60
+
61
+ [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated`](../wiki/Interface.IAuthenticationService#isauthenticated)
62
+
63
+ ***
64
+
65
+ ### signOut()
66
+
67
+ > **signOut**(): `Promise`\<`void`\>
68
+
69
+ Defined in: [authentication.service.ts:43](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L43)
70
+
71
+ #### Returns
72
+
73
+ `Promise`\<`void`\>
74
+
75
+ #### Implementation of
76
+
77
+ [`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`signOut`](../wiki/Interface.IAuthenticationService#signout)
@@ -0,0 +1,51 @@
1
+ [@rxap/authentication](../wiki/globals) / SignOutDirective
2
+
3
+ # Class: SignOutDirective
4
+
5
+ Defined in: [sign-out.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/sign-out.directive.ts#L13)
6
+
7
+ ## Constructors
8
+
9
+ ### new SignOutDirective()
10
+
11
+ > **new SignOutDirective**(`auth`): [`SignOutDirective`](../wiki/Class.SignOutDirective)
12
+
13
+ Defined in: [sign-out.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/sign-out.directive.ts#L21)
14
+
15
+ #### Parameters
16
+
17
+ ##### auth
18
+
19
+ [`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
20
+
21
+ #### Returns
22
+
23
+ [`SignOutDirective`](../wiki/Class.SignOutDirective)
24
+
25
+ ## Properties
26
+
27
+ ### failure
28
+
29
+ > **failure**: `EventEmitter`\<`Error`\>
30
+
31
+ Defined in: [sign-out.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/sign-out.directive.ts#L19)
32
+
33
+ ***
34
+
35
+ ### successful
36
+
37
+ > **successful**: `EventEmitter`\<`void`\>
38
+
39
+ Defined in: [sign-out.directive.ts:16](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/sign-out.directive.ts#L16)
40
+
41
+ ## Methods
42
+
43
+ ### onClick()
44
+
45
+ > **onClick**(): `Promise`\<`void`\>
46
+
47
+ Defined in: [sign-out.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/sign-out.directive.ts#L25)
48
+
49
+ #### Returns
50
+
51
+ `Promise`\<`void`\>
@@ -0,0 +1,29 @@
1
+ [@rxap/authentication](../wiki/globals) / AuthenticationEventType
2
+
3
+ # Enumeration: AuthenticationEventType
4
+
5
+ Defined in: [authentication.service.ts:20](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L20)
6
+
7
+ ## Enumeration Members
8
+
9
+ ### OnAuthError
10
+
11
+ > **OnAuthError**: `"on-auth-error"`
12
+
13
+ Defined in: [authentication.service.ts:22](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L22)
14
+
15
+ ***
16
+
17
+ ### OnAuthSuccess
18
+
19
+ > **OnAuthSuccess**: `"on-auth-success"`
20
+
21
+ Defined in: [authentication.service.ts:21](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L21)
22
+
23
+ ***
24
+
25
+ ### OnLogout
26
+
27
+ > **OnLogout**: `"on-logout"`
28
+
29
+ Defined in: [authentication.service.ts:23](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L23)
@@ -0,0 +1,21 @@
1
+ [@rxap/authentication](../wiki/globals) / BearerTokenInterceptor
2
+
3
+ # Function: BearerTokenInterceptor()
4
+
5
+ > **BearerTokenInterceptor**(`req`, `next`): `Observable`\<`HttpEvent`\<`unknown`\>\>
6
+
7
+ Defined in: [bearer-token.interceptor.ts:10](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/bearer-token.interceptor.ts#L10)
8
+
9
+ ## Parameters
10
+
11
+ ### req
12
+
13
+ `HttpRequest`\<`unknown`\>
14
+
15
+ ### next
16
+
17
+ `HttpHandlerFn`
18
+
19
+ ## Returns
20
+
21
+ `Observable`\<`HttpEvent`\<`unknown`\>\>
@@ -0,0 +1,21 @@
1
+ [@rxap/authentication](../wiki/globals) / provideAuthentication
2
+
3
+ # Function: provideAuthentication()
4
+
5
+ > **provideAuthentication**(`service`, ...`additionalProviders`): `Provider`[]
6
+
7
+ Defined in: [provide.ts:9](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/provide.ts#L9)
8
+
9
+ ## Parameters
10
+
11
+ ### service
12
+
13
+ `Constructor`\<[`IAuthenticationService`](../wiki/Interface.IAuthenticationService)\>
14
+
15
+ ### additionalProviders
16
+
17
+ ...`Provider`[]
18
+
19
+ ## Returns
20
+
21
+ `Provider`[]
@@ -0,0 +1,17 @@
1
+ [@rxap/authentication](../wiki/globals) / withDisabledAuthentication
2
+
3
+ # Function: withDisabledAuthentication()
4
+
5
+ > **withDisabledAuthentication**(`disabled`): `Provider`
6
+
7
+ Defined in: [tokens.ts:27](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L27)
8
+
9
+ ## Parameters
10
+
11
+ ### disabled
12
+
13
+ `boolean` = `true`
14
+
15
+ ## Returns
16
+
17
+ `Provider`
@@ -0,0 +1,17 @@
1
+ [@rxap/authentication](../wiki/globals) / withInitialAuthenticationState
2
+
3
+ # Function: withInitialAuthenticationState()
4
+
5
+ > **withInitialAuthenticationState**(`state`): `Provider`
6
+
7
+ Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/provide.ts#L22)
8
+
9
+ ## Parameters
10
+
11
+ ### state
12
+
13
+ `boolean`
14
+
15
+ ## Returns
16
+
17
+ `Provider`
@@ -0,0 +1,33 @@
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
+
3
+ [![npm version](https://img.shields.io/npm/v/@rxap/authentication?style=flat-square)](https://www.npmjs.com/package/@rxap/authentication)
4
+ [![commitizen
5
+ friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square)](https://commitizen.github.io/cz-cli/)
6
+ [![styled with
7
+ prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
8
+ ![Libraries.io dependency status for latest release, scoped npm
9
+ package](https://img.shields.io/librariesio/release/npm/@rxap/authentication)
10
+ ![npm](https://img.shields.io/npm/dm/@rxap/authentication)
11
+ ![NPM](https://img.shields.io/npm/l/@rxap/authentication) -
12
+ [Installation](../wiki/#installation)
13
+ - [Generators](../wiki/#generators)
14
+ - [init](../wiki/#init)
15
+
16
+ # Installation **Add the package to your workspace:** ```bash yarn add
17
+ @rxap/authentication
18
+ ```
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
+ # Generators
25
+
26
+ ##
27
+ init
28
+ >
29
+ Initialize the package in the workspace
30
+
31
+ ```bash nx g
32
+ @rxap/authentication:init
33
+ ```
@@ -0,0 +1,29 @@
1
+ [@rxap/authentication](../wiki/globals) / AuthenticationAccessToken
2
+
3
+ # Interface: AuthenticationAccessToken
4
+
5
+ Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L9)
6
+
7
+ ## Extends
8
+
9
+ - `Record`\<`string`, `any`\>
10
+
11
+ ## Indexable
12
+
13
+ \[`key`: `string`\]: `any`
14
+
15
+ ## Properties
16
+
17
+ ### token
18
+
19
+ > **token**: `string`
20
+
21
+ Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L10)
22
+
23
+ ***
24
+
25
+ ### valid?
26
+
27
+ > `optional` **valid**: `boolean`
28
+
29
+ Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L11)
@@ -0,0 +1,21 @@
1
+ [@rxap/authentication](../wiki/globals) / AuthenticationEvent
2
+
3
+ # Interface: AuthenticationEvent
4
+
5
+ Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L26)
6
+
7
+ ## Extends
8
+
9
+ - `Record`\<`string`, `any`\>
10
+
11
+ ## Indexable
12
+
13
+ \[`key`: `string`\]: `any`
14
+
15
+ ## Properties
16
+
17
+ ### type
18
+
19
+ > **type**: [`AuthenticationEventType`](../wiki/Enumeration.AuthenticationEventType)
20
+
21
+ Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L27)
@@ -0,0 +1,45 @@
1
+ [@rxap/authentication](../wiki/globals) / IAuthenticationService
2
+
3
+ # Interface: IAuthenticationService
4
+
5
+ Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L12)
6
+
7
+ ## Properties
8
+
9
+ ### events$
10
+
11
+ > **events$**: `Observable`\<[`AuthenticationEvent`](../wiki/Interface.AuthenticationEvent)\>
12
+
13
+ Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L14)
14
+
15
+ ***
16
+
17
+ ### isAuthenticated$
18
+
19
+ > **isAuthenticated$**: `Observable`\<`null` \| `boolean`\>
20
+
21
+ Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L13)
22
+
23
+ ## Methods
24
+
25
+ ### isAuthenticated()
26
+
27
+ > **isAuthenticated**(): `Promise`\<`boolean`\>
28
+
29
+ Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L17)
30
+
31
+ #### Returns
32
+
33
+ `Promise`\<`boolean`\>
34
+
35
+ ***
36
+
37
+ ### signOut()
38
+
39
+ > **signOut**(): `Promise`\<`void`\>
40
+
41
+ Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/authentication.service.ts#L15)
42
+
43
+ #### Returns
44
+
45
+ `Promise`\<`void`\>
@@ -0,0 +1,7 @@
1
+ [@rxap/authentication](../wiki/globals) / RXAP\_AUTHENTICATION\_ACCESS\_TOKEN
2
+
3
+ # Variable: RXAP\_AUTHENTICATION\_ACCESS\_TOKEN
4
+
5
+ > `const` **RXAP\_AUTHENTICATION\_ACCESS\_TOKEN**: `InjectionToken`\<`BehaviorSubject`\<`null` \| [`AuthenticationAccessToken`](../wiki/Interface.AuthenticationAccessToken)\>\>
6
+
7
+ Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L14)
@@ -0,0 +1,7 @@
1
+ [@rxap/authentication](../wiki/globals) / RXAP\_AUTHENTICATION\_DEACTIVATED
2
+
3
+ # Variable: RXAP\_AUTHENTICATION\_DEACTIVATED
4
+
5
+ > `const` **RXAP\_AUTHENTICATION\_DEACTIVATED**: `InjectionToken`\<`boolean`\>
6
+
7
+ Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L7)
@@ -0,0 +1,7 @@
1
+ [@rxap/authentication](../wiki/globals) / RXAP\_INITIAL\_AUTHENTICATION\_STATE
2
+
3
+ # Variable: RXAP\_INITIAL\_AUTHENTICATION\_STATE
4
+
5
+ > `const` **RXAP\_INITIAL\_AUTHENTICATION\_STATE**: `InjectionToken`\<`boolean`\>
6
+
7
+ Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/753c877fe1a5c2fcfa737310f6e99fd1371f9b4d/packages/angular/authentication/src/lib/tokens.ts#L22)
@@ -0,0 +1,33 @@
1
+ ## API
2
+
3
+ ### Enumerations
4
+
5
+ - [AuthenticationEventType](../wiki/Enumeration.AuthenticationEventType)
6
+
7
+ ### Classes
8
+
9
+ - [AuthenticationRoutingService](../wiki/Class.AuthenticationRoutingService)
10
+ - [DisabledAuthenticationService](../wiki/Class.DisabledAuthenticationService)
11
+ - [RegisterService](../wiki/Class.RegisterService)
12
+ - [RxapAuthenticationGuard](../wiki/Class.RxapAuthenticationGuard)
13
+ - [RxapAuthenticationService](../wiki/Class.RxapAuthenticationService)
14
+ - [SignOutDirective](../wiki/Class.SignOutDirective)
15
+
16
+ ### Interfaces
17
+
18
+ - [AuthenticationAccessToken](../wiki/Interface.AuthenticationAccessToken)
19
+ - [AuthenticationEvent](../wiki/Interface.AuthenticationEvent)
20
+ - [IAuthenticationService](../wiki/Interface.IAuthenticationService)
21
+
22
+ ### Variables
23
+
24
+ - [RXAP_AUTHENTICATION_ACCESS_TOKEN](../wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN)
25
+ - [RXAP_AUTHENTICATION_DEACTIVATED](../wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED)
26
+ - [RXAP_INITIAL_AUTHENTICATION_STATE](../wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE)
27
+
28
+ ### Functions
29
+
30
+ - [BearerTokenInterceptor](../wiki/Function.BearerTokenInterceptor)
31
+ - [provideAuthentication](../wiki/Function.provideAuthentication)
32
+ - [withDisabledAuthentication](../wiki/Function.withDisabledAuthentication)
33
+ - [withInitialAuthenticationState](../wiki/Function.withInitialAuthenticationState)
@@ -0,0 +1,33 @@
1
+ # @rxap/authentication
2
+
3
+ ## Enumerations
4
+
5
+ - [AuthenticationEventType](../wiki/Enumeration.AuthenticationEventType)
6
+
7
+ ## Classes
8
+
9
+ - [AuthenticationRoutingService](../wiki/Class.AuthenticationRoutingService)
10
+ - [DisabledAuthenticationService](../wiki/Class.DisabledAuthenticationService)
11
+ - [RegisterService](../wiki/Class.RegisterService)
12
+ - [RxapAuthenticationGuard](../wiki/Class.RxapAuthenticationGuard)
13
+ - [RxapAuthenticationService](../wiki/Class.RxapAuthenticationService)
14
+ - [SignOutDirective](../wiki/Class.SignOutDirective)
15
+
16
+ ## Interfaces
17
+
18
+ - [AuthenticationAccessToken](../wiki/Interface.AuthenticationAccessToken)
19
+ - [AuthenticationEvent](../wiki/Interface.AuthenticationEvent)
20
+ - [IAuthenticationService](../wiki/Interface.IAuthenticationService)
21
+
22
+ ## Variables
23
+
24
+ - [RXAP\_AUTHENTICATION\_ACCESS\_TOKEN](../wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN)
25
+ - [RXAP\_AUTHENTICATION\_DEACTIVATED](../wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED)
26
+ - [RXAP\_INITIAL\_AUTHENTICATION\_STATE](../wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE)
27
+
28
+ ## Functions
29
+
30
+ - [BearerTokenInterceptor](../wiki/Function.BearerTokenInterceptor)
31
+ - [provideAuthentication](../wiki/Function.provideAuthentication)
32
+ - [withDisabledAuthentication](../wiki/Function.withDisabledAuthentication)
33
+ - [withInitialAuthenticationState](../wiki/Function.withInitialAuthenticationState)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
- "version": "19.0.1-dev.4",
2
+ "version": "19.0.1",
3
3
  "name": "@rxap/authentication",
4
- "description": "A collection of components and services to simplify the authentication process implementation.",
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",
6
6
  "dependencies": {
7
7
  "@nx/devkit": "20.4.2",
@@ -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.2-dev.3",
14
+ "@rxap/utilities": "^16.4.2-dev.4",
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.2-dev.3"
56
+ "version": "16.4.2-dev.4"
57
57
  }
58
58
  ]
59
59
  },
@@ -66,8 +66,9 @@
66
66
  "url": "https://gitlab.com/rxap/packages.git",
67
67
  "directory": "packages/angular/authentication"
68
68
  },
69
+ "schematics": "./generators.json",
69
70
  "sideEffects": false,
70
- "gitHead": "3c5aef907af80a815e7c9a404878c2eda2596cf4",
71
+ "gitHead": "753c877fe1a5c2fcfa737310f6e99fd1371f9b4d",
71
72
  "module": "fesm2022/rxap-authentication.mjs",
72
73
  "typings": "index.d.ts",
73
74
  "exports": {