@rxap/ngx-oauth2-proxy 21.0.1-dev.1 → 22.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/compodoc/changelog.html +23 -0
- package/compodoc/dependencies.html +8 -8
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +102 -102
- package/docs/html/classes/GetOauth2ProxyUserProfileMethod.html +2 -2
- package/docs/html/classes/Oauth2ProxyUserProfileDataSource.html +14 -14
- package/docs/html/functions/oauth2ProxyGuard.html +1 -1
- package/docs/html/functions/provideOauth2Proxy.html +1 -1
- package/docs/html/functions/subscribeToLogoutEvent.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/Oauth2ProxyUserProfile.html +3 -3
- package/docs/html/modules.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/GetOauth2ProxyUserProfileMethod.md +3 -3
- package/docs/markdown/classes/Oauth2ProxyUserProfileDataSource.md +57 -57
- package/docs/markdown/functions/oauth2ProxyGuard.md +2 -2
- package/docs/markdown/functions/provideOauth2Proxy.md +2 -2
- package/docs/markdown/functions/subscribeToLogoutEvent.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/Oauth2ProxyUserProfile.md +4 -4
- package/docs/wiki/Class.GetOauth2ProxyUserProfileMethod.md +2 -2
- package/docs/wiki/Class.Oauth2ProxyUserProfileDataSource.md +56 -56
- package/docs/wiki/Function.oauth2ProxyGuard.md +1 -1
- package/docs/wiki/Function.provideOauth2Proxy.md +1 -1
- package/docs/wiki/Function.subscribeToLogoutEvent.md +1 -1
- package/docs/wiki/Interface.Oauth2ProxyUserProfile.md +3 -3
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-ngx-oauth2-proxy.mjs +97 -71
- package/fesm2022/rxap-ngx-oauth2-proxy.mjs.map +1 -1
- package/package.json +26 -26
- package/types/rxap-ngx-oauth2-proxy.d.ts +30 -34
|
@@ -1,80 +1,106 @@
|
|
|
1
|
-
import { HttpClient, HttpErrorResponse } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { ConfigService } from
|
|
5
|
-
import {
|
|
6
|
-
import { __decorate, __metadata } from
|
|
7
|
-
import { MethodDataSource, RxapDataSource } from
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
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"
|
|
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,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "22.0.0-dev.0",
|
|
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": "
|
|
7
|
+
"@nx/devkit": "24.0.6",
|
|
8
8
|
"tslib": "2.6.2"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "^
|
|
12
|
-
"@angular/core": "^
|
|
13
|
-
"@angular/router": "^
|
|
14
|
-
"@rxap/config": "^
|
|
15
|
-
"@rxap/data-source": "^
|
|
16
|
-
"@rxap/ngx-pub-sub": "^
|
|
17
|
-
"@rxap/pattern": "^1.1.16
|
|
11
|
+
"@angular/common": "^22.3.0",
|
|
12
|
+
"@angular/core": "^22.3.0",
|
|
13
|
+
"@angular/router": "^22.3.0",
|
|
14
|
+
"@rxap/config": "^22.0.0-dev.0",
|
|
15
|
+
"@rxap/data-source": "^22.0.0-dev.0",
|
|
16
|
+
"@rxap/ngx-pub-sub": "^22.0.0-dev.0",
|
|
17
|
+
"@rxap/pattern": "^1.1.16",
|
|
18
18
|
"rxjs": "^7.8.2"
|
|
19
19
|
},
|
|
20
20
|
"author": {
|
|
@@ -39,71 +39,71 @@
|
|
|
39
39
|
"packageGroup": [
|
|
40
40
|
{
|
|
41
41
|
"package": "@angular/cdk",
|
|
42
|
-
"version": "
|
|
42
|
+
"version": "22.3.0"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"package": "@angular/common",
|
|
46
|
-
"version": "
|
|
46
|
+
"version": "22.3.0"
|
|
47
47
|
},
|
|
48
48
|
{
|
|
49
49
|
"package": "@angular/core",
|
|
50
|
-
"version": "
|
|
50
|
+
"version": "22.3.0"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"package": "@angular/forms",
|
|
54
|
-
"version": "
|
|
54
|
+
"version": "22.3.0"
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
"package": "@angular/material",
|
|
58
|
-
"version": "
|
|
58
|
+
"version": "22.3.0"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"package": "@angular/platform-browser",
|
|
62
|
-
"version": "
|
|
62
|
+
"version": "22.3.0"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
"package": "@angular/router",
|
|
66
|
-
"version": "
|
|
66
|
+
"version": "22.3.0"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"package": "@rxap/config",
|
|
70
|
-
"version": "
|
|
70
|
+
"version": "22.0.0-dev.0"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"package": "@rxap/data-source",
|
|
74
|
-
"version": "
|
|
74
|
+
"version": "22.0.0-dev.0"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"package": "@rxap/data-structure-tree",
|
|
78
|
-
"version": "1.1.19
|
|
78
|
+
"version": "1.1.19"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"package": "@rxap/definition",
|
|
82
|
-
"version": "
|
|
82
|
+
"version": "22.0.0-dev.0"
|
|
83
83
|
},
|
|
84
84
|
{
|
|
85
85
|
"package": "@rxap/environment",
|
|
86
|
-
"version": "
|
|
86
|
+
"version": "22.0.0-dev.0"
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
"package": "@rxap/ngx-pub-sub",
|
|
90
|
-
"version": "
|
|
90
|
+
"version": "22.0.0-dev.0"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"package": "@rxap/pattern",
|
|
94
|
-
"version": "1.1.16
|
|
94
|
+
"version": "1.1.16"
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"package": "@rxap/reflect-metadata",
|
|
98
|
-
"version": "1.0.18
|
|
98
|
+
"version": "1.0.18"
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
"package": "@rxap/rxjs",
|
|
102
|
-
"version": "1.1.18
|
|
102
|
+
"version": "1.1.18"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"package": "@rxap/utilities",
|
|
106
|
-
"version": "16.5.2
|
|
106
|
+
"version": "16.5.2"
|
|
107
107
|
}
|
|
108
108
|
]
|
|
109
109
|
},
|
|
@@ -1,37 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
|
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;
|