@rxap/ngx-oauth2-proxy 21.0.1 → 22.0.0-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.
Files changed (84) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +69 -5
  4. package/compodoc/dependencies.html +108 -27
  5. package/compodoc/guards/oauth2ProxyGuard.html +293 -0
  6. package/compodoc/index.html +46 -5
  7. package/compodoc/injectables/GetOauth2ProxyUserProfileMethod.html +77 -17
  8. package/compodoc/injectables/Oauth2ProxyUserProfileDataSource.html +90 -11
  9. package/compodoc/interfaces/Oauth2ProxyUserProfile.html +153 -98
  10. package/compodoc/js/architecture-graph.js +288 -0
  11. package/compodoc/js/libs/bootstrap-native.js +4 -2
  12. package/compodoc/js/libs/jszip.min.js +13 -0
  13. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  14. package/compodoc/js/libs/tablesort.min.js +3 -3
  15. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  16. package/compodoc/js/libs/vis-network.min.js +78 -0
  17. package/compodoc/js/menu-wc.js +38 -12
  18. package/compodoc/js/menu.js +10 -11
  19. package/compodoc/js/routes/routes_index.js +1 -0
  20. package/compodoc/js/routes.js +142 -34
  21. package/compodoc/js/search/search-lunr.js +6 -8
  22. package/compodoc/js/search/search.js +118 -66
  23. package/compodoc/js/search/search_index.js +2 -2
  24. package/compodoc/js/tabs.js +98 -15
  25. package/compodoc/js/tree.js +44 -7
  26. package/compodoc/license.html +48 -6
  27. package/compodoc/llms.txt +50 -0
  28. package/compodoc/miscellaneous/functions.html +52 -9
  29. package/compodoc/miscellaneous/variables.html +50 -57
  30. package/compodoc/modules.html +44 -3
  31. package/compodoc/overview.html +62 -3
  32. package/compodoc/properties.html +45 -4
  33. package/compodoc/routes.html +227 -0
  34. package/compodoc/styles/compodoc.css +365 -44
  35. package/compodoc/styles/dark.css +16 -0
  36. package/compodoc/template-playground/default-templates.json +192 -0
  37. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  38. package/compodoc/template-playground/main.ts +9 -0
  39. package/compodoc/template-playground/template-editor.service.ts +173 -0
  40. package/compodoc/template-playground/template-playground.component.ts +614 -0
  41. package/compodoc/template-playground/template-playground.module.ts +29 -0
  42. package/compodoc/template-playground/zip-export.service.ts +86 -0
  43. package/compodoc/template-playground-app/app.js +1389 -0
  44. package/compodoc/template-playground-app/index.html +462 -0
  45. package/docs/documentation.json +1255 -738
  46. package/docs/html/assets/highlight.css +1 -1
  47. package/docs/html/assets/icons.js +1 -1
  48. package/docs/html/assets/icons.svg +1 -1
  49. package/docs/html/assets/main.js +5 -5
  50. package/docs/html/assets/navigation.js +1 -1
  51. package/docs/html/assets/search.js +1 -1
  52. package/docs/html/assets/style.css +265 -228
  53. package/docs/html/classes/GetOauth2ProxyUserProfileMethod.html +79 -3
  54. package/docs/html/classes/Oauth2ProxyUserProfileDataSource.html +730 -69
  55. package/docs/html/functions/provideOauth2Proxy.html +38 -1
  56. package/docs/html/functions/subscribeToLogoutEvent.html +42 -1
  57. package/docs/html/hierarchy.html +29 -0
  58. package/docs/html/index.html +40 -4
  59. package/docs/html/interfaces/Oauth2ProxyUserProfile.html +65 -5
  60. package/docs/html/modules.html +48 -1
  61. package/docs/html/variables/oauth2ProxyGuard.html +33 -0
  62. package/docs/markdown/README.md +1 -1
  63. package/docs/markdown/classes/GetOauth2ProxyUserProfileMethod.md +6 -6
  64. package/docs/markdown/classes/Oauth2ProxyUserProfileDataSource.md +156 -80
  65. package/docs/markdown/functions/provideOauth2Proxy.md +2 -2
  66. package/docs/markdown/functions/subscribeToLogoutEvent.md +3 -7
  67. package/docs/markdown/globals.md +6 -3
  68. package/docs/markdown/interfaces/Oauth2ProxyUserProfile.md +4 -4
  69. package/docs/markdown/variables/oauth2ProxyGuard.md +11 -0
  70. package/docs/wiki/Class.GetOauth2ProxyUserProfileMethod.md +5 -5
  71. package/docs/wiki/Class.Oauth2ProxyUserProfileDataSource.md +155 -79
  72. package/docs/wiki/Function.provideOauth2Proxy.md +1 -1
  73. package/docs/wiki/Function.subscribeToLogoutEvent.md +2 -6
  74. package/docs/wiki/Interface.Oauth2ProxyUserProfile.md +3 -3
  75. package/docs/wiki/Variable.oauth2ProxyGuard.md +7 -0
  76. package/docs/wiki/_Sidebar.md +4 -1
  77. package/docs/wiki/globals.md +5 -2
  78. package/fesm2022/rxap-ngx-oauth2-proxy.mjs +97 -71
  79. package/fesm2022/rxap-ngx-oauth2-proxy.mjs.map +1 -1
  80. package/package.json +28 -28
  81. package/types/rxap-ngx-oauth2-proxy.d.ts +30 -34
  82. package/docs/html/functions/oauth2ProxyGuard.html +0 -1
  83. package/docs/markdown/functions/oauth2ProxyGuard.md +0 -25
  84. package/docs/wiki/Function.oauth2ProxyGuard.md +0 -21
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **provideOauth2Proxy**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:21](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L21)
7
+ Defined in: [oauth2-proxy/src/lib/provide-oauth2-proxy.ts:21](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L21)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **subscribeToLogoutEvent**(`pubSubService`): () => `void`
6
6
 
7
- Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L11)
7
+ Defined in: [oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts#L11)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -14,8 +14,4 @@ Defined in: [packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts:11](h
14
14
 
15
15
  ## Returns
16
16
 
17
- `Function`
18
-
19
- ### Returns
20
-
21
- `void`
17
+ () => `void`
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Interface: Oauth2ProxyUserProfile
4
4
 
5
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L10)
5
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L10)
6
6
 
7
7
  ## Properties
8
8
 
@@ -10,7 +10,7 @@ Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile
10
10
 
11
11
  > **email**: `string`
12
12
 
13
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:18](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L18)
13
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:18](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L18)
14
14
 
15
15
  Email address of the user
16
16
 
@@ -20,6 +20,6 @@ Email address of the user
20
20
 
21
21
  > **user**: `string`
22
22
 
23
- Defined in: [packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:14](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L14)
23
+ Defined in: [oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts:14](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts#L14)
24
24
 
25
25
  User Id of the user
@@ -0,0 +1,7 @@
1
+ [@rxap/ngx-oauth2-proxy](../wiki/globals) / oauth2ProxyGuard
2
+
3
+ # Variable: oauth2ProxyGuard
4
+
5
+ > `const` **oauth2ProxyGuard**: `CanActivateFn`
6
+
7
+ Defined in: [oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14)
@@ -9,8 +9,11 @@
9
9
 
10
10
  - [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
11
11
 
12
+ ### Variables
13
+
14
+ - [oauth2ProxyGuard](../wiki/Variable.oauth2ProxyGuard)
15
+
12
16
  ### Functions
13
17
 
14
- - [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
15
18
  - [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
16
19
  - [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
@@ -1,4 +1,4 @@
1
- # @rxap/ngx-oauth2-proxy v21.0.1
1
+ # @rxap/ngx-oauth2-proxy v22.0.0-dev.1
2
2
 
3
3
  ## Classes
4
4
 
@@ -9,8 +9,11 @@
9
9
 
10
10
  - [Oauth2ProxyUserProfile](../wiki/Interface.Oauth2ProxyUserProfile)
11
11
 
12
+ ## Variables
13
+
14
+ - [oauth2ProxyGuard](../wiki/Variable.oauth2ProxyGuard)
15
+
12
16
  ## Functions
13
17
 
14
- - [oauth2ProxyGuard](../wiki/Function.oauth2ProxyGuard)
15
18
  - [provideOauth2Proxy](../wiki/Function.provideOauth2Proxy)
16
19
  - [subscribeToLogoutEvent](../wiki/Function.subscribeToLogoutEvent)
@@ -1,80 +1,106 @@
1
- import { HttpClient, HttpErrorResponse } from '@angular/common/http';
2
- import * as i0 from '@angular/core';
3
- import { inject, Injectable, provideAppInitializer } from '@angular/core';
4
- import { ConfigService } from '@rxap/config';
5
- import { firstValueFrom, map, catchError, of, debounceTime, tap } from 'rxjs';
6
- import { __decorate, __metadata } from 'tslib';
7
- import { MethodDataSource, RxapDataSource } from '@rxap/data-source';
8
- import { RXAP_TOPICS, PubSubService } from '@rxap/ngx-pub-sub';
9
-
10
- class GetOauth2ProxyUserProfileMethod {
11
- constructor() {
12
- this.http = inject(HttpClient);
13
- this.config = inject(ConfigService);
14
- }
15
- async call() {
16
- return firstValueFrom(this.http.get(this.config.get('oauth2.profileUrl', '/oauth2/userinfo')));
17
- }
18
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetOauth2ProxyUserProfileMethod, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
19
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetOauth2ProxyUserProfileMethod, providedIn: 'root' }); }
20
- }
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: GetOauth2ProxyUserProfileMethod, decorators: [{
22
- type: Injectable,
23
- args: [{ providedIn: 'root' }]
24
- }] });
25
-
1
+ import { HttpClient, HttpErrorResponse } from "@angular/common/http";
2
+ import * as i0 from "@angular/core";
3
+ import { Injectable, inject, provideAppInitializer } from "@angular/core";
4
+ import { ConfigService } from "@rxap/config";
5
+ import { catchError, debounceTime, firstValueFrom, map, of, tap } from "rxjs";
6
+ import { __decorate, __metadata } from "tslib";
7
+ import { MethodDataSource, RxapDataSource } from "@rxap/data-source";
8
+ import { PubSubService, RXAP_TOPICS } from "@rxap/ngx-pub-sub";
9
+ var GetOauth2ProxyUserProfileMethod = class GetOauth2ProxyUserProfileMethod {
10
+ constructor() {
11
+ this.http = inject(HttpClient);
12
+ this.config = inject(ConfigService);
13
+ }
14
+ async call() {
15
+ return firstValueFrom(this.http.get(this.config.get("oauth2.profileUrl", "/oauth2/userinfo")));
16
+ }
17
+ static {
18
+ this.ɵfac = i0.ɵɵngDeclareFactory({
19
+ minVersion: "12.0.0",
20
+ version: "22.3.0",
21
+ ngImport: i0,
22
+ type: GetOauth2ProxyUserProfileMethod,
23
+ deps: [],
24
+ target: i0.ɵɵFactoryTarget.Injectable
25
+ });
26
+ }
27
+ static {
28
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
29
+ minVersion: "12.0.0",
30
+ version: "22.3.0",
31
+ ngImport: i0,
32
+ type: GetOauth2ProxyUserProfileMethod,
33
+ providedIn: "root"
34
+ });
35
+ }
36
+ };
37
+ i0.ɵɵngDeclareClassMetadata({
38
+ minVersion: "12.0.0",
39
+ version: "22.3.0",
40
+ ngImport: i0,
41
+ type: GetOauth2ProxyUserProfileMethod,
42
+ decorators: [{
43
+ type: Injectable,
44
+ args: [{ providedIn: "root" }]
45
+ }]
46
+ });
26
47
  let Oauth2ProxyUserProfileDataSource = class Oauth2ProxyUserProfileDataSource extends MethodDataSource {
27
- constructor() {
28
- super(inject(GetOauth2ProxyUserProfileMethod));
29
- }
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Oauth2ProxyUserProfileDataSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
31
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Oauth2ProxyUserProfileDataSource, providedIn: 'root' }); }
48
+ constructor() {
49
+ super(inject(GetOauth2ProxyUserProfileMethod));
50
+ }
51
+ static {
52
+ this.ɵfac = i0.ɵɵngDeclareFactory({
53
+ minVersion: "12.0.0",
54
+ version: "22.3.0",
55
+ ngImport: i0,
56
+ type: Oauth2ProxyUserProfileDataSource,
57
+ deps: [],
58
+ target: i0.ɵɵFactoryTarget.Injectable
59
+ });
60
+ }
61
+ static {
62
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
63
+ minVersion: "12.0.0",
64
+ version: "22.3.0",
65
+ ngImport: i0,
66
+ type: Oauth2ProxyUserProfileDataSource,
67
+ providedIn: "root"
68
+ });
69
+ }
32
70
  };
33
- Oauth2ProxyUserProfileDataSource = __decorate([
34
- RxapDataSource('oauth2-proxy-user-profile'),
35
- __metadata("design:paramtypes", [])
36
- ], Oauth2ProxyUserProfileDataSource);
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: Oauth2ProxyUserProfileDataSource, decorators: [{
38
- type: Injectable,
39
- args: [{ providedIn: 'root' }]
40
- }], ctorParameters: () => [] });
41
-
71
+ Oauth2ProxyUserProfileDataSource = __decorate([RxapDataSource("oauth2-proxy-user-profile"), __metadata("design:paramtypes", [])], Oauth2ProxyUserProfileDataSource);
72
+ i0.ɵɵngDeclareClassMetadata({
73
+ minVersion: "12.0.0",
74
+ version: "22.3.0",
75
+ ngImport: i0,
76
+ type: Oauth2ProxyUserProfileDataSource,
77
+ decorators: [{
78
+ type: Injectable,
79
+ args: [{ providedIn: "root" }]
80
+ }],
81
+ ctorParameters: () => []
82
+ });
42
83
  const oauth2ProxyGuard = async () => {
43
- const http = inject(HttpClient);
44
- const isAuthenticated = await firstValueFrom(http.get('/oauth2/auth').pipe(map(() => true), catchError(error => {
45
- if (error instanceof HttpErrorResponse) {
46
- if (error.status === 401) {
47
- return of(false);
48
- }
49
- }
50
- throw error;
51
- })));
52
- if (!isAuthenticated) {
53
- location.replace(location.origin + '/oauth2/sign_in');
54
- }
55
- return isAuthenticated;
84
+ const http = inject(HttpClient);
85
+ const isAuthenticated = await firstValueFrom(http.get("/oauth2/auth").pipe(map(() => true), catchError((error) => {
86
+ if (error instanceof HttpErrorResponse) {
87
+ if (error.status === 401) return of(false);
88
+ }
89
+ throw error;
90
+ })));
91
+ if (!isAuthenticated) location.replace(location.origin + "/oauth2/sign_in");
92
+ return isAuthenticated;
56
93
  };
57
-
58
94
  function subscribeToLogoutEvent(pubSubService) {
59
- return () => {
60
- pubSubService.subscribe(RXAP_TOPICS.authentication.logout).pipe(
61
- // wait some time to ensure other logout handlers are executed
62
- debounceTime(64), tap(() => location.replace(location.origin + '/oauth2/sign_out'))).subscribe();
63
- };
95
+ return () => {
96
+ pubSubService.subscribe(RXAP_TOPICS.authentication.logout).pipe(debounceTime(64), tap(() => location.replace(location.origin + "/oauth2/sign_out"))).subscribe();
97
+ };
64
98
  }
65
99
  function provideOauth2Proxy() {
66
- return provideAppInitializer(() => {
67
- const initializerFn = (subscribeToLogoutEvent)(inject(PubSubService));
68
- return initializerFn();
69
- });
100
+ return provideAppInitializer(() => {
101
+ return subscribeToLogoutEvent(inject(PubSubService))();
102
+ });
70
103
  }
71
-
72
- // region
73
- // endregion
74
-
75
- /**
76
- * Generated bundle index. Do not edit.
77
- */
78
-
79
104
  export { GetOauth2ProxyUserProfileMethod, Oauth2ProxyUserProfileDataSource, oauth2ProxyGuard, provideOauth2Proxy, subscribeToLogoutEvent };
80
- //# sourceMappingURL=rxap-ngx-oauth2-proxy.mjs.map
105
+
106
+ //# sourceMappingURL=rxap-ngx-oauth2-proxy.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-ngx-oauth2-proxy.mjs","sources":["../../../../../packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts","../../../../../packages/angular/oauth2-proxy/src/lib/oauth2-proxy-user-profile.data-source.ts","../../../../../packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts","../../../../../packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts","../../../../../packages/angular/oauth2-proxy/src/index.ts","../../../../../packages/angular/oauth2-proxy/src/rxap-ngx-oauth2-proxy.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport {\n inject,\n Injectable\n} from '@angular/core';\nimport { ConfigService } from '@rxap/config';\nimport { Method } from '@rxap/pattern';\nimport { firstValueFrom } from 'rxjs';\n\nexport interface Oauth2ProxyUserProfile {\n /**\n * User Id of the user\n */\n user: string;\n /**\n * Email address of the user\n */\n email: string;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class GetOauth2ProxyUserProfileMethod implements Method<Oauth2ProxyUserProfile> {\n\n private readonly http = inject(HttpClient);\n\n private readonly config = inject(ConfigService);\n\n async call(): Promise<Oauth2ProxyUserProfile> {\n return firstValueFrom(this.http.get<Oauth2ProxyUserProfile>(this.config.get('oauth2.profileUrl', '/oauth2/userinfo')));\n }\n\n}\n","import { Injectable, inject } from '@angular/core';\nimport {\n MethodDataSource,\n RxapDataSource\n} from '@rxap/data-source';\nimport {\n GetOauth2ProxyUserProfileMethod,\n Oauth2ProxyUserProfile,\n} from './get-oauth2-proxy-user-profile.method';\n\n@Injectable({ providedIn: 'root' })\n@RxapDataSource('oauth2-proxy-user-profile')\nexport class Oauth2ProxyUserProfileDataSource extends MethodDataSource<Oauth2ProxyUserProfile> {\n\n constructor() {\n super(inject(GetOauth2ProxyUserProfileMethod));\n }\n\n}\n","import {\n HttpClient,\n HttpErrorResponse,\n} from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { CanActivateFn } from '@angular/router';\nimport {\n catchError,\n firstValueFrom,\n map,\n of,\n} from 'rxjs';\n\nexport const oauth2ProxyGuard: CanActivateFn = async () => {\n\n const http = inject(HttpClient);\n\n const isAuthenticated = await firstValueFrom(http.get('/oauth2/auth').pipe(\n map(() => true),\n catchError(error => {\n if (error instanceof HttpErrorResponse) {\n if (error.status === 401) {\n return of(false);\n }\n }\n throw error;\n }),\n ));\n\n if (!isAuthenticated) {\n location.replace(location.origin + '/oauth2/sign_in');\n }\n\n return isAuthenticated;\n\n};\n","import { inject, provideAppInitializer } from '@angular/core';\nimport {\n PubSubService,\n RXAP_TOPICS,\n} from '@rxap/ngx-pub-sub';\nimport {\n debounceTime,\n tap,\n} from 'rxjs';\n\nexport function subscribeToLogoutEvent(pubSubService: PubSubService) {\n return () => {\n pubSubService.subscribe(RXAP_TOPICS.authentication.logout).pipe(\n // wait some time to ensure other logout handlers are executed\n debounceTime(64),\n tap(() => location.replace(location.origin + '/oauth2/sign_out'))\n ).subscribe();\n };\n}\n\nexport function provideOauth2Proxy() {\n return provideAppInitializer(() => {\n const initializerFn = (subscribeToLogoutEvent)(inject(PubSubService));\n return initializerFn();\n });\n}\n","// region \nexport * from './lib/get-oauth2-proxy-user-profile.method';\nexport * from './lib/oauth2-proxy-user-profile.data-source';\nexport * from './lib/oauth2-proxy.guard';\nexport * from './lib/provide-oauth2-proxy';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"rxap-ngx-oauth2-proxy.mjs","names":[],"sources":["../../../../../packages/angular/oauth2-proxy/src/lib/get-oauth2-proxy-user-profile.method.ts","../../../../../packages/angular/oauth2-proxy/src/lib/oauth2-proxy-user-profile.data-source.ts","../../../../../packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts","../../../../../packages/angular/oauth2-proxy/src/lib/provide-oauth2-proxy.ts"],"sourcesContent":["import { HttpClient } from '@angular/common/http';\nimport {\n inject,\n Injectable\n} from '@angular/core';\nimport { ConfigService } from '@rxap/config';\nimport { Method } from '@rxap/pattern';\nimport { firstValueFrom } from 'rxjs';\n\nexport interface Oauth2ProxyUserProfile {\n /**\n * User Id of the user\n */\n user: string;\n /**\n * Email address of the user\n */\n email: string;\n}\n\n@Injectable({ providedIn: 'root' })\nexport class GetOauth2ProxyUserProfileMethod implements Method<Oauth2ProxyUserProfile> {\n\n private readonly http = inject(HttpClient);\n\n private readonly config = inject(ConfigService);\n\n async call(): Promise<Oauth2ProxyUserProfile> {\n return firstValueFrom(this.http.get<Oauth2ProxyUserProfile>(this.config.get('oauth2.profileUrl', '/oauth2/userinfo')));\n }\n\n}\n","import { Injectable, inject } from '@angular/core';\nimport {\n MethodDataSource,\n RxapDataSource\n} from '@rxap/data-source';\nimport {\n GetOauth2ProxyUserProfileMethod,\n Oauth2ProxyUserProfile,\n} from './get-oauth2-proxy-user-profile.method';\n\n@Injectable({ providedIn: 'root' })\n@RxapDataSource('oauth2-proxy-user-profile')\nexport class Oauth2ProxyUserProfileDataSource extends MethodDataSource<Oauth2ProxyUserProfile> {\n\n constructor() {\n super(inject(GetOauth2ProxyUserProfileMethod));\n }\n\n}\n","import {\n HttpClient,\n HttpErrorResponse,\n} from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { CanActivateFn } from '@angular/router';\nimport {\n catchError,\n firstValueFrom,\n map,\n of,\n} from 'rxjs';\n\nexport const oauth2ProxyGuard: CanActivateFn = async () => {\n\n const http = inject(HttpClient);\n\n const isAuthenticated = await firstValueFrom(http.get('/oauth2/auth').pipe(\n map(() => true),\n catchError(error => {\n if (error instanceof HttpErrorResponse) {\n if (error.status === 401) {\n return of(false);\n }\n }\n throw error;\n }),\n ));\n\n if (!isAuthenticated) {\n location.replace(location.origin + '/oauth2/sign_in');\n }\n\n return isAuthenticated;\n\n};\n","import { inject, provideAppInitializer } from '@angular/core';\nimport {\n PubSubService,\n RXAP_TOPICS,\n} from '@rxap/ngx-pub-sub';\nimport {\n debounceTime,\n tap,\n} from 'rxjs';\n\nexport function subscribeToLogoutEvent(pubSubService: PubSubService) {\n return () => {\n pubSubService.subscribe(RXAP_TOPICS.authentication.logout).pipe(\n // wait some time to ensure other logout handlers are executed\n debounceTime(64),\n tap(() => location.replace(location.origin + '/oauth2/sign_out'))\n ).subscribe();\n };\n}\n\nexport function provideOauth2Proxy() {\n return provideAppInitializer(() => {\n const initializerFn = (subscribeToLogoutEvent)(inject(PubSubService));\n return initializerFn();\n });\n}\n"],"mappings":";;;;;;;;AAqBA,IAAa,kCAAb,MAAa,gCAA+B;CAD5C,cAAA;EAGmB,KAAA,OAAO,OAAO,UAAU;EAExB,KAAA,SAAS,OAAO,aAAa;CAM/C;CAJC,MAAM,OAAI;EACR,OAAO,eAAe,KAAK,KAAK,IAA4B,KAAK,OAAO,IAAI,qBAAqB,kBAAkB,CAAC,CAAC;CACvH;CARW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA+B,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAA/B;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAA+B,YADlB;EAAM,CAAA;CAAA;;AACnB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAA+B,YAAA,CAAA;EAD3C,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;ACR3B,IAAM,mCAAN,MAAM,yCAAyC,iBAAwC;CAE5F,cAAA;EACE,MAAM,OAAO,+BAA+B,CAAC;CAC/C;CAJW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAgC,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAhC;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAgC,YAFnB;EAAM,CAAA;CAAA;;AAEnB,mCAAgC,WAAA,CAD5C,eAAe,2BAA2B,G,mCAC9B,GAAA,gCAAgC;AAAhC,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAgC,YAAA,CAAA;EAF5C,MAAA;EAAW,MAAA,CAAA,EAAE,YAAY,OAAM,CAAE;;;;ACGlC,MAAa,mBAAkC,YAAW;CAExD,MAAM,OAAO,OAAO,UAAU;CAE9B,MAAM,kBAAkB,MAAM,eAAe,KAAK,IAAI,cAAc,CAAC,CAAC,KACpE,UAAU,IAAI,GACd,YAAW,UAAQ;EACjB,IAAI,iBAAiB,mBACnB;OAAI,MAAM,WAAW,KACnB,OAAO,GAAG,KAAK;EACjB;EAEF,MAAM;CACR,CAAC,CAAC,CACH;CAED,IAAI,CAAC,iBACH,SAAS,QAAQ,SAAS,SAAS,iBAAiB;CAGtD,OAAO;AAET;ACzBA,SAAgB,uBAAuB,eAA4B;CACjE,aAAY;EACV,cAAc,UAAU,YAAY,eAAe,MAAM,CAAC,CAAC,KAEzD,aAAa,EAAE,GACf,UAAU,SAAS,QAAQ,SAAS,SAAS,kBAAkB,CAAC,CAAC,CAClE,CAAC,UAAS;CACb;AACF;AAEA,SAAgB,qBAAkB;CAChC,OAAO,4BAA2B;EAE5B,OADuB,uBAAwB,OAAO,aAAa,CAC5D,CAAA,CAAa;CACtB,CAAC;AACP"}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "21.0.1",
2
+ "version": "22.0.0-dev.1",
3
3
  "name": "@rxap/ngx-oauth2-proxy",
4
4
  "description": "Provides an Angular guard and utilities for integrating with an OAuth2 Proxy. It includes a guard to protect routes, a method to fetch user profile information, and a data source for managing the user profile. Also provides an app initializer to subscribe to logout events.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "22.7.5",
8
- "tslib": "2.6.2"
7
+ "@nx/devkit": "24.0.6",
8
+ "tslib": "2.9.1"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "^21.2.9",
12
- "@angular/core": "^21.2.9",
13
- "@angular/router": "^21.2.9",
14
- "@rxap/config": "^21.0.1",
15
- "@rxap/data-source": "^21.0.1",
16
- "@rxap/ngx-pub-sub": "^21.0.1",
17
- "@rxap/pattern": "^1.1.16",
18
- "rxjs": "^7.8.2"
11
+ "@angular/common": "^22.0.0",
12
+ "@angular/core": "^22.0.0",
13
+ "@angular/router": "^22.0.0",
14
+ "@rxap/config": "^22.0.0-dev.1",
15
+ "@rxap/data-source": "^22.0.0-dev.1",
16
+ "@rxap/ngx-pub-sub": "^22.0.0-dev.1",
17
+ "@rxap/pattern": "^1.1.17-dev.0",
18
+ "rxjs": "^7.0.0"
19
19
  },
20
20
  "author": {
21
21
  "name": "Merzough Münker",
@@ -39,71 +39,71 @@
39
39
  "packageGroup": [
40
40
  {
41
41
  "package": "@angular/cdk",
42
- "version": "21.2.9"
42
+ "version": "22.3.0"
43
43
  },
44
44
  {
45
45
  "package": "@angular/common",
46
- "version": "21.2.9"
46
+ "version": "22.3.0"
47
47
  },
48
48
  {
49
49
  "package": "@angular/core",
50
- "version": "21.2.9"
50
+ "version": "22.3.0"
51
51
  },
52
52
  {
53
53
  "package": "@angular/forms",
54
- "version": "21.2.9"
54
+ "version": "22.3.0"
55
55
  },
56
56
  {
57
57
  "package": "@angular/material",
58
- "version": "21.2.9"
58
+ "version": "22.3.0"
59
59
  },
60
60
  {
61
61
  "package": "@angular/platform-browser",
62
- "version": "21.2.9"
62
+ "version": "22.3.0"
63
63
  },
64
64
  {
65
65
  "package": "@angular/router",
66
- "version": "21.2.9"
66
+ "version": "22.3.0"
67
67
  },
68
68
  {
69
69
  "package": "@rxap/config",
70
- "version": "21.0.1"
70
+ "version": "22.0.0-dev.1"
71
71
  },
72
72
  {
73
73
  "package": "@rxap/data-source",
74
- "version": "21.0.1"
74
+ "version": "22.0.0-dev.1"
75
75
  },
76
76
  {
77
77
  "package": "@rxap/data-structure-tree",
78
- "version": "1.1.19"
78
+ "version": "1.1.20-dev.0"
79
79
  },
80
80
  {
81
81
  "package": "@rxap/definition",
82
- "version": "21.0.1"
82
+ "version": "22.0.0-dev.1"
83
83
  },
84
84
  {
85
85
  "package": "@rxap/environment",
86
- "version": "21.0.1"
86
+ "version": "22.0.0-dev.1"
87
87
  },
88
88
  {
89
89
  "package": "@rxap/ngx-pub-sub",
90
- "version": "21.0.1"
90
+ "version": "22.0.0-dev.1"
91
91
  },
92
92
  {
93
93
  "package": "@rxap/pattern",
94
- "version": "1.1.16"
94
+ "version": "1.1.17-dev.0"
95
95
  },
96
96
  {
97
97
  "package": "@rxap/reflect-metadata",
98
- "version": "1.0.18"
98
+ "version": "1.0.19-dev.0"
99
99
  },
100
100
  {
101
101
  "package": "@rxap/rxjs",
102
- "version": "1.1.18"
102
+ "version": "1.1.19-dev.0"
103
103
  },
104
104
  {
105
105
  "package": "@rxap/utilities",
106
- "version": "16.5.2"
106
+ "version": "16.5.3-dev.0"
107
107
  }
108
108
  ]
109
109
  },
@@ -1,37 +1,33 @@
1
- import { Method } from '@rxap/pattern';
2
- import * as i0 from '@angular/core';
3
- import { MethodDataSource } from '@rxap/data-source';
4
- import { CanActivateFn } from '@angular/router';
5
- import { PubSubService } from '@rxap/ngx-pub-sub';
6
-
7
- interface Oauth2ProxyUserProfile {
8
- /**
9
- * User Id of the user
10
- */
11
- user: string;
12
- /**
13
- * Email address of the user
14
- */
15
- email: string;
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { Method } from "@rxap/pattern";
5
+ import * as i0 from "@angular/core";
6
+ import { MethodDataSource } from "@rxap/data-source";
7
+ import { CanActivateFn } from "@angular/router";
8
+ import { PubSubService } from "@rxap/ngx-pub-sub";
9
+ export interface Oauth2ProxyUserProfile {
10
+ /**
11
+ * User Id of the user
12
+ */
13
+ user: string;
14
+ /**
15
+ * Email address of the user
16
+ */
17
+ email: string;
16
18
  }
17
- declare class GetOauth2ProxyUserProfileMethod implements Method<Oauth2ProxyUserProfile> {
18
- private readonly http;
19
- private readonly config;
20
- call(): Promise<Oauth2ProxyUserProfile>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<GetOauth2ProxyUserProfileMethod, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<GetOauth2ProxyUserProfileMethod>;
19
+ export declare class GetOauth2ProxyUserProfileMethod implements Method<Oauth2ProxyUserProfile> {
20
+ private readonly http;
21
+ private readonly config;
22
+ call(): Promise<Oauth2ProxyUserProfile>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetOauth2ProxyUserProfileMethod, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
23
25
  }
24
-
25
- declare class Oauth2ProxyUserProfileDataSource extends MethodDataSource<Oauth2ProxyUserProfile> {
26
- constructor();
27
- static ɵfac: i0.ɵɵFactoryDeclaration<Oauth2ProxyUserProfileDataSource, never>;
28
- static ɵprov: i0.ɵɵInjectableDeclaration<Oauth2ProxyUserProfileDataSource>;
26
+ export declare class Oauth2ProxyUserProfileDataSource extends MethodDataSource<Oauth2ProxyUserProfile> {
27
+ constructor();
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<Oauth2ProxyUserProfileDataSource, never>;
29
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
29
30
  }
30
-
31
- declare const oauth2ProxyGuard: CanActivateFn;
32
-
33
- declare function subscribeToLogoutEvent(pubSubService: PubSubService): () => void;
34
- declare function provideOauth2Proxy(): i0.EnvironmentProviders;
35
-
36
- export { GetOauth2ProxyUserProfileMethod, Oauth2ProxyUserProfileDataSource, oauth2ProxyGuard, provideOauth2Proxy, subscribeToLogoutEvent };
37
- export type { Oauth2ProxyUserProfile };
31
+ export declare const oauth2ProxyGuard: CanActivateFn;
32
+ export declare function subscribeToLogoutEvent(pubSubService: PubSubService): () => void;
33
+ export declare function provideOauth2Proxy(): import("@angular/core").EnvironmentProviders;
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base=".."><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>oauth2ProxyGuard | @rxap/ngx-oauth2-proxy - v21.0.1</title><meta name="description" content="Documentation for @rxap/ngx-oauth2-proxy"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search"><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@rxap/ngx-oauth2-proxy - v21.0.1</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@rxap/ngx-oauth2-proxy</a></li><li><a href="oauth2ProxyGuard.html">oauth2ProxyGuard</a></li></ul><h1>Function oauth2ProxyGuard</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link"><a id="oauth2proxyguard" class="tsd-anchor"></a><span class="tsd-kind-call-signature">oauth2ProxyGuard</span><span class="tsd-signature-symbol">(</span><br/>    <span class="tsd-kind-parameter">route</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ActivatedRouteSnapshot</span><span class="tsd-signature-symbol">,</span><br/>    <span class="tsd-kind-parameter">state</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RouterStateSnapshot</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">MaybeAsync</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">GuardResult</span><span class="tsd-signature-symbol">&gt;</span><a href="#oauth2proxyguard" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">route</span>: <span class="tsd-signature-type">ActivatedRouteSnapshot</span></span></li><li><span><span class="tsd-kind-parameter">state</span>: <span class="tsd-signature-type">RouterStateSnapshot</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">MaybeAsync</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">GuardResult</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14">packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14</a></li></ul></aside></div></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html">@rxap/ngx-oauth2-proxy - v21.0.1</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
@@ -1,25 +0,0 @@
1
- [**@rxap/ngx-oauth2-proxy v21.0.1**](../README.md)
2
-
3
- ***
4
-
5
- [@rxap/ngx-oauth2-proxy](../globals.md) / oauth2ProxyGuard
6
-
7
- # Function: oauth2ProxyGuard()
8
-
9
- > **oauth2ProxyGuard**(`route`, `state`): `MaybeAsync`\<`GuardResult`\>
10
-
11
- Defined in: [packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14)
12
-
13
- ## Parameters
14
-
15
- ### route
16
-
17
- `ActivatedRouteSnapshot`
18
-
19
- ### state
20
-
21
- `RouterStateSnapshot`
22
-
23
- ## Returns
24
-
25
- `MaybeAsync`\<`GuardResult`\>
@@ -1,21 +0,0 @@
1
- [@rxap/ngx-oauth2-proxy](../wiki/globals) / oauth2ProxyGuard
2
-
3
- # Function: oauth2ProxyGuard()
4
-
5
- > **oauth2ProxyGuard**(`route`, `state`): `MaybeAsync`\<`GuardResult`\>
6
-
7
- Defined in: [packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts:14](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/oauth2-proxy/src/lib/oauth2-proxy.guard.ts#L14)
8
-
9
- ## Parameters
10
-
11
- ### route
12
-
13
- `ActivatedRouteSnapshot`
14
-
15
- ### state
16
-
17
- `RouterStateSnapshot`
18
-
19
- ## Returns
20
-
21
- `MaybeAsync`\<`GuardResult`\>