@rxap/authentication 19.0.1-dev.2 → 19.0.1-dev.5
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 +12 -0
- package/README.md +24 -26
- package/compodoc/changelog.html +6 -0
- package/compodoc/dependencies.html +2 -2
- package/compodoc/index.html +26 -20
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +3 -2
- package/docs/documentation.json +357 -676
- package/docs/html/assets/hierarchy.js +1 -0
- package/docs/{assets → html/assets}/highlight.css +13 -6
- package/docs/html/assets/icons.js +18 -0
- package/docs/html/assets/icons.svg +1 -0
- package/docs/{assets → html/assets}/main.js +5 -4
- package/docs/html/assets/navigation.js +1 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1611 -0
- package/docs/html/classes/AuthenticationRoutingService.html +2 -0
- package/docs/html/classes/DisabledAuthenticationService.html +6 -0
- package/docs/html/classes/RegisterService.html +3 -0
- package/docs/html/classes/RxapAuthenticationGuard.html +7 -0
- package/docs/html/classes/RxapAuthenticationService.html +6 -0
- package/docs/html/classes/SignOutDirective.html +5 -0
- package/docs/html/enums/AuthenticationEventType.html +4 -0
- package/docs/html/functions/BearerTokenInterceptor.html +1 -0
- package/docs/html/functions/provideAuthentication.html +1 -0
- package/docs/html/functions/withDisabledAuthentication.html +1 -0
- package/docs/html/functions/withInitialAuthenticationState.html +1 -0
- package/docs/html/hierarchy.html +1 -0
- package/docs/html/index.html +33 -0
- package/docs/html/interfaces/AuthenticationAccessToken.html +3 -0
- package/docs/html/interfaces/AuthenticationEvent.html +2 -0
- package/docs/html/interfaces/IAuthenticationService.html +5 -0
- package/docs/html/modules.html +1 -0
- package/docs/html/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +1 -0
- package/docs/html/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +1 -0
- package/docs/html/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +1 -0
- package/docs/markdown/README.md +37 -0
- package/docs/markdown/classes/AuthenticationRoutingService.md +35 -0
- package/docs/markdown/classes/DisabledAuthenticationService.md +79 -0
- package/docs/markdown/classes/RegisterService.md +43 -0
- package/docs/markdown/classes/RxapAuthenticationGuard.md +103 -0
- package/docs/markdown/classes/RxapAuthenticationService.md +81 -0
- package/docs/markdown/classes/SignOutDirective.md +55 -0
- package/docs/markdown/enumerations/AuthenticationEventType.md +33 -0
- package/docs/markdown/functions/BearerTokenInterceptor.md +25 -0
- package/docs/markdown/functions/provideAuthentication.md +25 -0
- package/docs/markdown/functions/withDisabledAuthentication.md +21 -0
- package/docs/markdown/functions/withInitialAuthenticationState.md +21 -0
- package/docs/markdown/globals.md +37 -0
- package/docs/markdown/interfaces/AuthenticationAccessToken.md +33 -0
- package/docs/markdown/interfaces/AuthenticationEvent.md +25 -0
- package/docs/markdown/interfaces/IAuthenticationService.md +49 -0
- package/docs/markdown/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md +11 -0
- package/docs/markdown/variables/RXAP_AUTHENTICATION_DEACTIVATED.md +11 -0
- package/docs/markdown/variables/RXAP_INITIAL_AUTHENTICATION_STATE.md +11 -0
- package/docs/wiki/Class.AuthenticationRoutingService.md +31 -0
- package/docs/wiki/Class.DisabledAuthenticationService.md +75 -0
- package/docs/wiki/Class.RegisterService.md +39 -0
- package/docs/wiki/Class.RxapAuthenticationGuard.md +99 -0
- package/docs/wiki/Class.RxapAuthenticationService.md +77 -0
- package/docs/wiki/Class.SignOutDirective.md +51 -0
- package/docs/wiki/Enumeration.AuthenticationEventType.md +29 -0
- package/docs/wiki/Function.BearerTokenInterceptor.md +21 -0
- package/docs/wiki/Function.provideAuthentication.md +21 -0
- package/docs/wiki/Function.withDisabledAuthentication.md +17 -0
- package/docs/wiki/Function.withInitialAuthenticationState.md +17 -0
- package/docs/wiki/Home.md +33 -0
- package/docs/wiki/Interface.AuthenticationAccessToken.md +29 -0
- package/docs/wiki/Interface.AuthenticationEvent.md +21 -0
- package/docs/wiki/Interface.IAuthenticationService.md +45 -0
- package/docs/wiki/Variable.RXAP_AUTHENTICATION_ACCESS_TOKEN.md +7 -0
- package/docs/wiki/Variable.RXAP_AUTHENTICATION_DEACTIVATED.md +7 -0
- package/docs/wiki/Variable.RXAP_INITIAL_AUTHENTICATION_STATE.md +7 -0
- package/docs/wiki/_Sidebar.md +33 -0
- package/docs/wiki/globals.md +33 -0
- package/package.json +7 -6
- package/docs/assets/icons.js +0 -15
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1412
- package/docs/classes/AuthenticationRoutingService.html +0 -5
- package/docs/classes/DisabledAuthenticationService.html +0 -6
- package/docs/classes/RegisterService.html +0 -3
- package/docs/classes/RxapAuthenticationGuard.html +0 -10
- package/docs/classes/RxapAuthenticationService.html +0 -7
- package/docs/classes/SignOutDirective.html +0 -6
- package/docs/enums/AuthenticationEventType.html +0 -4
- package/docs/functions/BearerTokenInterceptor.html +0 -1
- package/docs/functions/provideAuthentication.html +0 -1
- package/docs/functions/withDisabledAuthentication.html +0 -1
- package/docs/functions/withInitialAuthenticationState.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -28
- package/docs/interfaces/AuthenticationAccessToken.html +0 -3
- package/docs/interfaces/AuthenticationEvent.html +0 -2
- package/docs/interfaces/IAuthenticationService.html +0 -5
- package/docs/modules.html +0 -18
- package/docs/variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.html +0 -1
- package/docs/variables/RXAP_AUTHENTICATION_DEACTIVATED.html +0 -1
- package/docs/variables/RXAP_INITIAL_AUTHENTICATION_STATE.html +0 -1
- /package/docs/{.nojekyll → html/.nojekyll} +0 -0
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / RxapAuthenticationGuard
|
|
6
|
+
|
|
7
|
+
# Class: RxapAuthenticationGuard
|
|
8
|
+
|
|
9
|
+
Defined in: [authentication.guard.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L16)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### new RxapAuthenticationGuard()
|
|
14
|
+
|
|
15
|
+
> **new RxapAuthenticationGuard**(`authentication`, `router`, `deactivated`): [`RxapAuthenticationGuard`](RxapAuthenticationGuard.md)
|
|
16
|
+
|
|
17
|
+
Defined in: [authentication.guard.ts:20](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L20)
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
##### authentication
|
|
22
|
+
|
|
23
|
+
[`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
24
|
+
|
|
25
|
+
##### router
|
|
26
|
+
|
|
27
|
+
`Router`
|
|
28
|
+
|
|
29
|
+
##### deactivated
|
|
30
|
+
|
|
31
|
+
`null` | `boolean`
|
|
32
|
+
|
|
33
|
+
#### Returns
|
|
34
|
+
|
|
35
|
+
[`RxapAuthenticationGuard`](RxapAuthenticationGuard.md)
|
|
36
|
+
|
|
37
|
+
## Properties
|
|
38
|
+
|
|
39
|
+
### authentication
|
|
40
|
+
|
|
41
|
+
> **authentication**: [`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
42
|
+
|
|
43
|
+
Defined in: [authentication.guard.ts:22](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L22)
|
|
44
|
+
|
|
45
|
+
***
|
|
46
|
+
|
|
47
|
+
### lastUrl
|
|
48
|
+
|
|
49
|
+
> **lastUrl**: `null` \| `string` = `null`
|
|
50
|
+
|
|
51
|
+
Defined in: [authentication.guard.ts:18](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L18)
|
|
52
|
+
|
|
53
|
+
***
|
|
54
|
+
|
|
55
|
+
### router
|
|
56
|
+
|
|
57
|
+
> **router**: `Router`
|
|
58
|
+
|
|
59
|
+
Defined in: [authentication.guard.ts:24](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L24)
|
|
60
|
+
|
|
61
|
+
## Methods
|
|
62
|
+
|
|
63
|
+
### canActivate()
|
|
64
|
+
|
|
65
|
+
> **canActivate**(`route`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
|
|
66
|
+
|
|
67
|
+
Defined in: [authentication.guard.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L31)
|
|
68
|
+
|
|
69
|
+
#### Parameters
|
|
70
|
+
|
|
71
|
+
##### route
|
|
72
|
+
|
|
73
|
+
`ActivatedRouteSnapshot`
|
|
74
|
+
|
|
75
|
+
##### state
|
|
76
|
+
|
|
77
|
+
`RouterStateSnapshot`
|
|
78
|
+
|
|
79
|
+
#### Returns
|
|
80
|
+
|
|
81
|
+
`Promise`\<`boolean` \| `UrlTree`\>
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### canActivateChild()
|
|
86
|
+
|
|
87
|
+
> **canActivateChild**(`childRoute`, `state`): `Promise`\<`boolean` \| `UrlTree`\>
|
|
88
|
+
|
|
89
|
+
Defined in: [authentication.guard.ts:39](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.guard.ts#L39)
|
|
90
|
+
|
|
91
|
+
#### Parameters
|
|
92
|
+
|
|
93
|
+
##### childRoute
|
|
94
|
+
|
|
95
|
+
`ActivatedRouteSnapshot`
|
|
96
|
+
|
|
97
|
+
##### state
|
|
98
|
+
|
|
99
|
+
`RouterStateSnapshot`
|
|
100
|
+
|
|
101
|
+
#### Returns
|
|
102
|
+
|
|
103
|
+
`Promise`\<`boolean` \| `UrlTree`\>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / RxapAuthenticationService
|
|
6
|
+
|
|
7
|
+
# Class: RxapAuthenticationService
|
|
8
|
+
|
|
9
|
+
Defined in: [authentication.service.ts:31](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L31)
|
|
10
|
+
|
|
11
|
+
## Implements
|
|
12
|
+
|
|
13
|
+
- [`IAuthenticationService`](../interfaces/IAuthenticationService.md)
|
|
14
|
+
|
|
15
|
+
## Constructors
|
|
16
|
+
|
|
17
|
+
### new RxapAuthenticationService()
|
|
18
|
+
|
|
19
|
+
> **new RxapAuthenticationService**(): [`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
20
|
+
|
|
21
|
+
Defined in: [authentication.service.ts:39](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L39)
|
|
22
|
+
|
|
23
|
+
#### Returns
|
|
24
|
+
|
|
25
|
+
[`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
26
|
+
|
|
27
|
+
## Properties
|
|
28
|
+
|
|
29
|
+
### events$
|
|
30
|
+
|
|
31
|
+
> `readonly` **events$**: `ReplaySubject`\<[`AuthenticationEvent`](../interfaces/AuthenticationEvent.md)\>
|
|
32
|
+
|
|
33
|
+
Defined in: [authentication.service.ts:35](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L35)
|
|
34
|
+
|
|
35
|
+
#### Implementation of
|
|
36
|
+
|
|
37
|
+
[`IAuthenticationService`](../interfaces/IAuthenticationService.md).[`events$`](../interfaces/IAuthenticationService.md#events$)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### isAuthenticated$
|
|
42
|
+
|
|
43
|
+
> **isAuthenticated$**: `BehaviorSubject`\<`null` \| `boolean`\>
|
|
44
|
+
|
|
45
|
+
Defined in: [authentication.service.ts:33](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L33)
|
|
46
|
+
|
|
47
|
+
#### Implementation of
|
|
48
|
+
|
|
49
|
+
[`IAuthenticationService`](../interfaces/IAuthenticationService.md).[`isAuthenticated$`](../interfaces/IAuthenticationService.md#isauthenticated$)
|
|
50
|
+
|
|
51
|
+
## Methods
|
|
52
|
+
|
|
53
|
+
### isAuthenticated()
|
|
54
|
+
|
|
55
|
+
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
56
|
+
|
|
57
|
+
Defined in: [authentication.service.ts:49](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L49)
|
|
58
|
+
|
|
59
|
+
#### Returns
|
|
60
|
+
|
|
61
|
+
`Promise`\<`boolean`\>
|
|
62
|
+
|
|
63
|
+
#### Implementation of
|
|
64
|
+
|
|
65
|
+
[`IAuthenticationService`](../interfaces/IAuthenticationService.md).[`isAuthenticated`](../interfaces/IAuthenticationService.md#isauthenticated)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### signOut()
|
|
70
|
+
|
|
71
|
+
> **signOut**(): `Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
Defined in: [authentication.service.ts:43](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L43)
|
|
74
|
+
|
|
75
|
+
#### Returns
|
|
76
|
+
|
|
77
|
+
`Promise`\<`void`\>
|
|
78
|
+
|
|
79
|
+
#### Implementation of
|
|
80
|
+
|
|
81
|
+
[`IAuthenticationService`](../interfaces/IAuthenticationService.md).[`signOut`](../interfaces/IAuthenticationService.md#signout)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / SignOutDirective
|
|
6
|
+
|
|
7
|
+
# Class: SignOutDirective
|
|
8
|
+
|
|
9
|
+
Defined in: [sign-out.directive.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/sign-out.directive.ts#L13)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### new SignOutDirective()
|
|
14
|
+
|
|
15
|
+
> **new SignOutDirective**(`auth`): [`SignOutDirective`](SignOutDirective.md)
|
|
16
|
+
|
|
17
|
+
Defined in: [sign-out.directive.ts:21](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/sign-out.directive.ts#L21)
|
|
18
|
+
|
|
19
|
+
#### Parameters
|
|
20
|
+
|
|
21
|
+
##### auth
|
|
22
|
+
|
|
23
|
+
[`RxapAuthenticationService`](RxapAuthenticationService.md)
|
|
24
|
+
|
|
25
|
+
#### Returns
|
|
26
|
+
|
|
27
|
+
[`SignOutDirective`](SignOutDirective.md)
|
|
28
|
+
|
|
29
|
+
## Properties
|
|
30
|
+
|
|
31
|
+
### failure
|
|
32
|
+
|
|
33
|
+
> **failure**: `EventEmitter`\<`Error`\>
|
|
34
|
+
|
|
35
|
+
Defined in: [sign-out.directive.ts:19](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/sign-out.directive.ts#L19)
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### successful
|
|
40
|
+
|
|
41
|
+
> **successful**: `EventEmitter`\<`void`\>
|
|
42
|
+
|
|
43
|
+
Defined in: [sign-out.directive.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/sign-out.directive.ts#L16)
|
|
44
|
+
|
|
45
|
+
## Methods
|
|
46
|
+
|
|
47
|
+
### onClick()
|
|
48
|
+
|
|
49
|
+
> **onClick**(): `Promise`\<`void`\>
|
|
50
|
+
|
|
51
|
+
Defined in: [sign-out.directive.ts:25](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/sign-out.directive.ts#L25)
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / AuthenticationEventType
|
|
6
|
+
|
|
7
|
+
# Enumeration: AuthenticationEventType
|
|
8
|
+
|
|
9
|
+
Defined in: [authentication.service.ts:20](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L20)
|
|
10
|
+
|
|
11
|
+
## Enumeration Members
|
|
12
|
+
|
|
13
|
+
### OnAuthError
|
|
14
|
+
|
|
15
|
+
> **OnAuthError**: `"on-auth-error"`
|
|
16
|
+
|
|
17
|
+
Defined in: [authentication.service.ts:22](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L22)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### OnAuthSuccess
|
|
22
|
+
|
|
23
|
+
> **OnAuthSuccess**: `"on-auth-success"`
|
|
24
|
+
|
|
25
|
+
Defined in: [authentication.service.ts:21](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L21)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### OnLogout
|
|
30
|
+
|
|
31
|
+
> **OnLogout**: `"on-logout"`
|
|
32
|
+
|
|
33
|
+
Defined in: [authentication.service.ts:23](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L23)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / BearerTokenInterceptor
|
|
6
|
+
|
|
7
|
+
# Function: BearerTokenInterceptor()
|
|
8
|
+
|
|
9
|
+
> **BearerTokenInterceptor**(`req`, `next`): `Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
10
|
+
|
|
11
|
+
Defined in: [bearer-token.interceptor.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/bearer-token.interceptor.ts#L10)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### req
|
|
16
|
+
|
|
17
|
+
`HttpRequest`\<`unknown`\>
|
|
18
|
+
|
|
19
|
+
### next
|
|
20
|
+
|
|
21
|
+
`HttpHandlerFn`
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`Observable`\<`HttpEvent`\<`unknown`\>\>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / provideAuthentication
|
|
6
|
+
|
|
7
|
+
# Function: provideAuthentication()
|
|
8
|
+
|
|
9
|
+
> **provideAuthentication**(`service`, ...`additionalProviders`): `Provider`[]
|
|
10
|
+
|
|
11
|
+
Defined in: [provide.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/provide.ts#L9)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### service
|
|
16
|
+
|
|
17
|
+
`Constructor`\<[`IAuthenticationService`](../interfaces/IAuthenticationService.md)\>
|
|
18
|
+
|
|
19
|
+
### additionalProviders
|
|
20
|
+
|
|
21
|
+
...`Provider`[]
|
|
22
|
+
|
|
23
|
+
## Returns
|
|
24
|
+
|
|
25
|
+
`Provider`[]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / withDisabledAuthentication
|
|
6
|
+
|
|
7
|
+
# Function: withDisabledAuthentication()
|
|
8
|
+
|
|
9
|
+
> **withDisabledAuthentication**(`disabled`): `Provider`
|
|
10
|
+
|
|
11
|
+
Defined in: [tokens.ts:27](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L27)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### disabled
|
|
16
|
+
|
|
17
|
+
`boolean` = `true`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Provider`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / withInitialAuthenticationState
|
|
6
|
+
|
|
7
|
+
# Function: withInitialAuthenticationState()
|
|
8
|
+
|
|
9
|
+
> **withInitialAuthenticationState**(`state`): `Provider`
|
|
10
|
+
|
|
11
|
+
Defined in: [provide.ts:22](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/provide.ts#L22)
|
|
12
|
+
|
|
13
|
+
## Parameters
|
|
14
|
+
|
|
15
|
+
### state
|
|
16
|
+
|
|
17
|
+
`boolean`
|
|
18
|
+
|
|
19
|
+
## Returns
|
|
20
|
+
|
|
21
|
+
`Provider`
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[**@rxap/authentication**](README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
# @rxap/authentication
|
|
6
|
+
|
|
7
|
+
## Enumerations
|
|
8
|
+
|
|
9
|
+
- [AuthenticationEventType](enumerations/AuthenticationEventType.md)
|
|
10
|
+
|
|
11
|
+
## Classes
|
|
12
|
+
|
|
13
|
+
- [AuthenticationRoutingService](classes/AuthenticationRoutingService.md)
|
|
14
|
+
- [DisabledAuthenticationService](classes/DisabledAuthenticationService.md)
|
|
15
|
+
- [RegisterService](classes/RegisterService.md)
|
|
16
|
+
- [RxapAuthenticationGuard](classes/RxapAuthenticationGuard.md)
|
|
17
|
+
- [RxapAuthenticationService](classes/RxapAuthenticationService.md)
|
|
18
|
+
- [SignOutDirective](classes/SignOutDirective.md)
|
|
19
|
+
|
|
20
|
+
## Interfaces
|
|
21
|
+
|
|
22
|
+
- [AuthenticationAccessToken](interfaces/AuthenticationAccessToken.md)
|
|
23
|
+
- [AuthenticationEvent](interfaces/AuthenticationEvent.md)
|
|
24
|
+
- [IAuthenticationService](interfaces/IAuthenticationService.md)
|
|
25
|
+
|
|
26
|
+
## Variables
|
|
27
|
+
|
|
28
|
+
- [RXAP\_AUTHENTICATION\_ACCESS\_TOKEN](variables/RXAP_AUTHENTICATION_ACCESS_TOKEN.md)
|
|
29
|
+
- [RXAP\_AUTHENTICATION\_DEACTIVATED](variables/RXAP_AUTHENTICATION_DEACTIVATED.md)
|
|
30
|
+
- [RXAP\_INITIAL\_AUTHENTICATION\_STATE](variables/RXAP_INITIAL_AUTHENTICATION_STATE.md)
|
|
31
|
+
|
|
32
|
+
## Functions
|
|
33
|
+
|
|
34
|
+
- [BearerTokenInterceptor](functions/BearerTokenInterceptor.md)
|
|
35
|
+
- [provideAuthentication](functions/provideAuthentication.md)
|
|
36
|
+
- [withDisabledAuthentication](functions/withDisabledAuthentication.md)
|
|
37
|
+
- [withInitialAuthenticationState](functions/withInitialAuthenticationState.md)
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / AuthenticationAccessToken
|
|
6
|
+
|
|
7
|
+
# Interface: AuthenticationAccessToken
|
|
8
|
+
|
|
9
|
+
Defined in: [tokens.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L9)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Record`\<`string`, `any`\>
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`key`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### token
|
|
22
|
+
|
|
23
|
+
> **token**: `string`
|
|
24
|
+
|
|
25
|
+
Defined in: [tokens.ts:10](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L10)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### valid?
|
|
30
|
+
|
|
31
|
+
> `optional` **valid**: `boolean`
|
|
32
|
+
|
|
33
|
+
Defined in: [tokens.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L11)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / AuthenticationEvent
|
|
6
|
+
|
|
7
|
+
# Interface: AuthenticationEvent
|
|
8
|
+
|
|
9
|
+
Defined in: [authentication.service.ts:26](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L26)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- `Record`\<`string`, `any`\>
|
|
14
|
+
|
|
15
|
+
## Indexable
|
|
16
|
+
|
|
17
|
+
\[`key`: `string`\]: `any`
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### type
|
|
22
|
+
|
|
23
|
+
> **type**: [`AuthenticationEventType`](../enumerations/AuthenticationEventType.md)
|
|
24
|
+
|
|
25
|
+
Defined in: [authentication.service.ts:27](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L27)
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / IAuthenticationService
|
|
6
|
+
|
|
7
|
+
# Interface: IAuthenticationService
|
|
8
|
+
|
|
9
|
+
Defined in: [authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L12)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### events$
|
|
14
|
+
|
|
15
|
+
> **events$**: `Observable`\<[`AuthenticationEvent`](AuthenticationEvent.md)\>
|
|
16
|
+
|
|
17
|
+
Defined in: [authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L14)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### isAuthenticated$
|
|
22
|
+
|
|
23
|
+
> **isAuthenticated$**: `Observable`\<`null` \| `boolean`\>
|
|
24
|
+
|
|
25
|
+
Defined in: [authentication.service.ts:13](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L13)
|
|
26
|
+
|
|
27
|
+
## Methods
|
|
28
|
+
|
|
29
|
+
### isAuthenticated()
|
|
30
|
+
|
|
31
|
+
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
32
|
+
|
|
33
|
+
Defined in: [authentication.service.ts:17](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L17)
|
|
34
|
+
|
|
35
|
+
#### Returns
|
|
36
|
+
|
|
37
|
+
`Promise`\<`boolean`\>
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### signOut()
|
|
42
|
+
|
|
43
|
+
> **signOut**(): `Promise`\<`void`\>
|
|
44
|
+
|
|
45
|
+
Defined in: [authentication.service.ts:15](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication.service.ts#L15)
|
|
46
|
+
|
|
47
|
+
#### Returns
|
|
48
|
+
|
|
49
|
+
`Promise`\<`void`\>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / RXAP\_AUTHENTICATION\_ACCESS\_TOKEN
|
|
6
|
+
|
|
7
|
+
# Variable: RXAP\_AUTHENTICATION\_ACCESS\_TOKEN
|
|
8
|
+
|
|
9
|
+
> `const` **RXAP\_AUTHENTICATION\_ACCESS\_TOKEN**: `InjectionToken`\<`BehaviorSubject`\<`null` \| [`AuthenticationAccessToken`](../interfaces/AuthenticationAccessToken.md)\>\>
|
|
10
|
+
|
|
11
|
+
Defined in: [tokens.ts:14](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L14)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / RXAP\_AUTHENTICATION\_DEACTIVATED
|
|
6
|
+
|
|
7
|
+
# Variable: RXAP\_AUTHENTICATION\_DEACTIVATED
|
|
8
|
+
|
|
9
|
+
> `const` **RXAP\_AUTHENTICATION\_DEACTIVATED**: `InjectionToken`\<`boolean`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [tokens.ts:7](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L7)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
[**@rxap/authentication**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@rxap/authentication](../globals.md) / RXAP\_INITIAL\_AUTHENTICATION\_STATE
|
|
6
|
+
|
|
7
|
+
# Variable: RXAP\_INITIAL\_AUTHENTICATION\_STATE
|
|
8
|
+
|
|
9
|
+
> `const` **RXAP\_INITIAL\_AUTHENTICATION\_STATE**: `InjectionToken`\<`boolean`\>
|
|
10
|
+
|
|
11
|
+
Defined in: [tokens.ts:22](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/tokens.ts#L22)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
[@rxap/authentication](../wiki/globals) / AuthenticationRoutingService
|
|
2
|
+
|
|
3
|
+
# Class: AuthenticationRoutingService
|
|
4
|
+
|
|
5
|
+
Defined in: [authentication-routing.service.ts:14](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication-routing.service.ts#L14)
|
|
6
|
+
|
|
7
|
+
## Constructors
|
|
8
|
+
|
|
9
|
+
### new AuthenticationRoutingService()
|
|
10
|
+
|
|
11
|
+
> **new AuthenticationRoutingService**(`router`, `authenticationService`, `deactivated`): [`AuthenticationRoutingService`](../wiki/Class.AuthenticationRoutingService)
|
|
12
|
+
|
|
13
|
+
Defined in: [authentication-routing.service.ts:16](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/authentication-routing.service.ts#L16)
|
|
14
|
+
|
|
15
|
+
#### Parameters
|
|
16
|
+
|
|
17
|
+
##### router
|
|
18
|
+
|
|
19
|
+
`Router`
|
|
20
|
+
|
|
21
|
+
##### authenticationService
|
|
22
|
+
|
|
23
|
+
[`RxapAuthenticationService`](../wiki/Class.RxapAuthenticationService)
|
|
24
|
+
|
|
25
|
+
##### deactivated
|
|
26
|
+
|
|
27
|
+
`null` | `boolean`
|
|
28
|
+
|
|
29
|
+
#### Returns
|
|
30
|
+
|
|
31
|
+
[`AuthenticationRoutingService`](../wiki/Class.AuthenticationRoutingService)
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
[@rxap/authentication](../wiki/globals) / DisabledAuthenticationService
|
|
2
|
+
|
|
3
|
+
# Class: DisabledAuthenticationService
|
|
4
|
+
|
|
5
|
+
Defined in: [disabled-authentication.service.ts:9](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L9)
|
|
6
|
+
|
|
7
|
+
## Implements
|
|
8
|
+
|
|
9
|
+
- [`IAuthenticationService`](../wiki/Interface.IAuthenticationService)
|
|
10
|
+
|
|
11
|
+
## Constructors
|
|
12
|
+
|
|
13
|
+
### new DisabledAuthenticationService()
|
|
14
|
+
|
|
15
|
+
> **new DisabledAuthenticationService**(): [`DisabledAuthenticationService`](../wiki/Class.DisabledAuthenticationService)
|
|
16
|
+
|
|
17
|
+
#### Returns
|
|
18
|
+
|
|
19
|
+
[`DisabledAuthenticationService`](../wiki/Class.DisabledAuthenticationService)
|
|
20
|
+
|
|
21
|
+
## Properties
|
|
22
|
+
|
|
23
|
+
### events$
|
|
24
|
+
|
|
25
|
+
> `readonly` **events$**: `Observable`\<`never`\> = `EMPTY`
|
|
26
|
+
|
|
27
|
+
Defined in: [disabled-authentication.service.ts:12](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L12)
|
|
28
|
+
|
|
29
|
+
#### Implementation of
|
|
30
|
+
|
|
31
|
+
[`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`events$`](../wiki/Interface.IAuthenticationService#events$)
|
|
32
|
+
|
|
33
|
+
***
|
|
34
|
+
|
|
35
|
+
### isAuthenticated$
|
|
36
|
+
|
|
37
|
+
> `readonly` **isAuthenticated$**: `Observable`\<`boolean`\>
|
|
38
|
+
|
|
39
|
+
Defined in: [disabled-authentication.service.ts:11](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L11)
|
|
40
|
+
|
|
41
|
+
#### Implementation of
|
|
42
|
+
|
|
43
|
+
[`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated$`](../wiki/Interface.IAuthenticationService#isauthenticated$)
|
|
44
|
+
|
|
45
|
+
## Methods
|
|
46
|
+
|
|
47
|
+
### isAuthenticated()
|
|
48
|
+
|
|
49
|
+
> **isAuthenticated**(): `Promise`\<`boolean`\>
|
|
50
|
+
|
|
51
|
+
Defined in: [disabled-authentication.service.ts:18](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L18)
|
|
52
|
+
|
|
53
|
+
#### Returns
|
|
54
|
+
|
|
55
|
+
`Promise`\<`boolean`\>
|
|
56
|
+
|
|
57
|
+
#### Implementation of
|
|
58
|
+
|
|
59
|
+
[`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`isAuthenticated`](../wiki/Interface.IAuthenticationService#isauthenticated)
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### signOut()
|
|
64
|
+
|
|
65
|
+
> **signOut**(): `Promise`\<`void`\>
|
|
66
|
+
|
|
67
|
+
Defined in: [disabled-authentication.service.ts:14](https://gitlab.com/rxap/packages/-/blob/969f0867a1da05a157f626d5bdd316bd0a67494a/packages/angular/authentication/src/lib/disabled-authentication.service.ts#L14)
|
|
68
|
+
|
|
69
|
+
#### Returns
|
|
70
|
+
|
|
71
|
+
`Promise`\<`void`\>
|
|
72
|
+
|
|
73
|
+
#### Implementation of
|
|
74
|
+
|
|
75
|
+
[`IAuthenticationService`](../wiki/Interface.IAuthenticationService).[`signOut`](../wiki/Interface.IAuthenticationService#signout)
|