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