@rxap/oauth 12.0.9-next.2 → 12.0.11
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/bundles/rxap-oauth-single-sign-on.umd.js +29 -31
- package/bundles/rxap-oauth-single-sign-on.umd.js.map +1 -1
- package/bundles/rxap-oauth.umd.js +74 -58
- package/bundles/rxap-oauth.umd.js.map +1 -1
- package/esm2015/lib/container/container.component.js +3 -3
- package/esm2015/lib/container/container.component.js.map +1 -1
- package/esm2015/lib/container/container.component.module.js +4 -4
- package/esm2015/lib/container/container.component.module.js.map +1 -1
- package/esm2015/lib/get-o-auth-profile.method.js +3 -3
- package/esm2015/lib/get-o-auth-profile.method.js.map +1 -1
- package/esm2015/lib/loading/loading.component.js +3 -3
- package/esm2015/lib/loading/loading.component.js.map +1 -1
- package/esm2015/lib/loading/loading.component.module.js +4 -4
- package/esm2015/lib/loading/loading.component.module.js.map +1 -1
- package/esm2015/lib/o-auth-extract.guard.js +3 -3
- package/esm2015/lib/o-auth-extract.guard.js.map +1 -1
- package/esm2015/lib/o-auth-redirect.guard.js +3 -3
- package/esm2015/lib/o-auth-redirect.guard.js.map +1 -1
- package/esm2015/lib/o-auth-routing.module.js +4 -4
- package/esm2015/lib/o-auth-routing.module.js.map +1 -1
- package/esm2015/lib/o-auth.method.js +12 -7
- package/esm2015/lib/o-auth.method.js.map +1 -1
- package/esm2015/lib/o-auth.module.js +4 -4
- package/esm2015/lib/o-auth.module.js.map +1 -1
- package/esm2015/lib/o-auth.service.js +15 -4
- package/esm2015/lib/o-auth.service.js.map +1 -1
- package/esm2015/lib/profile.resolve.js +3 -3
- package/esm2015/lib/profile.resolve.js.map +1 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js +3 -3
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js.map +1 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js +4 -4
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.js +3 -3
- package/esm2015/single-sign-on/lib/continue/continue.component.js.map +1 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js +4 -4
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/error/error.component.js +3 -3
- package/esm2015/single-sign-on/lib/error/error.component.js.map +1 -1
- package/esm2015/single-sign-on/lib/error/error.component.module.js +4 -4
- package/esm2015/single-sign-on/lib/error/error.component.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js +4 -4
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js +3 -3
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js.map +1 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js +3 -3
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js.map +1 -1
- package/fesm2015/rxap-oauth-single-sign-on.js +24 -24
- package/fesm2015/rxap-oauth-single-sign-on.js.map +1 -1
- package/fesm2015/rxap-oauth.js +69 -53
- package/fesm2015/rxap-oauth.js.map +1 -1
- package/lib/o-auth.method.d.ts +2 -0
- package/lib/o-auth.service.d.ts +4 -2
- package/package.json +5 -5
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('@angular/router'), require('@angular/animations'), require('@angular/material/progress-bar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/flex-layout/flex'), require('@angular/common'), require('@angular/material/card'), require('@angular/flex-layout')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@rxap/oauth', ['exports', '@angular/core', '@angular/common/http', '@angular/router', '@angular/animations', '@angular/material/progress-bar', '@angular/material/icon', '@angular/material/button', '@angular/flex-layout/flex', '@angular/common', '@angular/material/card', '@angular/flex-layout'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.oauth = {}), global.ng.core, global.ng.common.http, global.ng.router, global.ng.animations, global.ng.material.progressBar, global.ng.material.icon, global.ng.material.button, global.ng.flexLayout.flex, global.ng.common, global.ng.material.card, global.ng.flexLayout));
|
|
5
|
-
}(this, (function (exports, i0, i1, i1$1, animations, i1$2, i2, i3, i4, common, card, flexLayout) { 'use strict';
|
|
5
|
+
})(this, (function (exports, i0, i1, i1$1, animations, i1$2, i2, i3, i4, common, card, flexLayout) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -13,14 +13,12 @@
|
|
|
13
13
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
14
|
Object.defineProperty(n, k, d.get ? d : {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
16
|
+
get: function () { return e[k]; }
|
|
19
17
|
});
|
|
20
18
|
}
|
|
21
19
|
});
|
|
22
20
|
}
|
|
23
|
-
n[
|
|
21
|
+
n["default"] = e;
|
|
24
22
|
return Object.freeze(n);
|
|
25
23
|
}
|
|
26
24
|
|
|
@@ -56,9 +54,9 @@
|
|
|
56
54
|
};
|
|
57
55
|
return GetOAuthProfileMethod;
|
|
58
56
|
}());
|
|
59
|
-
GetOAuthProfileMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
60
|
-
GetOAuthProfileMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
61
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
57
|
+
GetOAuthProfileMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetOAuthProfileMethod, deps: [{ token: i1.HttpClient }, { token: PROFILE_AUTH_ENDPOINT, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
58
|
+
GetOAuthProfileMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetOAuthProfileMethod, providedIn: 'root' });
|
|
59
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: GetOAuthProfileMethod, decorators: [{
|
|
62
60
|
type: i0.Injectable,
|
|
63
61
|
args: [{ providedIn: 'root' }]
|
|
64
62
|
}], ctorParameters: function () {
|
|
@@ -458,10 +456,15 @@
|
|
|
458
456
|
default:
|
|
459
457
|
throw new Error('Not supported grant type');
|
|
460
458
|
}
|
|
461
|
-
headers = new i1.HttpHeaders(
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
459
|
+
headers = new i1.HttpHeaders();
|
|
460
|
+
headers = headers.append('Content-type', 'application/x-www-form-urlencoded; charset=utf-8');
|
|
461
|
+
if (parameters.secret && parameters.clientId) {
|
|
462
|
+
params.append('client_id', parameters.clientId);
|
|
463
|
+
params.append('client_secret', parameters.secret);
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
headers = headers.append('Authorization', "Basic " + parameters.secret);
|
|
467
|
+
}
|
|
465
468
|
return [4 /*yield*/, this.http
|
|
466
469
|
.post(parameters.authEndpoint, params.toString(), {
|
|
467
470
|
headers: headers,
|
|
@@ -494,9 +497,9 @@
|
|
|
494
497
|
};
|
|
495
498
|
return OAuthMethod;
|
|
496
499
|
}());
|
|
497
|
-
OAuthMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
498
|
-
OAuthMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
499
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
500
|
+
OAuthMethod.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthMethod, deps: [{ token: i1.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
501
|
+
OAuthMethod.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthMethod, providedIn: 'root' });
|
|
502
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthMethod, decorators: [{
|
|
500
503
|
type: i0.Injectable,
|
|
501
504
|
args: [{ providedIn: 'root' }]
|
|
502
505
|
}], ctorParameters: function () {
|
|
@@ -525,18 +528,20 @@
|
|
|
525
528
|
var OAUTH_SECRET = new i0.InjectionToken('OAUTH_SECRET');
|
|
526
529
|
var OAUTH_AUTH_ENDPOINT = new i0.InjectionToken('OAUTH_AUTH_ENDPOINT');
|
|
527
530
|
var OAUTH_SSO_URL = new i0.InjectionToken('OAUTH_SSO_URL');
|
|
531
|
+
var OAUTH_CLIENT_ID = new i0.InjectionToken('OAUTH_CLIENT_ID');
|
|
528
532
|
var ACCESS_TOKEN_LOCAL_STORAGE_KEY = 'access_token';
|
|
529
533
|
var REFRESH_TOKEN_LOCAL_STORAGE_KEY = 'refresh_token';
|
|
530
534
|
var EXPIRES_AT_LOCAL_STORAGE_KEY = 'expires_at';
|
|
531
535
|
var REMEMBER_LOCAL_STORAGE_KEY = 'remember';
|
|
532
536
|
var OAuthService = /** @class */ (function () {
|
|
533
|
-
function OAuthService(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint, authEndpoint, secret, ssoUrl, redirectSignOut, redirectUrl) {
|
|
537
|
+
function OAuthService(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint, authEndpoint, secret, ssoUrl, redirectSignOut, redirectUrl, clientId) {
|
|
534
538
|
if (profileEndpoint === void 0) { profileEndpoint = null; }
|
|
535
539
|
if (authEndpoint === void 0) { authEndpoint = null; }
|
|
536
540
|
if (secret === void 0) { secret = null; }
|
|
537
541
|
if (ssoUrl === void 0) { ssoUrl = null; }
|
|
538
542
|
if (redirectSignOut === void 0) { redirectSignOut = null; }
|
|
539
543
|
if (redirectUrl === void 0) { redirectUrl = null; }
|
|
544
|
+
if (clientId === void 0) { clientId = null; }
|
|
540
545
|
this.oAuthMethod = oAuthMethod;
|
|
541
546
|
this.getOAuthProfileMethod = getOAuthProfileMethod;
|
|
542
547
|
this.router = router;
|
|
@@ -546,6 +551,7 @@
|
|
|
546
551
|
this.ssoUrl = ssoUrl;
|
|
547
552
|
this.redirectSignOut = redirectSignOut;
|
|
548
553
|
this.redirectUrl = redirectUrl;
|
|
554
|
+
this.clientId = clientId;
|
|
549
555
|
this._isAuthenticated = null;
|
|
550
556
|
}
|
|
551
557
|
Object.defineProperty(OAuthService.prototype, "expiresAt", {
|
|
@@ -703,6 +709,7 @@
|
|
|
703
709
|
});
|
|
704
710
|
};
|
|
705
711
|
OAuthService.prototype.signInWithEmailAndPassword = function (email, password, remember) {
|
|
712
|
+
var _a;
|
|
706
713
|
return __awaiter(this, void 0, void 0, function () {
|
|
707
714
|
var response;
|
|
708
715
|
return __generator(this, function (_c) {
|
|
@@ -719,6 +726,7 @@
|
|
|
719
726
|
password: password,
|
|
720
727
|
authEndpoint: this.authEndpoint,
|
|
721
728
|
secret: this.secret,
|
|
729
|
+
clientId: (_a = this.clientId) !== null && _a !== void 0 ? _a : undefined
|
|
722
730
|
})];
|
|
723
731
|
case 1:
|
|
724
732
|
response = _c.sent();
|
|
@@ -836,6 +844,7 @@
|
|
|
836
844
|
this.removeItem(EXPIRES_AT_LOCAL_STORAGE_KEY);
|
|
837
845
|
};
|
|
838
846
|
OAuthService.prototype.signInWithRefreshToken = function (refreshToken) {
|
|
847
|
+
var _a;
|
|
839
848
|
return __awaiter(this, void 0, void 0, function () {
|
|
840
849
|
var response;
|
|
841
850
|
return __generator(this, function (_c) {
|
|
@@ -851,6 +860,7 @@
|
|
|
851
860
|
refreshToken: refreshToken,
|
|
852
861
|
authEndpoint: this.authEndpoint,
|
|
853
862
|
secret: this.secret,
|
|
863
|
+
clientId: (_a = this.clientId) !== null && _a !== void 0 ? _a : undefined,
|
|
854
864
|
})];
|
|
855
865
|
case 1:
|
|
856
866
|
response = _c.sent();
|
|
@@ -862,9 +872,9 @@
|
|
|
862
872
|
};
|
|
863
873
|
return OAuthService;
|
|
864
874
|
}());
|
|
865
|
-
OAuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
866
|
-
OAuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
867
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
875
|
+
OAuthService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthService, deps: [{ token: OAuthMethod }, { token: GetOAuthProfileMethod }, { token: i1$1.Router }, { token: PROFILE_AUTH_ENDPOINT, optional: true }, { token: OAUTH_AUTH_ENDPOINT, optional: true }, { token: OAUTH_SECRET, optional: true }, { token: OAUTH_SSO_URL, optional: true }, { token: RXAP_O_AUTH_REDIRECT_SIGN_OUT, optional: true }, { token: RXAP_O_AUTH_REDIRECT_URL, optional: true }, { token: OAUTH_CLIENT_ID, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
876
|
+
OAuthService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthService, providedIn: 'root' });
|
|
877
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthService, decorators: [{
|
|
868
878
|
type: i0.Injectable,
|
|
869
879
|
args: [{ providedIn: 'root' }]
|
|
870
880
|
}], ctorParameters: function () {
|
|
@@ -907,6 +917,11 @@
|
|
|
907
917
|
}, {
|
|
908
918
|
type: i0.Inject,
|
|
909
919
|
args: [RXAP_O_AUTH_REDIRECT_URL]
|
|
920
|
+
}] }, { type: undefined, decorators: [{
|
|
921
|
+
type: i0.Optional
|
|
922
|
+
}, {
|
|
923
|
+
type: i0.Inject,
|
|
924
|
+
args: [OAUTH_CLIENT_ID]
|
|
910
925
|
}] }];
|
|
911
926
|
} });
|
|
912
927
|
|
|
@@ -953,9 +968,9 @@
|
|
|
953
968
|
};
|
|
954
969
|
return OAuthExtractGuard;
|
|
955
970
|
}());
|
|
956
|
-
OAuthExtractGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
957
|
-
OAuthExtractGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
958
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
971
|
+
OAuthExtractGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthExtractGuard, deps: [{ token: i1__namespace$1.Router }, { token: OAuthService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
972
|
+
OAuthExtractGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthExtractGuard, providedIn: 'root' });
|
|
973
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthExtractGuard, decorators: [{
|
|
959
974
|
type: i0.Injectable,
|
|
960
975
|
args: [{ providedIn: 'root' }]
|
|
961
976
|
}], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: OAuthService }]; } });
|
|
@@ -987,9 +1002,9 @@
|
|
|
987
1002
|
};
|
|
988
1003
|
return OAuthRedirectGuard;
|
|
989
1004
|
}());
|
|
990
|
-
OAuthRedirectGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
991
|
-
OAuthRedirectGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
992
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1005
|
+
OAuthRedirectGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRedirectGuard, deps: [{ token: OAuthService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1006
|
+
OAuthRedirectGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRedirectGuard, providedIn: 'root' });
|
|
1007
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRedirectGuard, decorators: [{
|
|
993
1008
|
type: i0.Injectable,
|
|
994
1009
|
args: [{ providedIn: 'root' }]
|
|
995
1010
|
}], ctorParameters: function () {
|
|
@@ -1021,10 +1036,10 @@
|
|
|
1021
1036
|
};
|
|
1022
1037
|
return OAuthModule;
|
|
1023
1038
|
}());
|
|
1024
|
-
OAuthModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1025
|
-
OAuthModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1026
|
-
OAuthModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1027
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1039
|
+
OAuthModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1040
|
+
OAuthModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthModule });
|
|
1041
|
+
OAuthModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthModule });
|
|
1042
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthModule, decorators: [{
|
|
1028
1043
|
type: i0.NgModule
|
|
1029
1044
|
}] });
|
|
1030
1045
|
|
|
@@ -1036,8 +1051,8 @@
|
|
|
1036
1051
|
};
|
|
1037
1052
|
return ContainerComponent;
|
|
1038
1053
|
}());
|
|
1039
|
-
ContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1040
|
-
ContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.
|
|
1054
|
+
ContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1055
|
+
ContainerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContainerComponent, selector: "rxap-container", host: { classAttribute: "rxap-container" }, ngImport: i0__namespace, template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"container\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}"], directives: [{ type: i1__namespace$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate"], exportAs: ["outlet"] }], animations: [
|
|
1041
1056
|
animations.trigger('routeAnimations', [
|
|
1042
1057
|
animations.transition(':enter', [
|
|
1043
1058
|
animations.style({ opacity: 0 }),
|
|
@@ -1049,7 +1064,7 @@
|
|
|
1049
1064
|
])
|
|
1050
1065
|
])
|
|
1051
1066
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1052
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1067
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponent, decorators: [{
|
|
1053
1068
|
type: i0.Component,
|
|
1054
1069
|
args: [{
|
|
1055
1070
|
selector: 'rxap-container',
|
|
@@ -1077,9 +1092,9 @@
|
|
|
1077
1092
|
}
|
|
1078
1093
|
return LoadingComponent;
|
|
1079
1094
|
}());
|
|
1080
|
-
LoadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1081
|
-
LoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.
|
|
1082
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1095
|
+
LoadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1096
|
+
LoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: LoadingComponent, selector: "rxap-loading", host: { classAttribute: "rxap-loading" }, ngImport: i0__namespace, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [""], components: [{ type: i1__namespace$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "mode", "value", "bufferValue"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1097
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponent, decorators: [{
|
|
1083
1098
|
type: i0.Component,
|
|
1084
1099
|
args: [{
|
|
1085
1100
|
selector: 'rxap-loading',
|
|
@@ -1099,8 +1114,8 @@
|
|
|
1099
1114
|
};
|
|
1100
1115
|
return SignInWithRedirectComponent;
|
|
1101
1116
|
}());
|
|
1102
|
-
SignInWithRedirectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1103
|
-
SignInWithRedirectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.
|
|
1117
|
+
SignInWithRedirectComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponent, deps: [{ token: OAuthService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1118
|
+
SignInWithRedirectComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SignInWithRedirectComponent, selector: "rxap-sign-in-with-redirect", host: { classAttribute: "rxap-sign-in-with-redirect" }, ngImport: i0__namespace, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signIn()\" color=\"primary\" fxFlex=\"nogrow\" mat-raised-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\">login</mat-icon>\n <span fxFlex=\"nogrow\">Sign In</span>\n </span>\n </button>\n </div>\n\n </div>\n\n</div>\n\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}"], components: [{ type: i2__namespace.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3__namespace.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4__namespace.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4__namespace.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4__namespace.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4__namespace.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], animations: [
|
|
1104
1119
|
animations.trigger('fadeAnimation', [
|
|
1105
1120
|
// the "in" style determines the "resting" state of the element when it is visible.
|
|
1106
1121
|
animations.state('in', animations.style({ opacity: 1 })),
|
|
@@ -1113,7 +1128,7 @@
|
|
|
1113
1128
|
animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 })))
|
|
1114
1129
|
])
|
|
1115
1130
|
], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1116
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1131
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponent, decorators: [{
|
|
1117
1132
|
type: i0.Component,
|
|
1118
1133
|
args: [{
|
|
1119
1134
|
selector: 'rxap-sign-in-with-redirect',
|
|
@@ -1185,9 +1200,9 @@
|
|
|
1185
1200
|
};
|
|
1186
1201
|
return ProfileResolve;
|
|
1187
1202
|
}());
|
|
1188
|
-
ProfileResolve.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1189
|
-
ProfileResolve.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.
|
|
1190
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1203
|
+
ProfileResolve.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProfileResolve, deps: [{ token: OAuthService }, { token: i1$1.Router }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1204
|
+
ProfileResolve.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProfileResolve, providedIn: 'root' });
|
|
1205
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ProfileResolve, decorators: [{
|
|
1191
1206
|
type: i0.Injectable,
|
|
1192
1207
|
args: [{ providedIn: 'root' }]
|
|
1193
1208
|
}], ctorParameters: function () {
|
|
@@ -1208,12 +1223,12 @@
|
|
|
1208
1223
|
}
|
|
1209
1224
|
return ContainerComponentModule;
|
|
1210
1225
|
}());
|
|
1211
|
-
ContainerComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1212
|
-
ContainerComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1213
|
-
ContainerComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1226
|
+
ContainerComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1227
|
+
ContainerComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponentModule, declarations: [ContainerComponent], imports: [i1$1.RouterModule], exports: [ContainerComponent] });
|
|
1228
|
+
ContainerComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponentModule, imports: [[
|
|
1214
1229
|
i1$1.RouterModule
|
|
1215
1230
|
]] });
|
|
1216
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1231
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContainerComponentModule, decorators: [{
|
|
1217
1232
|
type: i0.NgModule,
|
|
1218
1233
|
args: [{
|
|
1219
1234
|
declarations: [ContainerComponent],
|
|
@@ -1229,12 +1244,12 @@
|
|
|
1229
1244
|
}
|
|
1230
1245
|
return LoadingComponentModule;
|
|
1231
1246
|
}());
|
|
1232
|
-
LoadingComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1233
|
-
LoadingComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1234
|
-
LoadingComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1247
|
+
LoadingComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1248
|
+
LoadingComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, declarations: [LoadingComponent], imports: [i1$2.MatProgressBarModule], exports: [LoadingComponent] });
|
|
1249
|
+
LoadingComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, imports: [[
|
|
1235
1250
|
i1$2.MatProgressBarModule
|
|
1236
1251
|
]] });
|
|
1237
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1252
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingComponentModule, decorators: [{
|
|
1238
1253
|
type: i0.NgModule,
|
|
1239
1254
|
args: [{
|
|
1240
1255
|
declarations: [
|
|
@@ -1254,20 +1269,20 @@
|
|
|
1254
1269
|
}
|
|
1255
1270
|
return SignInWithRedirectComponentModule;
|
|
1256
1271
|
}());
|
|
1257
|
-
SignInWithRedirectComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1258
|
-
SignInWithRedirectComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1272
|
+
SignInWithRedirectComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1273
|
+
SignInWithRedirectComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponentModule, declarations: [SignInWithRedirectComponent], imports: [card.MatCardModule,
|
|
1259
1274
|
i3.MatButtonModule,
|
|
1260
1275
|
flexLayout.FlexLayoutModule,
|
|
1261
1276
|
i2.MatIconModule,
|
|
1262
1277
|
common.CommonModule], exports: [SignInWithRedirectComponent] });
|
|
1263
|
-
SignInWithRedirectComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1278
|
+
SignInWithRedirectComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponentModule, imports: [[
|
|
1264
1279
|
card.MatCardModule,
|
|
1265
1280
|
i3.MatButtonModule,
|
|
1266
1281
|
flexLayout.FlexLayoutModule,
|
|
1267
1282
|
i2.MatIconModule,
|
|
1268
1283
|
common.CommonModule
|
|
1269
1284
|
]] });
|
|
1270
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1285
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SignInWithRedirectComponentModule, decorators: [{
|
|
1271
1286
|
type: i0.NgModule,
|
|
1272
1287
|
args: [{
|
|
1273
1288
|
declarations: [SignInWithRedirectComponent],
|
|
@@ -1287,14 +1302,14 @@
|
|
|
1287
1302
|
}
|
|
1288
1303
|
return OAuthRoutingModule;
|
|
1289
1304
|
}());
|
|
1290
|
-
OAuthRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.
|
|
1291
|
-
OAuthRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.
|
|
1305
|
+
OAuthRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1306
|
+
OAuthRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRoutingModule, exports: [ContainerComponentModule,
|
|
1292
1307
|
LoadingComponentModule,
|
|
1293
1308
|
SignInWithRedirectComponentModule] });
|
|
1294
|
-
OAuthRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.
|
|
1309
|
+
OAuthRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRoutingModule, imports: [ContainerComponentModule,
|
|
1295
1310
|
LoadingComponentModule,
|
|
1296
1311
|
SignInWithRedirectComponentModule] });
|
|
1297
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.
|
|
1312
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthRoutingModule, decorators: [{
|
|
1298
1313
|
type: i0.NgModule,
|
|
1299
1314
|
args: [{
|
|
1300
1315
|
exports: [
|
|
@@ -1324,6 +1339,7 @@
|
|
|
1324
1339
|
exports.LoadingComponent = LoadingComponent;
|
|
1325
1340
|
exports.LoadingComponentModule = LoadingComponentModule;
|
|
1326
1341
|
exports.OAUTH_AUTH_ENDPOINT = OAUTH_AUTH_ENDPOINT;
|
|
1342
|
+
exports.OAUTH_CLIENT_ID = OAUTH_CLIENT_ID;
|
|
1327
1343
|
exports.OAUTH_SECRET = OAUTH_SECRET;
|
|
1328
1344
|
exports.OAUTH_SSO_URL = OAUTH_SSO_URL;
|
|
1329
1345
|
exports.OAuthExtractGuard = OAuthExtractGuard;
|
|
@@ -1345,5 +1361,5 @@
|
|
|
1345
1361
|
|
|
1346
1362
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1347
1363
|
|
|
1348
|
-
}))
|
|
1364
|
+
}));
|
|
1349
1365
|
//# sourceMappingURL=rxap-oauth.umd.js.map
|