@rxap/oauth 12.1.0 → 13.0.0-next.2

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 (107) hide show
  1. package/_theming.scss +1 -1
  2. package/esm2020/index.mjs +17 -0
  3. package/esm2020/lib/container/container.component.mjs +38 -0
  4. package/esm2020/lib/container/container.component.module.mjs +22 -0
  5. package/esm2020/lib/get-o-auth-profile.method.mjs +40 -0
  6. package/esm2020/lib/loading/loading.component.mjs +12 -0
  7. package/esm2020/lib/loading/loading.component.module.mjs +26 -0
  8. package/esm2020/lib/o-auth-extract.guard.mjs +55 -0
  9. package/esm2020/lib/o-auth-redirect.guard.mjs +31 -0
  10. package/esm2020/lib/o-auth-routing.module.mjs +25 -0
  11. package/esm2020/lib/o-auth.method.mjs +111 -0
  12. package/esm2020/lib/o-auth.module.mjs +27 -0
  13. package/esm2020/lib/o-auth.service.mjs +303 -0
  14. package/esm2020/lib/profile.resolve.mjs +37 -0
  15. package/esm2020/lib/routes.mjs +26 -0
  16. package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +47 -0
  17. package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.mjs +38 -0
  18. package/esm2020/lib/tokens.mjs +17 -0
  19. package/esm2020/rxap-oauth.mjs +5 -0
  20. package/esm2020/single-sign-on/lib/continue/continue.component.mjs +70 -0
  21. package/esm2020/single-sign-on/lib/continue/continue.component.module.mjs +42 -0
  22. package/esm2020/single-sign-on/lib/error/error.component.mjs +44 -0
  23. package/esm2020/single-sign-on/lib/error/error.component.module.mjs +30 -0
  24. package/esm2020/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +50 -0
  25. package/esm2020/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +69 -0
  26. package/esm2020/single-sign-on/lib/o-auth-single-sign-on.service.mjs +77 -0
  27. package/esm2020/single-sign-on/lib/routes.mjs +33 -0
  28. package/esm2020/single-sign-on/lib/tokens.mjs +10 -0
  29. package/esm2020/single-sign-on/public_api.mjs +10 -0
  30. package/esm2020/single-sign-on/rxap-oauth-single-sign-on.mjs +5 -0
  31. package/fesm2015/rxap-oauth-single-sign-on.mjs +408 -0
  32. package/fesm2015/rxap-oauth-single-sign-on.mjs.map +1 -0
  33. package/fesm2015/{rxap-oauth.js → rxap-oauth.mjs} +137 -171
  34. package/fesm2015/rxap-oauth.mjs.map +1 -0
  35. package/fesm2020/rxap-oauth-single-sign-on.mjs +392 -0
  36. package/fesm2020/rxap-oauth-single-sign-on.mjs.map +1 -0
  37. package/fesm2020/rxap-oauth.mjs +801 -0
  38. package/fesm2020/rxap-oauth.mjs.map +1 -0
  39. package/lib/o-auth.method.d.ts +0 -2
  40. package/lib/o-auth.service.d.ts +2 -7
  41. package/package.json +43 -31
  42. package/single-sign-on/package.json +5 -5
  43. package/bundles/rxap-oauth-single-sign-on.umd.js +0 -811
  44. package/bundles/rxap-oauth-single-sign-on.umd.js.map +0 -1
  45. package/bundles/rxap-oauth.umd.js +0 -1373
  46. package/bundles/rxap-oauth.umd.js.map +0 -1
  47. package/esm2015/index.js +0 -17
  48. package/esm2015/index.js.map +0 -1
  49. package/esm2015/lib/container/container.component.js +0 -45
  50. package/esm2015/lib/container/container.component.js.map +0 -1
  51. package/esm2015/lib/container/container.component.module.js +0 -22
  52. package/esm2015/lib/container/container.component.module.js.map +0 -1
  53. package/esm2015/lib/get-o-auth-profile.method.js +0 -41
  54. package/esm2015/lib/get-o-auth-profile.method.js.map +0 -1
  55. package/esm2015/lib/loading/loading.component.js +0 -18
  56. package/esm2015/lib/loading/loading.component.js.map +0 -1
  57. package/esm2015/lib/loading/loading.component.module.js +0 -26
  58. package/esm2015/lib/loading/loading.component.module.js.map +0 -1
  59. package/esm2015/lib/o-auth-extract.guard.js +0 -55
  60. package/esm2015/lib/o-auth-extract.guard.js.map +0 -1
  61. package/esm2015/lib/o-auth-redirect.guard.js +0 -34
  62. package/esm2015/lib/o-auth-redirect.guard.js.map +0 -1
  63. package/esm2015/lib/o-auth-routing.module.js +0 -25
  64. package/esm2015/lib/o-auth-routing.module.js.map +0 -1
  65. package/esm2015/lib/o-auth.method.js +0 -120
  66. package/esm2015/lib/o-auth.method.js.map +0 -1
  67. package/esm2015/lib/o-auth.module.js +0 -28
  68. package/esm2015/lib/o-auth.module.js.map +0 -1
  69. package/esm2015/lib/o-auth.service.js +0 -336
  70. package/esm2015/lib/o-auth.service.js.map +0 -1
  71. package/esm2015/lib/profile.resolve.js +0 -40
  72. package/esm2015/lib/profile.resolve.js.map +0 -1
  73. package/esm2015/lib/routes.js +0 -26
  74. package/esm2015/lib/routes.js.map +0 -1
  75. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js +0 -54
  76. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js.map +0 -1
  77. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js +0 -38
  78. package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js.map +0 -1
  79. package/esm2015/lib/tokens.js +0 -17
  80. package/esm2015/lib/tokens.js.map +0 -1
  81. package/esm2015/rxap-oauth.js +0 -5
  82. package/esm2015/rxap-oauth.js.map +0 -1
  83. package/esm2015/single-sign-on/lib/continue/continue.component.js +0 -77
  84. package/esm2015/single-sign-on/lib/continue/continue.component.js.map +0 -1
  85. package/esm2015/single-sign-on/lib/continue/continue.component.module.js +0 -42
  86. package/esm2015/single-sign-on/lib/continue/continue.component.module.js.map +0 -1
  87. package/esm2015/single-sign-on/lib/error/error.component.js +0 -51
  88. package/esm2015/single-sign-on/lib/error/error.component.js.map +0 -1
  89. package/esm2015/single-sign-on/lib/error/error.component.module.js +0 -30
  90. package/esm2015/single-sign-on/lib/error/error.component.module.js.map +0 -1
  91. package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js +0 -50
  92. package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js.map +0 -1
  93. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js +0 -72
  94. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js.map +0 -1
  95. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js +0 -85
  96. package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js.map +0 -1
  97. package/esm2015/single-sign-on/lib/routes.js +0 -33
  98. package/esm2015/single-sign-on/lib/routes.js.map +0 -1
  99. package/esm2015/single-sign-on/lib/tokens.js +0 -10
  100. package/esm2015/single-sign-on/lib/tokens.js.map +0 -1
  101. package/esm2015/single-sign-on/public_api.js +0 -10
  102. package/esm2015/single-sign-on/public_api.js.map +0 -1
  103. package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js +0 -5
  104. package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js.map +0 -1
  105. package/fesm2015/rxap-oauth-single-sign-on.js +0 -416
  106. package/fesm2015/rxap-oauth-single-sign-on.js.map +0 -1
  107. package/fesm2015/rxap-oauth.js.map +0 -1
@@ -1,811 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('@angular/router'), require('rxjs/operators'), require('@rxap/oauth'), require('@angular/material/button'), require('@angular/flex-layout/flex'), require('@angular/common'), require('@rxap/directives'), require('@angular/flex-layout'), require('@angular/material/icon')) :
3
- typeof define === 'function' && define.amd ? define('@rxap/oauth/single-sign-on', ['exports', '@angular/core', '@angular/animations', '@angular/router', 'rxjs/operators', '@rxap/oauth', '@angular/material/button', '@angular/flex-layout/flex', '@angular/common', '@rxap/directives', '@angular/flex-layout', '@angular/material/icon'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.rxap = global.rxap || {}, global.rxap.oauth = global.rxap.oauth || {}, global.rxap.oauth["single-sign-on"] = {}), global.ng.core, global.ng.animations, global.ng.router, global.rxjs.operators, global.rxap.oauth, global.ng.material.button, global.ng.flexLayout.flex, global.ng.common, global.i4, global.ng.flexLayout, global.ng.material.icon));
5
- })(this, (function (exports, i0, animations, i5, operators, i1, i1$1, i2, i3, i4, flexLayout, icon) { 'use strict';
6
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
- var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
27
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
29
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
31
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
32
-
33
- /*! *****************************************************************************
34
- Copyright (c) Microsoft Corporation.
35
-
36
- Permission to use, copy, modify, and/or distribute this software for any
37
- purpose with or without fee is hereby granted.
38
-
39
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
40
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
41
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
42
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
43
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
44
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
45
- PERFORMANCE OF THIS SOFTWARE.
46
- ***************************************************************************** */
47
- /* global Reflect, Promise */
48
- var extendStatics = function (d, b) {
49
- extendStatics = Object.setPrototypeOf ||
50
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51
- function (d, b) { for (var p in b)
52
- if (Object.prototype.hasOwnProperty.call(b, p))
53
- d[p] = b[p]; };
54
- return extendStatics(d, b);
55
- };
56
- function __extends(d, b) {
57
- if (typeof b !== "function" && b !== null)
58
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
59
- extendStatics(d, b);
60
- function __() { this.constructor = d; }
61
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
62
- }
63
- var __assign = function () {
64
- __assign = Object.assign || function __assign(t) {
65
- for (var s, i = 1, n = arguments.length; i < n; i++) {
66
- s = arguments[i];
67
- for (var p in s)
68
- if (Object.prototype.hasOwnProperty.call(s, p))
69
- t[p] = s[p];
70
- }
71
- return t;
72
- };
73
- return __assign.apply(this, arguments);
74
- };
75
- function __rest(s, e) {
76
- var t = {};
77
- for (var p in s)
78
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
79
- t[p] = s[p];
80
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
81
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
82
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
83
- t[p[i]] = s[p[i]];
84
- }
85
- return t;
86
- }
87
- function __decorate(decorators, target, key, desc) {
88
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
89
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
90
- r = Reflect.decorate(decorators, target, key, desc);
91
- else
92
- for (var i = decorators.length - 1; i >= 0; i--)
93
- if (d = decorators[i])
94
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
95
- return c > 3 && r && Object.defineProperty(target, key, r), r;
96
- }
97
- function __param(paramIndex, decorator) {
98
- return function (target, key) { decorator(target, key, paramIndex); };
99
- }
100
- function __metadata(metadataKey, metadataValue) {
101
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
102
- return Reflect.metadata(metadataKey, metadataValue);
103
- }
104
- function __awaiter(thisArg, _arguments, P, generator) {
105
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
106
- return new (P || (P = Promise))(function (resolve, reject) {
107
- function fulfilled(value) { try {
108
- step(generator.next(value));
109
- }
110
- catch (e) {
111
- reject(e);
112
- } }
113
- function rejected(value) { try {
114
- step(generator["throw"](value));
115
- }
116
- catch (e) {
117
- reject(e);
118
- } }
119
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
120
- step((generator = generator.apply(thisArg, _arguments || [])).next());
121
- });
122
- }
123
- function __generator(thisArg, body) {
124
- var _ = { label: 0, sent: function () { if (t[0] & 1)
125
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
126
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
127
- function verb(n) { return function (v) { return step([n, v]); }; }
128
- function step(op) {
129
- if (f)
130
- throw new TypeError("Generator is already executing.");
131
- while (_)
132
- try {
133
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
134
- return t;
135
- if (y = 0, t)
136
- op = [op[0] & 2, t.value];
137
- switch (op[0]) {
138
- case 0:
139
- case 1:
140
- t = op;
141
- break;
142
- case 4:
143
- _.label++;
144
- return { value: op[1], done: false };
145
- case 5:
146
- _.label++;
147
- y = op[1];
148
- op = [0];
149
- continue;
150
- case 7:
151
- op = _.ops.pop();
152
- _.trys.pop();
153
- continue;
154
- default:
155
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
156
- _ = 0;
157
- continue;
158
- }
159
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
160
- _.label = op[1];
161
- break;
162
- }
163
- if (op[0] === 6 && _.label < t[1]) {
164
- _.label = t[1];
165
- t = op;
166
- break;
167
- }
168
- if (t && _.label < t[2]) {
169
- _.label = t[2];
170
- _.ops.push(op);
171
- break;
172
- }
173
- if (t[2])
174
- _.ops.pop();
175
- _.trys.pop();
176
- continue;
177
- }
178
- op = body.call(thisArg, _);
179
- }
180
- catch (e) {
181
- op = [6, e];
182
- y = 0;
183
- }
184
- finally {
185
- f = t = 0;
186
- }
187
- if (op[0] & 5)
188
- throw op[1];
189
- return { value: op[0] ? op[1] : void 0, done: true };
190
- }
191
- }
192
- var __createBinding = Object.create ? (function (o, m, k, k2) {
193
- if (k2 === undefined)
194
- k2 = k;
195
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
196
- }) : (function (o, m, k, k2) {
197
- if (k2 === undefined)
198
- k2 = k;
199
- o[k2] = m[k];
200
- });
201
- function __exportStar(m, o) {
202
- for (var p in m)
203
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
204
- __createBinding(o, m, p);
205
- }
206
- function __values(o) {
207
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
208
- if (m)
209
- return m.call(o);
210
- if (o && typeof o.length === "number")
211
- return {
212
- next: function () {
213
- if (o && i >= o.length)
214
- o = void 0;
215
- return { value: o && o[i++], done: !o };
216
- }
217
- };
218
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
219
- }
220
- function __read(o, n) {
221
- var m = typeof Symbol === "function" && o[Symbol.iterator];
222
- if (!m)
223
- return o;
224
- var i = m.call(o), r, ar = [], e;
225
- try {
226
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
227
- ar.push(r.value);
228
- }
229
- catch (error) {
230
- e = { error: error };
231
- }
232
- finally {
233
- try {
234
- if (r && !r.done && (m = i["return"]))
235
- m.call(i);
236
- }
237
- finally {
238
- if (e)
239
- throw e.error;
240
- }
241
- }
242
- return ar;
243
- }
244
- /** @deprecated */
245
- function __spread() {
246
- for (var ar = [], i = 0; i < arguments.length; i++)
247
- ar = ar.concat(__read(arguments[i]));
248
- return ar;
249
- }
250
- /** @deprecated */
251
- function __spreadArrays() {
252
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
253
- s += arguments[i].length;
254
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
255
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
256
- r[k] = a[j];
257
- return r;
258
- }
259
- function __spreadArray(to, from) {
260
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
261
- to[j] = from[i];
262
- return to;
263
- }
264
- function __await(v) {
265
- return this instanceof __await ? (this.v = v, this) : new __await(v);
266
- }
267
- function __asyncGenerator(thisArg, _arguments, generator) {
268
- if (!Symbol.asyncIterator)
269
- throw new TypeError("Symbol.asyncIterator is not defined.");
270
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
271
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
272
- function verb(n) { if (g[n])
273
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
274
- function resume(n, v) { try {
275
- step(g[n](v));
276
- }
277
- catch (e) {
278
- settle(q[0][3], e);
279
- } }
280
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
281
- function fulfill(value) { resume("next", value); }
282
- function reject(value) { resume("throw", value); }
283
- function settle(f, v) { if (f(v), q.shift(), q.length)
284
- resume(q[0][0], q[0][1]); }
285
- }
286
- function __asyncDelegator(o) {
287
- var i, p;
288
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
289
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
290
- }
291
- function __asyncValues(o) {
292
- if (!Symbol.asyncIterator)
293
- throw new TypeError("Symbol.asyncIterator is not defined.");
294
- var m = o[Symbol.asyncIterator], i;
295
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
296
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
297
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
298
- }
299
- function __makeTemplateObject(cooked, raw) {
300
- if (Object.defineProperty) {
301
- Object.defineProperty(cooked, "raw", { value: raw });
302
- }
303
- else {
304
- cooked.raw = raw;
305
- }
306
- return cooked;
307
- }
308
- ;
309
- var __setModuleDefault = Object.create ? (function (o, v) {
310
- Object.defineProperty(o, "default", { enumerable: true, value: v });
311
- }) : function (o, v) {
312
- o["default"] = v;
313
- };
314
- function __importStar(mod) {
315
- if (mod && mod.__esModule)
316
- return mod;
317
- var result = {};
318
- if (mod != null)
319
- for (var k in mod)
320
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
321
- __createBinding(result, mod, k);
322
- __setModuleDefault(result, mod);
323
- return result;
324
- }
325
- function __importDefault(mod) {
326
- return (mod && mod.__esModule) ? mod : { default: mod };
327
- }
328
- function __classPrivateFieldGet(receiver, state, kind, f) {
329
- if (kind === "a" && !f)
330
- throw new TypeError("Private accessor was defined without a getter");
331
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
332
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
333
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
334
- }
335
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
336
- if (kind === "m")
337
- throw new TypeError("Private method is not writable");
338
- if (kind === "a" && !f)
339
- throw new TypeError("Private accessor was defined without a setter");
340
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
341
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
342
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
343
- }
344
-
345
- var OAuthSingleSignOnService = /** @class */ (function (_super_1) {
346
- __extends(OAuthSingleSignOnService, _super_1);
347
- // It is required to define the constructor with the injection
348
- // definition. If not defined the constructor will be created by
349
- // typescript without an parameters, bc the payload and redirect
350
- // initialization is done in the constructor.
351
- function OAuthSingleSignOnService(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint, authEndpoint, secret, ssoUrl, redirectSignOut, redirectUrl) {
352
- if (profileEndpoint === void 0) { profileEndpoint = null; }
353
- if (authEndpoint === void 0) { authEndpoint = null; }
354
- if (secret === void 0) { secret = null; }
355
- if (ssoUrl === void 0) { ssoUrl = null; }
356
- if (redirectSignOut === void 0) { redirectSignOut = null; }
357
- if (redirectUrl === void 0) { redirectUrl = null; }
358
- var _this = _super_1.call(this, oAuthMethod, getOAuthProfileMethod, router, profileEndpoint, authEndpoint, secret, ssoUrl, redirectSignOut, redirectUrl) || this;
359
- _this.payload = null;
360
- _this.redirect = null;
361
- return _this;
362
- }
363
- OAuthSingleSignOnService.prototype.signInWithEmailAndPassword = function (email, password, remember) {
364
- var _super = Object.create(null, {
365
- signInWithEmailAndPassword: { get: function () { return _super_1.prototype.signInWithEmailAndPassword; } }
366
- });
367
- return __awaiter(this, void 0, void 0, function () {
368
- var response;
369
- return __generator(this, function (_a) {
370
- switch (_a.label) {
371
- case 0: return [4 /*yield*/, _super.signInWithEmailAndPassword.call(this, email, password, remember)];
372
- case 1:
373
- response = _a.sent();
374
- this.redirectToClient();
375
- return [2 /*return*/, response];
376
- }
377
- });
378
- });
379
- };
380
- OAuthSingleSignOnService.prototype.redirectToClient = function () {
381
- window.location.replace(this.redirect + "?accessToken=" + this.accessToken + "&refreshToken=" + this.refreshToken + "&expiresIn=" + this.expiresIn + "&payload=" + this.payload);
382
- };
383
- OAuthSingleSignOnService.prototype.signOut = function () {
384
- return __awaiter(this, void 0, void 0, function () {
385
- return __generator(this, function (_a) {
386
- this.clearStorage();
387
- this.accessToken = null;
388
- this.refreshToken = null;
389
- this.expiresAt = null;
390
- this._isAuthenticated = false;
391
- return [2 /*return*/];
392
- });
393
- });
394
- };
395
- return OAuthSingleSignOnService;
396
- }(i1.OAuthService));
397
- OAuthSingleSignOnService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnService, deps: [{ token: i1.OAuthMethod }, { token: i1.GetOAuthProfileMethod }, { token: i5.Router }, { token: i1.PROFILE_AUTH_ENDPOINT, optional: true }, { token: i1.OAUTH_AUTH_ENDPOINT, optional: true }, { token: i1.OAUTH_SECRET, optional: true }, { token: i1.OAUTH_SSO_URL, optional: true }, { token: i1.RXAP_O_AUTH_REDIRECT_SIGN_OUT, optional: true }, { token: i1.RXAP_O_AUTH_REDIRECT_URL, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
398
- OAuthSingleSignOnService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnService });
399
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnService, decorators: [{
400
- type: i0.Injectable
401
- }], ctorParameters: function () {
402
- return [{ type: i1__namespace.OAuthMethod, decorators: [{
403
- type: i0.Inject,
404
- args: [i1.OAuthMethod]
405
- }] }, { type: i1__namespace.GetOAuthProfileMethod, decorators: [{
406
- type: i0.Inject,
407
- args: [i1.GetOAuthProfileMethod]
408
- }] }, { type: i5__namespace.Router, decorators: [{
409
- type: i0.Inject,
410
- args: [i5.Router]
411
- }] }, { type: undefined, decorators: [{
412
- type: i0.Optional
413
- }, {
414
- type: i0.Inject,
415
- args: [i1.PROFILE_AUTH_ENDPOINT]
416
- }] }, { type: undefined, decorators: [{
417
- type: i0.Optional
418
- }, {
419
- type: i0.Inject,
420
- args: [i1.OAUTH_AUTH_ENDPOINT]
421
- }] }, { type: undefined, decorators: [{
422
- type: i0.Optional
423
- }, {
424
- type: i0.Inject,
425
- args: [i1.OAUTH_SECRET]
426
- }] }, { type: undefined, decorators: [{
427
- type: i0.Optional
428
- }, {
429
- type: i0.Inject,
430
- args: [i1.OAUTH_SSO_URL]
431
- }] }, { type: undefined, decorators: [{
432
- type: i0.Optional
433
- }, {
434
- type: i0.Inject,
435
- args: [i1.RXAP_O_AUTH_REDIRECT_SIGN_OUT]
436
- }] }, { type: undefined, decorators: [{
437
- type: i0.Optional
438
- }, {
439
- type: i0.Inject,
440
- args: [i1.RXAP_O_AUTH_REDIRECT_URL]
441
- }] }];
442
- } });
443
-
444
- var ContinueComponent = /** @class */ (function () {
445
- function ContinueComponent(route, router, oAuthService, redirectLogin) {
446
- this.route = route;
447
- this.router = router;
448
- this.oAuthService = oAuthService;
449
- this.redirectLogin = redirectLogin;
450
- }
451
- ContinueComponent.prototype.ngOnInit = function () {
452
- this.profile = this.route.data
453
- .pipe(operators.take(1), operators.map(function (data) { return data.profile; }))
454
- .toPromise();
455
- };
456
- ContinueComponent.prototype.signOut = function () {
457
- this.oAuthService.signOut();
458
- return this.router.navigate(this.redirectLogin);
459
- };
460
- ContinueComponent.prototype.redirect = function () {
461
- this.oAuthService.redirectToClient();
462
- };
463
- return ContinueComponent;
464
- }());
465
- ContinueComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponent, deps: [{ token: i5.ActivatedRoute }, { token: i5.Router }, { token: i1.OAuthService }, { token: i1.RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0__namespace.ɵɵFactoryTarget.Component });
466
- ContinueComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ContinueComponent, selector: "rxap-continue", host: { classAttribute: "rxap-continue" }, ngImport: i0__namespace, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <div *ngIf=\"profile | async as p\" [name]=\"p.username\" [rxapAvatarBackgroundImage]=\"p.username\"\n class=\"avatar-icon\"></div>\n\n </div>\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\">\n\n <p><span i18n>Currently Sign In as:</span> <span class=\"username\"><br>{{(profile | async)?.username}}</span></p>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"8px\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"redirect()\" color=\"primary\" i18n mat-raised-button>Continue</button>\n </div>\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signOut()\" color=\"accent\" i18n mat-stroked-button>Change Account</button>\n </div>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px;border-radius:100%}.inner .content .email-input,.inner .content .password-input{width:320px}.inner .content .email-input .prefix-icon,.inner .content .password-input .prefix-icon{width:24px;height:24px;display:flex;justify-content:center;align-items:center}.inner .content .email-input ::ng-deep .mat-form-field-prefix,.inner .content .password-input ::ng-deep .mat-form-field-prefix{align-self:flex-end;margin:4px}.inner .content [type=submit]{width:128px;text-transform:uppercase}.inner .loading-bar{position:absolute;bottom:0;left:0;right:0;top:auto}"], components: [{ type: i1__namespace$1.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: i2__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: i2__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: i2__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: i2__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"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: ["name", "rxapAvatarBackgroundImage"] }], pipes: { "async": i3__namespace.AsyncPipe }, animations: [
467
- animations.trigger('fadeAnimation', [
468
- // the "in" style determines the "resting" state of the element when it is visible.
469
- animations.state('in', animations.style({ opacity: 1 })),
470
- // fade in when created. this could also be written as transition('void => *')
471
- animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(300)]),
472
- // fade out when destroyed. this could also be written as transition('void => *')
473
- animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 }))),
474
- ]),
475
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
476
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponent, decorators: [{
477
- type: i0.Component,
478
- args: [{
479
- selector: 'rxap-continue',
480
- templateUrl: './continue.component.html',
481
- styleUrls: ['./continue.component.scss'],
482
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
483
- host: { class: 'rxap-continue' },
484
- animations: [
485
- animations.trigger('fadeAnimation', [
486
- // the "in" style determines the "resting" state of the element when it is visible.
487
- animations.state('in', animations.style({ opacity: 1 })),
488
- // fade in when created. this could also be written as transition('void => *')
489
- animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(300)]),
490
- // fade out when destroyed. this could also be written as transition('void => *')
491
- animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 }))),
492
- ]),
493
- ],
494
- }]
495
- }], ctorParameters: function () {
496
- return [{ type: i5__namespace.ActivatedRoute, decorators: [{
497
- type: i0.Inject,
498
- args: [i5.ActivatedRoute]
499
- }] }, { type: i5__namespace.Router, decorators: [{
500
- type: i0.Inject,
501
- args: [i5.Router]
502
- }] }, { type: OAuthSingleSignOnService, decorators: [{
503
- type: i0.Inject,
504
- args: [i1.OAuthService]
505
- }] }, { type: undefined, decorators: [{
506
- type: i0.Inject,
507
- args: [i1.RXAP_O_AUTH_REDIRECT_SIGN_IN]
508
- }] }];
509
- } });
510
-
511
- var ContinueComponentModule = /** @class */ (function () {
512
- function ContinueComponentModule() {
513
- }
514
- return ContinueComponentModule;
515
- }());
516
- ContinueComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
517
- ContinueComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponentModule, declarations: [ContinueComponent], imports: [flexLayout.FlexLayoutModule,
518
- icon.MatIconModule,
519
- i1$1.MatButtonModule,
520
- i3.CommonModule,
521
- i4.AvatarBackgroundImageDirectiveModule], exports: [ContinueComponent] });
522
- ContinueComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponentModule, imports: [[
523
- flexLayout.FlexLayoutModule,
524
- icon.MatIconModule,
525
- i1$1.MatButtonModule,
526
- i3.CommonModule,
527
- i4.AvatarBackgroundImageDirectiveModule
528
- ]] });
529
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ContinueComponentModule, decorators: [{
530
- type: i0.NgModule,
531
- args: [{
532
- declarations: [
533
- ContinueComponent
534
- ],
535
- imports: [
536
- flexLayout.FlexLayoutModule,
537
- icon.MatIconModule,
538
- i1$1.MatButtonModule,
539
- i3.CommonModule,
540
- i4.AvatarBackgroundImageDirectiveModule
541
- ],
542
- exports: [
543
- ContinueComponent
544
- ]
545
- }]
546
- }] });
547
-
548
- function DefaultRedirectContinueFactory() {
549
- return ['/', 'continue'];
550
- }
551
- var RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE = new i0.InjectionToken('rxap/o-auth/single-sign-on/redirect-continue', {
552
- providedIn: 'root',
553
- factory: DefaultRedirectContinueFactory
554
- });
555
- var RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED = new i0.InjectionToken('rxap/o-auth/single-sign-on/redirect-continue-disabled');
556
-
557
- var OAuthSingleSignOnGuard = /** @class */ (function () {
558
- function OAuthSingleSignOnGuard(authentication, router, redirectContinue, redirectLogin, redirectContinueDisabled) {
559
- this.authentication = authentication;
560
- this.router = router;
561
- this.redirectContinue = redirectContinue;
562
- this.redirectLogin = redirectLogin;
563
- this.redirectContinueDisabled = redirectContinueDisabled;
564
- }
565
- OAuthSingleSignOnGuard.prototype.canActivate = function (route) {
566
- return __awaiter(this, void 0, void 0, function () {
567
- var redirect, secret, payload, action, isAuthenticated;
568
- return __generator(this, function (_a) {
569
- switch (_a.label) {
570
- case 0:
571
- redirect = route.queryParamMap.get('redirect');
572
- secret = route.queryParamMap.get('secret');
573
- payload = route.queryParamMap.get('payload');
574
- action = route.queryParamMap.get('action');
575
- if (!redirect || !secret) {
576
- console.warn("The query params 'redirect' or 'secret' is not defined!");
577
- return [2 /*return*/, this.router.createUrlTree(['error'])];
578
- }
579
- this.authentication.redirect = atob(redirect);
580
- this.authentication.payload = payload;
581
- this.authentication.secret = secret;
582
- if (!action) return [3 /*break*/, 2];
583
- if (!(action === 'signOut')) return [3 /*break*/, 2];
584
- return [4 /*yield*/, this.authentication.signOut()];
585
- case 1:
586
- _a.sent();
587
- return [2 /*return*/, this.router.createUrlTree(this.redirectLogin)];
588
- case 2: return [4 /*yield*/, this.authentication.isAuthenticated()];
589
- case 3:
590
- isAuthenticated = _a.sent();
591
- console.log('isAuthenticated', isAuthenticated);
592
- if (isAuthenticated) {
593
- if (this.redirectContinueDisabled) {
594
- this.authentication.redirectToClient();
595
- return [2 /*return*/, true];
596
- }
597
- return [2 /*return*/, this.router.createUrlTree(this.redirectContinue)];
598
- }
599
- return [2 /*return*/, this.router.createUrlTree(this.redirectLogin)];
600
- }
601
- });
602
- });
603
- };
604
- return OAuthSingleSignOnGuard;
605
- }());
606
- OAuthSingleSignOnGuard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnGuard, deps: [{ token: i1.OAuthService }, { token: i5.Router }, { token: RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE }, { token: i1.RXAP_O_AUTH_REDIRECT_SIGN_IN }, { token: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
607
- OAuthSingleSignOnGuard.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnGuard });
608
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnGuard, decorators: [{
609
- type: i0.Injectable
610
- }], ctorParameters: function () {
611
- return [{ type: OAuthSingleSignOnService, decorators: [{
612
- type: i0.Inject,
613
- args: [i1.OAuthService]
614
- }] }, { type: i5__namespace.Router, decorators: [{
615
- type: i0.Inject,
616
- args: [i5.Router]
617
- }] }, { type: undefined, decorators: [{
618
- type: i0.Inject,
619
- args: [RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE]
620
- }] }, { type: undefined, decorators: [{
621
- type: i0.Inject,
622
- args: [i1.RXAP_O_AUTH_REDIRECT_SIGN_IN]
623
- }] }, { type: undefined, decorators: [{
624
- type: i0.Optional
625
- }, {
626
- type: i0.Inject,
627
- args: [RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED]
628
- }] }];
629
- } });
630
-
631
- var ErrorComponent = /** @class */ (function () {
632
- function ErrorComponent() {
633
- }
634
- Object.defineProperty(ErrorComponent.prototype, "topLevelDomain", {
635
- get: function () {
636
- var match = location.hostname.match(/([^.]+\.[^.]+$)/);
637
- if (match) {
638
- return match[0];
639
- }
640
- else {
641
- return location.hostname;
642
- }
643
- },
644
- enumerable: false,
645
- configurable: true
646
- });
647
- Object.defineProperty(ErrorComponent.prototype, "mainApplicationUrl", {
648
- get: function () {
649
- return location.protocol + "//" + this.topLevelDomain;
650
- },
651
- enumerable: false,
652
- configurable: true
653
- });
654
- return ErrorComponent;
655
- }());
656
- ErrorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
657
- ErrorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: ErrorComponent, selector: "rxap-error", host: { classAttribute: "rxap-error" }, ngImport: i0__namespace, template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\n\n <div class=\"content\" fxLayout=\"column\" fxLayoutGap=\"32px\">\n\n <div fxLayout=\"column\" fxLayoutGap=\"8px\">\n\n <h2 i18n=\"@@rxap-oauth.single-sign-on.error.title\">Error</h2>\n <p i18n=\"@@rxap-oauth.single-sign-on.error.message\">Please open the main application again.</p>\n <a [href]=\"mainApplicationUrl\" color=\"primary\" mat-raised-button>\n <ng-container i18n=\"@@rxap-oauth.single-sign-on.error.action\">Navigate to main application</ng-container>\n </a>\n\n </div>\n\n </div>\n\n</div>\n", styles: [".inner{padding:64px;position:relative}"], components: [{ type: i1__namespace$1.MatAnchor, selector: "a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab], a[mat-stroked-button], a[mat-flat-button]", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matButton", "matAnchor"] }], directives: [{ type: i2__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: i2__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: i2__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"] }], animations: [
658
- animations.trigger('fadeAnimation', [
659
- // the "in" style determines the "resting" state of the element when it is visible.
660
- animations.state('in', animations.style({ opacity: 1 })),
661
- // fade in when created. this could also be written as transition('void => *')
662
- animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(300)]),
663
- // fade out when destroyed. this could also be written as transition('void => *')
664
- animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 })))
665
- ])
666
- ], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
667
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponent, decorators: [{
668
- type: i0.Component,
669
- args: [{
670
- selector: 'rxap-error',
671
- templateUrl: './error.component.html',
672
- styleUrls: ['./error.component.scss'],
673
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
674
- host: { class: 'rxap-error' },
675
- animations: [
676
- animations.trigger('fadeAnimation', [
677
- // the "in" style determines the "resting" state of the element when it is visible.
678
- animations.state('in', animations.style({ opacity: 1 })),
679
- // fade in when created. this could also be written as transition('void => *')
680
- animations.transition(':enter', [animations.style({ opacity: 0 }), animations.animate(300)]),
681
- // fade out when destroyed. this could also be written as transition('void => *')
682
- animations.transition(':leave', animations.animate(300, animations.style({ opacity: 0 })))
683
- ])
684
- ]
685
- }]
686
- }] });
687
-
688
- var ErrorComponentModule = /** @class */ (function () {
689
- function ErrorComponentModule() {
690
- }
691
- return ErrorComponentModule;
692
- }());
693
- ErrorComponentModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponentModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
694
- ErrorComponentModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponentModule, declarations: [ErrorComponent], imports: [flexLayout.FlexLayoutModule,
695
- i1$1.MatButtonModule], exports: [ErrorComponent] });
696
- ErrorComponentModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponentModule, imports: [[
697
- flexLayout.FlexLayoutModule,
698
- i1$1.MatButtonModule
699
- ]] });
700
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: ErrorComponentModule, decorators: [{
701
- type: i0.NgModule,
702
- args: [{
703
- declarations: [
704
- ErrorComponent
705
- ],
706
- imports: [
707
- flexLayout.FlexLayoutModule,
708
- i1$1.MatButtonModule
709
- ],
710
- exports: [
711
- ErrorComponent
712
- ]
713
- }]
714
- }] });
715
-
716
- var OAuthSingleSignOnRoutingModule = /** @class */ (function () {
717
- function OAuthSingleSignOnRoutingModule() {
718
- }
719
- OAuthSingleSignOnRoutingModule.forRouting = function (options) {
720
- if (options === void 0) { options = {}; }
721
- var providers = [
722
- OAuthSingleSignOnGuard
723
- ];
724
- if (options.redirectContinueDisabled) {
725
- providers.push({
726
- provide: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED,
727
- useValue: options.redirectContinueDisabled
728
- });
729
- }
730
- return {
731
- ngModule: OAuthSingleSignOnRoutingModule,
732
- providers: providers
733
- };
734
- };
735
- return OAuthSingleSignOnRoutingModule;
736
- }());
737
- OAuthSingleSignOnRoutingModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnRoutingModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
738
- OAuthSingleSignOnRoutingModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnRoutingModule, exports: [ContinueComponentModule,
739
- i1.LoadingComponentModule,
740
- i1.ContainerComponentModule,
741
- ErrorComponentModule] });
742
- OAuthSingleSignOnRoutingModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnRoutingModule, providers: [
743
- OAuthSingleSignOnGuard
744
- ], imports: [ContinueComponentModule,
745
- i1.LoadingComponentModule,
746
- i1.ContainerComponentModule,
747
- ErrorComponentModule] });
748
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: OAuthSingleSignOnRoutingModule, decorators: [{
749
- type: i0.NgModule,
750
- args: [{
751
- exports: [
752
- ContinueComponentModule,
753
- i1.LoadingComponentModule,
754
- i1.ContainerComponentModule,
755
- ErrorComponentModule
756
- ],
757
- providers: [
758
- OAuthSingleSignOnGuard
759
- ]
760
- }]
761
- }] });
762
-
763
- var RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES = [
764
- {
765
- path: '',
766
- component: i1.ContainerComponent,
767
- children: [
768
- {
769
- path: 'continue',
770
- component: ContinueComponent,
771
- resolve: {
772
- profile: i1.ProfileResolve
773
- }
774
- },
775
- {
776
- path: 'error',
777
- component: ErrorComponent
778
- },
779
- {
780
- path: '',
781
- canActivate: [OAuthSingleSignOnGuard],
782
- component: i1.LoadingComponent
783
- },
784
- {
785
- path: '**',
786
- redirectTo: ''
787
- }
788
- ]
789
- }
790
- ];
791
-
792
- /**
793
- * Generated bundle index. Do not edit.
794
- */
795
-
796
- exports.ContinueComponent = ContinueComponent;
797
- exports.ContinueComponentModule = ContinueComponentModule;
798
- exports.DefaultRedirectContinueFactory = DefaultRedirectContinueFactory;
799
- exports.ErrorComponent = ErrorComponent;
800
- exports.ErrorComponentModule = ErrorComponentModule;
801
- exports.OAuthSingleSignOnGuard = OAuthSingleSignOnGuard;
802
- exports.OAuthSingleSignOnRoutingModule = OAuthSingleSignOnRoutingModule;
803
- exports.OAuthSingleSignOnService = OAuthSingleSignOnService;
804
- exports.RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE = RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE;
805
- exports.RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES = RXAP_O_AUTH_SINGLE_SIGN_ON_ROUTES;
806
- exports.RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED = RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED;
807
-
808
- Object.defineProperty(exports, '__esModule', { value: true });
809
-
810
- }));
811
- //# sourceMappingURL=rxap-oauth-single-sign-on.umd.js.map