@rxap/oauth 16.0.0-dev.0 → 16.0.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +412 -0
- package/LICENSE +621 -27
- package/LICENSE.md +621 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +1 -5
- package/esm2022/lib/container/container.component.mjs +17 -18
- package/esm2022/lib/get-o-auth-profile.method.mjs +9 -10
- package/esm2022/lib/loading/loading.component.mjs +9 -9
- package/esm2022/lib/o-auth-extract.guard.mjs +10 -9
- package/esm2022/lib/o-auth-redirect.guard.mjs +6 -7
- package/esm2022/lib/o-auth.method.mjs +12 -13
- package/esm2022/lib/o-auth.module.mjs +14 -14
- package/esm2022/lib/o-auth.service.mjs +32 -33
- package/esm2022/lib/profile.resolve.mjs +6 -7
- package/esm2022/lib/routes.mjs +7 -7
- package/esm2022/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +20 -18
- package/esm2022/lib/tokens.mjs +3 -3
- package/esm2022/rxap-oauth.mjs +1 -1
- package/esm2022/single-sign-on/index.mjs +8 -0
- package/esm2022/single-sign-on/lib/continue/continue.component.mjs +30 -23
- package/esm2022/single-sign-on/lib/error/error.component.mjs +15 -14
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +15 -30
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +9 -10
- package/esm2022/single-sign-on/lib/o-auth-single-sign-on.service.mjs +7 -8
- package/esm2022/single-sign-on/lib/routes.mjs +10 -10
- package/esm2022/single-sign-on/lib/tokens.mjs +2 -2
- package/esm2022/single-sign-on/rxap-oauth-single-sign-on.mjs +2 -2
- package/fesm2022/rxap-oauth-single-sign-on.mjs +81 -144
- package/fesm2022/rxap-oauth-single-sign-on.mjs.map +1 -1
- package/fesm2022/rxap-oauth.mjs +104 -189
- package/fesm2022/rxap-oauth.mjs.map +1 -1
- package/index.d.ts +0 -4
- package/lib/container/container.component.d.ts +1 -1
- package/lib/get-o-auth-profile.method.d.ts +1 -1
- package/lib/loading/loading.component.d.ts +1 -1
- package/lib/o-auth-extract.guard.d.ts +1 -1
- package/lib/o-auth.method.d.ts +2 -2
- package/lib/o-auth.service.d.ts +3 -3
- package/lib/sign-in-with-redirect/sign-in-with-redirect.component.d.ts +1 -1
- package/package.json +52 -54
- package/single-sign-on/index.d.ts +7 -5
- package/single-sign-on/lib/continue/continue.component.d.ts +1 -1
- package/single-sign-on/lib/error/error.component.d.ts +1 -1
- package/single-sign-on/lib/o-auth-single-sign-on-routing.module.d.ts +1 -4
- package/single-sign-on/lib/o-auth-single-sign-on.service.d.ts +1 -1
- package/single-sign-on/src/lib/continue/_continue.component.theme.scss +39 -0
- package/single-sign-on/src/lib/error/_error.component.theme.scss +34 -0
- package/src/lib/container/_container.component.theme.scss +28 -0
- package/src/lib/sign-in-with-redirect/_sign-in-with-redirect.component.theme.scss +31 -0
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/esm2022/lib/container/container.component.module.mjs +0 -21
- package/esm2022/lib/loading/loading.component.module.mjs +0 -25
- package/esm2022/lib/o-auth-routing.module.mjs +0 -26
- package/esm2022/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.mjs +0 -37
- package/esm2022/single-sign-on/lib/continue/continue.component.module.mjs +0 -41
- package/esm2022/single-sign-on/lib/error/error.component.module.mjs +0 -29
- package/esm2022/single-sign-on/public_api.mjs +0 -10
- package/lib/container/container.component.module.d.ts +0 -8
- package/lib/loading/loading.component.module.d.ts +0 -8
- package/lib/o-auth-routing.module.d.ts +0 -9
- package/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.d.ts +0 -12
- package/migration.json +0 -4
- package/single-sign-on/lib/continue/continue.component.module.d.ts +0 -12
- package/single-sign-on/lib/error/error.component.module.d.ts +0 -9
- package/single-sign-on/public_api.d.ts +0 -9
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
package/fesm2022/rxap-oauth.mjs
CHANGED
|
@@ -2,21 +2,19 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { InjectionToken, Injectable, Inject, Optional, NgModule, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
5
|
+
import { firstValueFrom, ReplaySubject } from 'rxjs';
|
|
5
6
|
import * as i1$1 from '@angular/router';
|
|
6
|
-
import { Router,
|
|
7
|
-
import { ReplaySubject } from 'rxjs';
|
|
7
|
+
import { Router, RouterOutlet } from '@angular/router';
|
|
8
8
|
import { AuthenticationEventType } from '@rxap/authentication';
|
|
9
9
|
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
10
|
-
import * as i1$2 from '@angular/material/
|
|
11
|
-
import {
|
|
12
|
-
import * as
|
|
13
|
-
import {
|
|
14
|
-
import * as i3 from '@angular/
|
|
15
|
-
import * as i4 from '@angular/material/icon';
|
|
10
|
+
import * as i1$2 from '@angular/material/progress-bar';
|
|
11
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
12
|
+
import * as i4 from '@angular/material/button';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import * as i3 from '@angular/material/icon';
|
|
16
15
|
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
16
|
+
import * as i2 from '@angular/flex-layout/flex';
|
|
17
|
+
import { FlexModule } from '@angular/flex-layout/flex';
|
|
20
18
|
|
|
21
19
|
const PROFILE_AUTH_ENDPOINT = new InjectionToken('PROFILE_AUTH_ENDPOINT');
|
|
22
20
|
class GetOAuthProfileMethod {
|
|
@@ -29,19 +27,18 @@ class GetOAuthProfileMethod {
|
|
|
29
27
|
if (!profileEndpoint) {
|
|
30
28
|
throw new Error('The profile endpoint is not defined');
|
|
31
29
|
}
|
|
32
|
-
return this.http
|
|
30
|
+
return firstValueFrom(this.http
|
|
33
31
|
.get(profileEndpoint, {
|
|
34
32
|
headers: {
|
|
35
33
|
Authorization: `Bearer ${parameters.accessToken}`,
|
|
36
34
|
},
|
|
37
35
|
withCredentials: parameters.withCredentials ?? true,
|
|
38
|
-
})
|
|
39
|
-
.toPromise();
|
|
36
|
+
}));
|
|
40
37
|
}
|
|
41
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
42
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
38
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: GetOAuthProfileMethod, deps: [{ token: HttpClient }, { token: PROFILE_AUTH_ENDPOINT, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
39
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: GetOAuthProfileMethod, providedIn: 'root' }); }
|
|
43
40
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: GetOAuthProfileMethod, decorators: [{
|
|
45
42
|
type: Injectable,
|
|
46
43
|
args: [{ providedIn: 'root' }]
|
|
47
44
|
}], ctorParameters: function () { return [{ type: i1.HttpClient, decorators: [{
|
|
@@ -60,8 +57,8 @@ function IsOAuthMethodWithRefreshTokenParameters(parameters) {
|
|
|
60
57
|
}
|
|
61
58
|
function IsOAuthMethodWithUsernamePasswordParameters(parameters) {
|
|
62
59
|
// eslint-disable-next-line no-prototype-builtins
|
|
63
|
-
return (parameters
|
|
64
|
-
parameters
|
|
60
|
+
return (!!parameters['username'] &&
|
|
61
|
+
!!parameters['password']);
|
|
65
62
|
}
|
|
66
63
|
function AssertOAuthMethodWithUsernamePasswordParameters(parameters) {
|
|
67
64
|
if (!IsOAuthMethodWithUsernamePasswordParameters(parameters)) {
|
|
@@ -130,12 +127,11 @@ class OAuthMethod {
|
|
|
130
127
|
else {
|
|
131
128
|
headers = headers.append('Authorization', `Basic ${parameters.secret}`);
|
|
132
129
|
}
|
|
133
|
-
const response = await this.http
|
|
130
|
+
const response = await firstValueFrom(this.http
|
|
134
131
|
.post(parameters.authEndpoint, params.toString(), {
|
|
135
132
|
headers,
|
|
136
133
|
withCredentials: parameters.withCredentials ?? true,
|
|
137
|
-
})
|
|
138
|
-
.toPromise();
|
|
134
|
+
}));
|
|
139
135
|
return {
|
|
140
136
|
accessToken: response.access_token,
|
|
141
137
|
refreshToken: response.refresh_token,
|
|
@@ -155,10 +151,10 @@ class OAuthMethod {
|
|
|
155
151
|
}
|
|
156
152
|
throw new Error('Could not guess the grant type');
|
|
157
153
|
}
|
|
158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
159
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
154
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthMethod, deps: [{ token: HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
155
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthMethod, providedIn: 'root' }); }
|
|
160
156
|
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthMethod, decorators: [{
|
|
162
158
|
type: Injectable,
|
|
163
159
|
args: [{ providedIn: 'root' }]
|
|
164
160
|
}], ctorParameters: function () { return [{ type: i1.HttpClient, decorators: [{
|
|
@@ -171,7 +167,7 @@ function DefaultRedirectSignInFactory() {
|
|
|
171
167
|
}
|
|
172
168
|
const RXAP_O_AUTH_REDIRECT_SIGN_IN = new InjectionToken('rxap/o-auth/redirect-sign-in', {
|
|
173
169
|
providedIn: 'root',
|
|
174
|
-
factory: DefaultRedirectSignInFactory
|
|
170
|
+
factory: DefaultRedirectSignInFactory,
|
|
175
171
|
});
|
|
176
172
|
const RXAP_O_AUTH_REDIRECT_SIGN_OUT = new InjectionToken('rxap/o-auth/redirect-sign-out');
|
|
177
173
|
function DefaultRedirectUrl() {
|
|
@@ -179,7 +175,7 @@ function DefaultRedirectUrl() {
|
|
|
179
175
|
}
|
|
180
176
|
const RXAP_O_AUTH_REDIRECT_URL = new InjectionToken('rxap/o-auth/redirect-url', {
|
|
181
177
|
providedIn: 'root',
|
|
182
|
-
factory: DefaultRedirectUrl
|
|
178
|
+
factory: DefaultRedirectUrl,
|
|
183
179
|
});
|
|
184
180
|
|
|
185
181
|
const OAUTH_SECRET = new InjectionToken('OAUTH_SECRET');
|
|
@@ -191,6 +187,20 @@ const REFRESH_TOKEN_LOCAL_STORAGE_KEY = 'refresh_token';
|
|
|
191
187
|
const EXPIRES_AT_LOCAL_STORAGE_KEY = 'expires_at';
|
|
192
188
|
const REMEMBER_LOCAL_STORAGE_KEY = 'remember';
|
|
193
189
|
class OAuthService {
|
|
190
|
+
constructor(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint = null, authEndpoint = null, secret = null, ssoUrl = null, redirectSignOut = null, redirectUrl = null, clientId = null) {
|
|
191
|
+
this.oAuthMethod = oAuthMethod;
|
|
192
|
+
this.getOAuthProfileMethod = getOAuthProfileMethod;
|
|
193
|
+
this.router = router;
|
|
194
|
+
this.profileEndpoint = profileEndpoint;
|
|
195
|
+
this.authEndpoint = authEndpoint;
|
|
196
|
+
this.secret = secret;
|
|
197
|
+
this.ssoUrl = ssoUrl;
|
|
198
|
+
this.redirectSignOut = redirectSignOut;
|
|
199
|
+
this.redirectUrl = redirectUrl;
|
|
200
|
+
this.clientId = clientId;
|
|
201
|
+
this.events$ = new ReplaySubject();
|
|
202
|
+
this._isAuthenticated = null;
|
|
203
|
+
}
|
|
194
204
|
get expiresAt() {
|
|
195
205
|
const expiresAt = this.getItem(EXPIRES_AT_LOCAL_STORAGE_KEY);
|
|
196
206
|
if (expiresAt) {
|
|
@@ -252,20 +262,6 @@ class OAuthService {
|
|
|
252
262
|
get profile() {
|
|
253
263
|
return this._profile;
|
|
254
264
|
}
|
|
255
|
-
constructor(oAuthMethod, getOAuthProfileMethod, router, profileEndpoint = null, authEndpoint = null, secret = null, ssoUrl = null, redirectSignOut = null, redirectUrl = null, clientId = null) {
|
|
256
|
-
this.oAuthMethod = oAuthMethod;
|
|
257
|
-
this.getOAuthProfileMethod = getOAuthProfileMethod;
|
|
258
|
-
this.router = router;
|
|
259
|
-
this.profileEndpoint = profileEndpoint;
|
|
260
|
-
this.authEndpoint = authEndpoint;
|
|
261
|
-
this.secret = secret;
|
|
262
|
-
this.ssoUrl = ssoUrl;
|
|
263
|
-
this.redirectSignOut = redirectSignOut;
|
|
264
|
-
this.redirectUrl = redirectUrl;
|
|
265
|
-
this.clientId = clientId;
|
|
266
|
-
this.events$ = new ReplaySubject();
|
|
267
|
-
this._isAuthenticated = null;
|
|
268
|
-
}
|
|
269
265
|
signInWithRedirect(lastUrl) {
|
|
270
266
|
if (!this.redirectUrl) {
|
|
271
267
|
throw new Error('Redirect url is not defined');
|
|
@@ -333,7 +329,7 @@ class OAuthService {
|
|
|
333
329
|
password: password,
|
|
334
330
|
authEndpoint: this.authEndpoint,
|
|
335
331
|
secret: this.secret,
|
|
336
|
-
clientId: this.clientId ?? undefined
|
|
332
|
+
clientId: this.clientId ?? undefined,
|
|
337
333
|
}).catch(e => {
|
|
338
334
|
this.events$.next({ type: AuthenticationEventType.OnAuthError });
|
|
339
335
|
throw e;
|
|
@@ -350,7 +346,7 @@ class OAuthService {
|
|
|
350
346
|
try {
|
|
351
347
|
profile = await this.getOAuthProfileMethod.call({
|
|
352
348
|
accessToken: this.accessToken,
|
|
353
|
-
profileEndpoint: this.profileEndpoint
|
|
349
|
+
profileEndpoint: this.profileEndpoint,
|
|
354
350
|
});
|
|
355
351
|
}
|
|
356
352
|
catch (e) {
|
|
@@ -405,6 +401,12 @@ class OAuthService {
|
|
|
405
401
|
this._isAuthenticated = true;
|
|
406
402
|
this.events$.next({ type: AuthenticationEventType.OnAuthSuccess });
|
|
407
403
|
}
|
|
404
|
+
clearStorage() {
|
|
405
|
+
this.removeItem(ACCESS_TOKEN_LOCAL_STORAGE_KEY);
|
|
406
|
+
this.removeItem(REFRESH_TOKEN_LOCAL_STORAGE_KEY);
|
|
407
|
+
this.removeItem(REMEMBER_LOCAL_STORAGE_KEY);
|
|
408
|
+
this.removeItem(EXPIRES_AT_LOCAL_STORAGE_KEY);
|
|
409
|
+
}
|
|
408
410
|
getKey(key) {
|
|
409
411
|
return [this.secret, key].join('__');
|
|
410
412
|
}
|
|
@@ -417,12 +419,6 @@ class OAuthService {
|
|
|
417
419
|
removeItem(key) {
|
|
418
420
|
localStorage.removeItem(this.getKey(key));
|
|
419
421
|
}
|
|
420
|
-
clearStorage() {
|
|
421
|
-
this.removeItem(ACCESS_TOKEN_LOCAL_STORAGE_KEY);
|
|
422
|
-
this.removeItem(REFRESH_TOKEN_LOCAL_STORAGE_KEY);
|
|
423
|
-
this.removeItem(REMEMBER_LOCAL_STORAGE_KEY);
|
|
424
|
-
this.removeItem(EXPIRES_AT_LOCAL_STORAGE_KEY);
|
|
425
|
-
}
|
|
426
422
|
async signInWithRefreshToken(refreshToken) {
|
|
427
423
|
if (!this.secret) {
|
|
428
424
|
throw new Error('The oauth secret is not defined');
|
|
@@ -439,10 +435,10 @@ class OAuthService {
|
|
|
439
435
|
this.authenticated(response);
|
|
440
436
|
return response;
|
|
441
437
|
}
|
|
442
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
443
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthService, deps: [{ token: OAuthMethod }, { token: GetOAuthProfileMethod }, { token: Router }, { token: PROFILE_AUTH_ENDPOINT, optional: true }, { token: OAUTH_AUTH_ENDPOINT, optional: true }, { token: OAUTH_SECRET, optional: true }, { token: OAUTH_SSO_URL, optional: true }, { token: RXAP_O_AUTH_REDIRECT_SIGN_OUT, optional: true }, { token: RXAP_O_AUTH_REDIRECT_URL, optional: true }, { token: OAUTH_CLIENT_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
439
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthService, providedIn: 'root' }); }
|
|
444
440
|
}
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthService, decorators: [{
|
|
446
442
|
type: Injectable,
|
|
447
443
|
args: [{ providedIn: 'root' }]
|
|
448
444
|
}], ctorParameters: function () { return [{ type: OAuthMethod, decorators: [{
|
|
@@ -497,7 +493,9 @@ class OAuthExtractGuard {
|
|
|
497
493
|
this.oAuthService = oAuthService;
|
|
498
494
|
}
|
|
499
495
|
canActivate(route) {
|
|
500
|
-
if (route.queryParamMap.has('accessToken') &&
|
|
496
|
+
if (route.queryParamMap.has('accessToken') &&
|
|
497
|
+
route.queryParamMap.has('refreshToken') &&
|
|
498
|
+
route.queryParamMap.has('expiresIn')) {
|
|
501
499
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
502
500
|
const accessToken = route.queryParamMap.get('accessToken');
|
|
503
501
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -510,7 +508,7 @@ class OAuthExtractGuard {
|
|
|
510
508
|
accessToken,
|
|
511
509
|
refreshToken,
|
|
512
510
|
expiresIn,
|
|
513
|
-
expiresAt
|
|
511
|
+
expiresAt,
|
|
514
512
|
}, true);
|
|
515
513
|
let redirectUrl = '/';
|
|
516
514
|
if (payloadBase64) {
|
|
@@ -532,10 +530,10 @@ class OAuthExtractGuard {
|
|
|
532
530
|
}
|
|
533
531
|
return this.router.createUrlTree([...route.url.map(url => url.path), 'redirect']);
|
|
534
532
|
}
|
|
535
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
536
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthExtractGuard, deps: [{ token: i1$1.Router }, { token: OAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
534
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthExtractGuard, providedIn: 'root' }); }
|
|
537
535
|
}
|
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthExtractGuard, decorators: [{
|
|
539
537
|
type: Injectable,
|
|
540
538
|
args: [{ providedIn: 'root' }]
|
|
541
539
|
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: OAuthService }]; } });
|
|
@@ -556,10 +554,10 @@ class OAuthRedirectGuard {
|
|
|
556
554
|
canActivateChild(childRoute, state) {
|
|
557
555
|
return this.canActivate(childRoute, state);
|
|
558
556
|
}
|
|
559
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
560
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
557
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthRedirectGuard, deps: [{ token: OAuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
558
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthRedirectGuard, providedIn: 'root' }); }
|
|
561
559
|
}
|
|
562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthRedirectGuard, decorators: [{
|
|
563
561
|
type: Injectable,
|
|
564
562
|
args: [{ providedIn: 'root' }]
|
|
565
563
|
}], ctorParameters: function () { return [{ type: OAuthService, decorators: [{
|
|
@@ -574,64 +572,65 @@ class OAuthModule {
|
|
|
574
572
|
providers: [
|
|
575
573
|
{
|
|
576
574
|
provide: RXAP_O_AUTH_REDIRECT_SIGN_IN,
|
|
577
|
-
useValue: options.signInPath ?? ['/', 'oauth', 'redirect']
|
|
575
|
+
useValue: options.signInPath ?? ['/', 'oauth', 'redirect'],
|
|
578
576
|
},
|
|
579
577
|
{
|
|
580
578
|
provide: RXAP_O_AUTH_REDIRECT_SIGN_OUT,
|
|
581
|
-
useValue: options.signOutPath ?? null
|
|
582
|
-
}
|
|
583
|
-
]
|
|
579
|
+
useValue: options.signOutPath ?? null,
|
|
580
|
+
},
|
|
581
|
+
],
|
|
584
582
|
};
|
|
585
583
|
}
|
|
586
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
587
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
588
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
584
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
585
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: OAuthModule }); }
|
|
586
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthModule }); }
|
|
589
587
|
}
|
|
590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
591
|
-
type: NgModule
|
|
588
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: OAuthModule, decorators: [{
|
|
589
|
+
type: NgModule,
|
|
590
|
+
args: [{}]
|
|
592
591
|
}] });
|
|
593
592
|
|
|
594
593
|
class ContainerComponent {
|
|
595
594
|
prepareRoute(outlet) {
|
|
596
595
|
return outlet.isActivated ? outlet.activatedRoute : 'true';
|
|
597
596
|
}
|
|
598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
599
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
597
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
598
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: ContainerComponent, isStandalone: true, selector: "rxap-container", host: { classAttribute: "rxap-container" }, ngImport: i0, template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"container\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], animations: [
|
|
600
599
|
trigger('routeAnimations', [
|
|
601
600
|
transition(':enter', [
|
|
602
601
|
style({ opacity: 0 }),
|
|
603
|
-
animate('512ms', style({ opacity: 1 }))
|
|
602
|
+
animate('512ms', style({ opacity: 1 })),
|
|
604
603
|
]),
|
|
605
604
|
transition(':leave', [
|
|
606
605
|
style({ opacity: 1 }),
|
|
607
|
-
animate('512ms', style({ opacity: 0 }))
|
|
608
|
-
])
|
|
609
|
-
])
|
|
606
|
+
animate('512ms', style({ opacity: 0 })),
|
|
607
|
+
]),
|
|
608
|
+
]),
|
|
610
609
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
611
610
|
}
|
|
612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ContainerComponent, decorators: [{
|
|
613
612
|
type: Component,
|
|
614
613
|
args: [{ selector: 'rxap-container', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-container' }, animations: [
|
|
615
614
|
trigger('routeAnimations', [
|
|
616
615
|
transition(':enter', [
|
|
617
616
|
style({ opacity: 0 }),
|
|
618
|
-
animate('512ms', style({ opacity: 1 }))
|
|
617
|
+
animate('512ms', style({ opacity: 1 })),
|
|
619
618
|
]),
|
|
620
619
|
transition(':leave', [
|
|
621
620
|
style({ opacity: 1 }),
|
|
622
|
-
animate('512ms', style({ opacity: 0 }))
|
|
623
|
-
])
|
|
624
|
-
])
|
|
625
|
-
], template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"container\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}\n"] }]
|
|
621
|
+
animate('512ms', style({ opacity: 0 })),
|
|
622
|
+
]),
|
|
623
|
+
]),
|
|
624
|
+
], standalone: true, imports: [RouterOutlet], template: "<div [@routeAnimations]=\"prepareRoute(outlet)\" class=\"container\">\n\n <div class=\"split mat-elevation-z3\"></div>\n\n <router-outlet #outlet=\"outlet\"></router-outlet>\n\n</div>\n", styles: [".container{height:100vh;width:100vw;display:flex;align-items:center;justify-content:center}.container .split{position:absolute;top:0;left:0;right:0;bottom:65vh;z-index:-10}\n"] }]
|
|
626
625
|
}] });
|
|
627
626
|
|
|
628
627
|
class LoadingComponent {
|
|
629
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
630
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
628
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
629
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: LoadingComponent, isStandalone: true, selector: "rxap-loading", ngImport: i0, template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i1$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
631
630
|
}
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
633
632
|
type: Component,
|
|
634
|
-
args: [{ selector: 'rxap-loading', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
633
|
+
args: [{ selector: 'rxap-loading', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [MatProgressBarModule], template: "<mat-progress-bar class=\"loading-bar\" mode=\"indeterminate\"></mat-progress-bar>\n" }]
|
|
635
634
|
}] });
|
|
636
635
|
|
|
637
636
|
class SignInWithRedirectComponent {
|
|
@@ -641,22 +640,22 @@ class SignInWithRedirectComponent {
|
|
|
641
640
|
signIn() {
|
|
642
641
|
this.authService.signInWithRedirect();
|
|
643
642
|
}
|
|
644
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
645
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
643
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignInWithRedirectComponent, deps: [{ token: OAuthService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
644
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: SignInWithRedirectComponent, isStandalone: true, selector: "rxap-sign-in-with-redirect", host: { classAttribute: "rxap-sign-in-with-redirect" }, ngImport: i0, 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 <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signIn()\" color=\"primary\" fxFlex=\"nogrow\" mat-raised-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\">login</mat-icon>\n <span fxFlex=\"nogrow\">Sign In</span>\n </span>\n </button>\n </div>\n\n </div>\n\n</div>\n\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}\n"], dependencies: [{ kind: "ngmodule", type: FlexModule }, { kind: "directive", type: i2.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"] }, { kind: "directive", type: i2.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"] }, { kind: "directive", type: i2.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"] }, { kind: "directive", type: i2.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"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], animations: [
|
|
646
645
|
trigger('fadeAnimation', [
|
|
647
646
|
// the "in" style determines the "resting" state of the element when it is visible.
|
|
648
647
|
state('in', style({ opacity: 1 })),
|
|
649
648
|
// fade in when created. this could also be written as transition('void => *')
|
|
650
649
|
transition(':enter', [
|
|
651
650
|
style({ opacity: 0 }),
|
|
652
|
-
animate(300)
|
|
651
|
+
animate(300),
|
|
653
652
|
]),
|
|
654
653
|
// fade out when destroyed. this could also be written as transition('void => *')
|
|
655
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
656
|
-
])
|
|
654
|
+
transition(':leave', animate(300, style({ opacity: 0 }))),
|
|
655
|
+
]),
|
|
657
656
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
658
657
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SignInWithRedirectComponent, decorators: [{
|
|
660
659
|
type: Component,
|
|
661
660
|
args: [{ selector: 'rxap-sign-in-with-redirect', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-sign-in-with-redirect' }, animations: [
|
|
662
661
|
trigger('fadeAnimation', [
|
|
@@ -665,12 +664,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
665
664
|
// fade in when created. this could also be written as transition('void => *')
|
|
666
665
|
transition(':enter', [
|
|
667
666
|
style({ opacity: 0 }),
|
|
668
|
-
animate(300)
|
|
667
|
+
animate(300),
|
|
669
668
|
]),
|
|
670
669
|
// fade out when destroyed. this could also be written as transition('void => *')
|
|
671
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
672
|
-
])
|
|
673
|
-
], template: "<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\"
|
|
670
|
+
transition(':leave', animate(300, style({ opacity: 0 }))),
|
|
671
|
+
]),
|
|
672
|
+
], standalone: true, imports: [FlexModule, MatIconModule, MatButtonModule], 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 <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signIn()\" color=\"primary\" fxFlex=\"nogrow\" mat-raised-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\">login</mat-icon>\n <span fxFlex=\"nogrow\">Sign In</span>\n </span>\n </button>\n </div>\n\n </div>\n\n</div>\n\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}\n"] }]
|
|
674
673
|
}], ctorParameters: function () { return [{ type: OAuthService }]; } });
|
|
675
674
|
|
|
676
675
|
const RXAP_O_AUTH_ROUTES = [
|
|
@@ -680,19 +679,19 @@ const RXAP_O_AUTH_ROUTES = [
|
|
|
680
679
|
children: [
|
|
681
680
|
{
|
|
682
681
|
path: 'redirect',
|
|
683
|
-
component: SignInWithRedirectComponent
|
|
682
|
+
component: SignInWithRedirectComponent,
|
|
684
683
|
},
|
|
685
684
|
{
|
|
686
685
|
canActivate: [OAuthExtractGuard],
|
|
687
686
|
path: '',
|
|
688
|
-
component: LoadingComponent
|
|
687
|
+
component: LoadingComponent,
|
|
689
688
|
},
|
|
690
689
|
{
|
|
691
690
|
path: '**',
|
|
692
|
-
redirectTo: ''
|
|
693
|
-
}
|
|
694
|
-
]
|
|
695
|
-
}
|
|
691
|
+
redirectTo: '',
|
|
692
|
+
},
|
|
693
|
+
],
|
|
694
|
+
},
|
|
696
695
|
];
|
|
697
696
|
|
|
698
697
|
class ProfileResolve {
|
|
@@ -708,10 +707,10 @@ class ProfileResolve {
|
|
|
708
707
|
}
|
|
709
708
|
return profile;
|
|
710
709
|
}
|
|
711
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
712
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProfileResolve, deps: [{ token: OAuthService }, { token: Router }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
711
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProfileResolve, providedIn: 'root' }); }
|
|
713
712
|
}
|
|
714
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ProfileResolve, decorators: [{
|
|
715
714
|
type: Injectable,
|
|
716
715
|
args: [{ providedIn: 'root' }]
|
|
717
716
|
}], ctorParameters: function () { return [{ type: OAuthService, decorators: [{
|
|
@@ -725,93 +724,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
725
724
|
args: [RXAP_O_AUTH_REDIRECT_SIGN_IN]
|
|
726
725
|
}] }]; } });
|
|
727
726
|
|
|
728
|
-
class ContainerComponentModule {
|
|
729
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContainerComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
730
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: ContainerComponentModule, declarations: [ContainerComponent], imports: [RouterModule], exports: [ContainerComponent] }); }
|
|
731
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContainerComponentModule, imports: [RouterModule] }); }
|
|
732
|
-
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContainerComponentModule, decorators: [{
|
|
734
|
-
type: NgModule,
|
|
735
|
-
args: [{
|
|
736
|
-
declarations: [ContainerComponent],
|
|
737
|
-
imports: [
|
|
738
|
-
RouterModule
|
|
739
|
-
],
|
|
740
|
-
exports: [ContainerComponent]
|
|
741
|
-
}]
|
|
742
|
-
}] });
|
|
743
|
-
|
|
744
|
-
class LoadingComponentModule {
|
|
745
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: LoadingComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
746
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: LoadingComponentModule, declarations: [LoadingComponent], imports: [MatLegacyProgressBarModule], exports: [LoadingComponent] }); }
|
|
747
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: LoadingComponentModule, imports: [MatLegacyProgressBarModule] }); }
|
|
748
|
-
}
|
|
749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: LoadingComponentModule, decorators: [{
|
|
750
|
-
type: NgModule,
|
|
751
|
-
args: [{
|
|
752
|
-
declarations: [
|
|
753
|
-
LoadingComponent
|
|
754
|
-
],
|
|
755
|
-
imports: [
|
|
756
|
-
MatLegacyProgressBarModule
|
|
757
|
-
],
|
|
758
|
-
exports: [
|
|
759
|
-
LoadingComponent
|
|
760
|
-
]
|
|
761
|
-
}]
|
|
762
|
-
}] });
|
|
763
|
-
|
|
764
|
-
class SignInWithRedirectComponentModule {
|
|
765
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SignInWithRedirectComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
766
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: SignInWithRedirectComponentModule, declarations: [SignInWithRedirectComponent], imports: [MatLegacyCardModule,
|
|
767
|
-
MatLegacyButtonModule,
|
|
768
|
-
FlexLayoutModule,
|
|
769
|
-
MatIconModule,
|
|
770
|
-
CommonModule], exports: [SignInWithRedirectComponent] }); }
|
|
771
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SignInWithRedirectComponentModule, imports: [MatLegacyCardModule,
|
|
772
|
-
MatLegacyButtonModule,
|
|
773
|
-
FlexLayoutModule,
|
|
774
|
-
MatIconModule,
|
|
775
|
-
CommonModule] }); }
|
|
776
|
-
}
|
|
777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SignInWithRedirectComponentModule, decorators: [{
|
|
778
|
-
type: NgModule,
|
|
779
|
-
args: [{
|
|
780
|
-
declarations: [SignInWithRedirectComponent],
|
|
781
|
-
imports: [
|
|
782
|
-
MatLegacyCardModule,
|
|
783
|
-
MatLegacyButtonModule,
|
|
784
|
-
FlexLayoutModule,
|
|
785
|
-
MatIconModule,
|
|
786
|
-
CommonModule
|
|
787
|
-
],
|
|
788
|
-
exports: [SignInWithRedirectComponent]
|
|
789
|
-
}]
|
|
790
|
-
}] });
|
|
791
|
-
|
|
792
|
-
class OAuthRoutingModule {
|
|
793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: OAuthRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
794
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: OAuthRoutingModule, exports: [ContainerComponentModule,
|
|
795
|
-
LoadingComponentModule,
|
|
796
|
-
SignInWithRedirectComponentModule] }); }
|
|
797
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: OAuthRoutingModule, imports: [ContainerComponentModule,
|
|
798
|
-
LoadingComponentModule,
|
|
799
|
-
SignInWithRedirectComponentModule] }); }
|
|
800
|
-
}
|
|
801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: OAuthRoutingModule, decorators: [{
|
|
802
|
-
type: NgModule,
|
|
803
|
-
args: [{
|
|
804
|
-
exports: [
|
|
805
|
-
ContainerComponentModule,
|
|
806
|
-
LoadingComponentModule,
|
|
807
|
-
SignInWithRedirectComponentModule
|
|
808
|
-
]
|
|
809
|
-
}]
|
|
810
|
-
}] });
|
|
811
|
-
|
|
812
727
|
/**
|
|
813
728
|
* Generated bundle index. Do not edit.
|
|
814
729
|
*/
|
|
815
730
|
|
|
816
|
-
export { ACCESS_TOKEN_LOCAL_STORAGE_KEY, AssertOAuthMethodParameters, AssertOAuthMethodWithRefreshTokenParameters, AssertOAuthMethodWithUsernamePasswordParameters, ContainerComponent,
|
|
731
|
+
export { ACCESS_TOKEN_LOCAL_STORAGE_KEY, AssertOAuthMethodParameters, AssertOAuthMethodWithRefreshTokenParameters, AssertOAuthMethodWithUsernamePasswordParameters, ContainerComponent, DefaultRedirectSignInFactory, DefaultRedirectUrl, EXPIRES_AT_LOCAL_STORAGE_KEY, GetOAuthProfileMethod, IsOAuthMethodWithRefreshTokenParameters, IsOAuthMethodWithUsernamePasswordParameters, LoadingComponent, OAUTH_AUTH_ENDPOINT, OAUTH_CLIENT_ID, OAUTH_SECRET, OAUTH_SSO_URL, OAuthExtractGuard, OAuthMethod, OAuthModule, OAuthRedirectGuard, OAuthService, PROFILE_AUTH_ENDPOINT, ProfileResolve, REFRESH_TOKEN_LOCAL_STORAGE_KEY, REMEMBER_LOCAL_STORAGE_KEY, RXAP_O_AUTH_REDIRECT_SIGN_IN, RXAP_O_AUTH_REDIRECT_SIGN_OUT, RXAP_O_AUTH_REDIRECT_URL, RXAP_O_AUTH_ROUTES, SignInWithRedirectComponent };
|
|
817
732
|
//# sourceMappingURL=rxap-oauth.mjs.map
|