@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.
- package/_theming.scss +1 -1
- package/esm2020/index.mjs +17 -0
- package/esm2020/lib/container/container.component.mjs +38 -0
- package/esm2020/lib/container/container.component.module.mjs +22 -0
- package/esm2020/lib/get-o-auth-profile.method.mjs +40 -0
- package/esm2020/lib/loading/loading.component.mjs +12 -0
- package/esm2020/lib/loading/loading.component.module.mjs +26 -0
- package/esm2020/lib/o-auth-extract.guard.mjs +55 -0
- package/esm2020/lib/o-auth-redirect.guard.mjs +31 -0
- package/esm2020/lib/o-auth-routing.module.mjs +25 -0
- package/esm2020/lib/o-auth.method.mjs +111 -0
- package/esm2020/lib/o-auth.module.mjs +27 -0
- package/esm2020/lib/o-auth.service.mjs +303 -0
- package/esm2020/lib/profile.resolve.mjs +37 -0
- package/esm2020/lib/routes.mjs +26 -0
- package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.mjs +47 -0
- package/esm2020/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.mjs +38 -0
- package/esm2020/lib/tokens.mjs +17 -0
- package/esm2020/rxap-oauth.mjs +5 -0
- package/esm2020/single-sign-on/lib/continue/continue.component.mjs +70 -0
- package/esm2020/single-sign-on/lib/continue/continue.component.module.mjs +42 -0
- package/esm2020/single-sign-on/lib/error/error.component.mjs +44 -0
- package/esm2020/single-sign-on/lib/error/error.component.module.mjs +30 -0
- package/esm2020/single-sign-on/lib/o-auth-single-sign-on-routing.module.mjs +50 -0
- package/esm2020/single-sign-on/lib/o-auth-single-sign-on.guard.mjs +69 -0
- package/esm2020/single-sign-on/lib/o-auth-single-sign-on.service.mjs +77 -0
- package/esm2020/single-sign-on/lib/routes.mjs +33 -0
- package/esm2020/single-sign-on/lib/tokens.mjs +10 -0
- package/esm2020/single-sign-on/public_api.mjs +10 -0
- package/esm2020/single-sign-on/rxap-oauth-single-sign-on.mjs +5 -0
- package/fesm2015/rxap-oauth-single-sign-on.mjs +408 -0
- package/fesm2015/rxap-oauth-single-sign-on.mjs.map +1 -0
- package/fesm2015/{rxap-oauth.js → rxap-oauth.mjs} +131 -141
- package/fesm2015/rxap-oauth.mjs.map +1 -0
- package/{fesm2015/rxap-oauth-single-sign-on.js → fesm2020/rxap-oauth-single-sign-on.mjs} +82 -91
- package/fesm2020/rxap-oauth-single-sign-on.mjs.map +1 -0
- package/fesm2020/rxap-oauth.mjs +801 -0
- package/fesm2020/rxap-oauth.mjs.map +1 -0
- package/package.json +41 -19
- package/single-sign-on/lib/error/error.component.d.ts +2 -0
- package/single-sign-on/lib/error/error.component.module.d.ts +2 -1
- package/single-sign-on/package.json +5 -5
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-oauth-single-sign-on.umd.js +0 -790
- package/bundles/rxap-oauth-single-sign-on.umd.js.map +0 -1
- package/bundles/rxap-oauth.umd.js +0 -1349
- package/bundles/rxap-oauth.umd.js.map +0 -1
- package/esm2015/index.js +0 -17
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/container/container.component.js +0 -45
- package/esm2015/lib/container/container.component.js.map +0 -1
- package/esm2015/lib/container/container.component.module.js +0 -22
- package/esm2015/lib/container/container.component.module.js.map +0 -1
- package/esm2015/lib/get-o-auth-profile.method.js +0 -41
- package/esm2015/lib/get-o-auth-profile.method.js.map +0 -1
- package/esm2015/lib/loading/loading.component.js +0 -18
- package/esm2015/lib/loading/loading.component.js.map +0 -1
- package/esm2015/lib/loading/loading.component.module.js +0 -26
- package/esm2015/lib/loading/loading.component.module.js.map +0 -1
- package/esm2015/lib/o-auth-extract.guard.js +0 -55
- package/esm2015/lib/o-auth-extract.guard.js.map +0 -1
- package/esm2015/lib/o-auth-redirect.guard.js +0 -34
- package/esm2015/lib/o-auth-redirect.guard.js.map +0 -1
- package/esm2015/lib/o-auth-routing.module.js +0 -25
- package/esm2015/lib/o-auth-routing.module.js.map +0 -1
- package/esm2015/lib/o-auth.method.js +0 -115
- package/esm2015/lib/o-auth.method.js.map +0 -1
- package/esm2015/lib/o-auth.module.js +0 -28
- package/esm2015/lib/o-auth.module.js.map +0 -1
- package/esm2015/lib/o-auth.service.js +0 -317
- package/esm2015/lib/o-auth.service.js.map +0 -1
- package/esm2015/lib/profile.resolve.js +0 -40
- package/esm2015/lib/profile.resolve.js.map +0 -1
- package/esm2015/lib/routes.js +0 -26
- package/esm2015/lib/routes.js.map +0 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js +0 -54
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.js.map +0 -1
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js +0 -38
- package/esm2015/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.js.map +0 -1
- package/esm2015/lib/tokens.js +0 -17
- package/esm2015/lib/tokens.js.map +0 -1
- package/esm2015/rxap-oauth.js +0 -5
- package/esm2015/rxap-oauth.js.map +0 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.js +0 -77
- package/esm2015/single-sign-on/lib/continue/continue.component.js.map +0 -1
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js +0 -42
- package/esm2015/single-sign-on/lib/continue/continue.component.module.js.map +0 -1
- package/esm2015/single-sign-on/lib/error/error.component.js +0 -38
- package/esm2015/single-sign-on/lib/error/error.component.js.map +0 -1
- package/esm2015/single-sign-on/lib/error/error.component.module.js +0 -26
- package/esm2015/single-sign-on/lib/error/error.component.module.js.map +0 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js +0 -50
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on-routing.module.js.map +0 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js +0 -72
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.guard.js.map +0 -1
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js +0 -85
- package/esm2015/single-sign-on/lib/o-auth-single-sign-on.service.js.map +0 -1
- package/esm2015/single-sign-on/lib/routes.js +0 -33
- package/esm2015/single-sign-on/lib/routes.js.map +0 -1
- package/esm2015/single-sign-on/lib/tokens.js +0 -10
- package/esm2015/single-sign-on/lib/tokens.js.map +0 -1
- package/esm2015/single-sign-on/public_api.js +0 -10
- package/esm2015/single-sign-on/public_api.js.map +0 -1
- package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js +0 -5
- package/esm2015/single-sign-on/rxap-oauth-single-sign-on.js.map +0 -1
- package/fesm2015/rxap-oauth-single-sign-on.js.map +0 -1
- package/fesm2015/rxap-oauth.js.map +0 -1
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
import { OAuthService } from '../o-auth.service';
|
|
3
|
-
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../o-auth.service";
|
|
6
|
-
import * as i2 from "@angular/material/icon";
|
|
7
|
-
import * as i3 from "@angular/material/button";
|
|
8
|
-
import * as i4 from "@angular/flex-layout/flex";
|
|
9
|
-
export class SignInWithRedirectComponent {
|
|
10
|
-
constructor(authService) {
|
|
11
|
-
this.authService = authService;
|
|
12
|
-
}
|
|
13
|
-
signIn() {
|
|
14
|
-
this.authService.signInWithRedirect();
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
SignInWithRedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponent, deps: [{ token: i1.OAuthService }], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
-
SignInWithRedirectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: SignInWithRedirectComponent, 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\" fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signIn()\" color=\"primary\" fxFlex=\"nogrow\" mat-raised-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\">login</mat-icon>\n <span fxFlex=\"nogrow\">Sign In</span>\n </span>\n </button>\n </div>\n\n </div>\n\n</div>\n\n", styles: [".inner{padding:64px;position:relative}.inner .header .avatar-icon{width:100px;height:100px;font-size:100px}"], components: [{ type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }], animations: [
|
|
19
|
-
trigger('fadeAnimation', [
|
|
20
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
21
|
-
state('in', style({ opacity: 1 })),
|
|
22
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
23
|
-
transition(':enter', [
|
|
24
|
-
style({ opacity: 0 }),
|
|
25
|
-
animate(300)
|
|
26
|
-
]),
|
|
27
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
28
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
29
|
-
])
|
|
30
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponent, decorators: [{
|
|
32
|
-
type: Component,
|
|
33
|
-
args: [{
|
|
34
|
-
selector: 'rxap-sign-in-with-redirect',
|
|
35
|
-
templateUrl: './sign-in-with-redirect.component.html',
|
|
36
|
-
styleUrls: ['./sign-in-with-redirect.component.scss'],
|
|
37
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
38
|
-
host: { class: 'rxap-sign-in-with-redirect' },
|
|
39
|
-
animations: [
|
|
40
|
-
trigger('fadeAnimation', [
|
|
41
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
42
|
-
state('in', style({ opacity: 1 })),
|
|
43
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
44
|
-
transition(':enter', [
|
|
45
|
-
style({ opacity: 0 }),
|
|
46
|
-
animate(300)
|
|
47
|
-
]),
|
|
48
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
49
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
50
|
-
])
|
|
51
|
-
]
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: function () { return [{ type: i1.OAuthService }]; } });
|
|
54
|
-
//# sourceMappingURL=sign-in-with-redirect.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-with-redirect.component.js","sourceRoot":"","sources":["../../../../../../libs/oauth/src/lib/sign-in-with-redirect/sign-in-with-redirect.component.ts","../../../../../../libs/oauth/src/lib/sign-in-with-redirect/sign-in-with-redirect.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACxB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EACL,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACR,MAAM,qBAAqB,CAAC;;;;;;AA4B7B,MAAM,OAAO,2BAA2B;IAEtC,YACmB,WAAyB;QAAzB,gBAAW,GAAX,WAAW,CAAc;IACzC,CAAC;IAEG,MAAM;QACX,IAAI,CAAC,WAAW,CAAC,kBAAkB,EAAE,CAAC;IACxC,CAAC;;wHARU,2BAA2B;4GAA3B,2BAA2B,0HCvCxC,qzBAuBA,ozFDJmB;QACf,OAAO,CAAC,eAAe,EAAE;YAEvB,mFAAmF;YACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;YAElC,8EAA8E;YAC9E,UAAU,CAAC,QAAQ,EAAE;gBACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;gBACrB,OAAO,CAAC,GAAG,CAAC;aACb,CAAC;YAEF,iFAAiF;YACjF,UAAU,CACR,QAAQ,EACR,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CACpC;SACF,CAAC;KACH;2FAEU,2BAA2B;kBA1BvC,SAAS;mBAAC;oBACT,QAAQ,EAAS,4BAA4B;oBAC7C,WAAW,EAAM,wCAAwC;oBACzD,SAAS,EAAQ,CAAE,wCAAwC,CAAE;oBAC7D,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,4BAA4B,EAAE;oBACxD,UAAU,EAAO;wBACf,OAAO,CAAC,eAAe,EAAE;4BAEvB,mFAAmF;4BACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;4BAElC,8EAA8E;4BAC9E,UAAU,CAAC,QAAQ,EAAE;gCACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;gCACrB,OAAO,CAAC,GAAG,CAAC;6BACb,CAAC;4BAEF,iFAAiF;4BACjF,UAAU,CACR,QAAQ,EACR,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CACpC;yBACF,CAAC;qBACH;iBACF","sourcesContent":["import {\n Component,\n ChangeDetectionStrategy\n} from '@angular/core';\nimport { OAuthService } from '../o-auth.service';\nimport {\n trigger,\n state,\n style,\n transition,\n animate\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-sign-in-with-redirect',\n templateUrl: './sign-in-with-redirect.component.html',\n styleUrls: [ './sign-in-with-redirect.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-sign-in-with-redirect' },\n animations: [\n trigger('fadeAnimation', [\n\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [\n style({ opacity: 0 }),\n animate(300)\n ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(\n ':leave',\n animate(300, style({ opacity: 0 }))\n )\n ])\n ]\n})\nexport class SignInWithRedirectComponent {\n\n constructor(\n private readonly authService: OAuthService\n ) {}\n\n public signIn() {\n this.authService.signInWithRedirect();\n }\n\n}\n","<div [@fadeAnimation]=\"'in'\" class=\"inner mat-elevation-z5\" fxLayout=\"column\" fxLayoutAlign=\"center center\" fxLayoutGap=\"32px\">\n\n <div class=\"header\" fxFlex=\"nogrow\" fxLayout=\"column\" fxLayoutAlign=\"center center\">\n\n <mat-icon class=\"avatar-icon\" color=\"primary\" fxFlex=\"nogrow\">account_circle</mat-icon>\n\n </div>\n\n <div fxFlex=\"nogrow\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n\n <div fxFlex=\"nogrow\">\n <button (click)=\"signIn()\" color=\"primary\" fxFlex=\"nogrow\" mat-raised-button>\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"16px\">\n <mat-icon fxFlex=\"nogrow\">login</mat-icon>\n <span fxFlex=\"nogrow\">Sign In</span>\n </span>\n </button>\n </div>\n\n </div>\n\n</div>\n\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SignInWithRedirectComponent } from './sign-in-with-redirect.component';
|
|
3
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import { MatCardModule } from '@angular/material/card';
|
|
6
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
7
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export class SignInWithRedirectComponentModule {
|
|
10
|
-
}
|
|
11
|
-
SignInWithRedirectComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
-
SignInWithRedirectComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponentModule, declarations: [SignInWithRedirectComponent], imports: [MatCardModule,
|
|
13
|
-
MatButtonModule,
|
|
14
|
-
FlexLayoutModule,
|
|
15
|
-
MatIconModule,
|
|
16
|
-
CommonModule], exports: [SignInWithRedirectComponent] });
|
|
17
|
-
SignInWithRedirectComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponentModule, imports: [[
|
|
18
|
-
MatCardModule,
|
|
19
|
-
MatButtonModule,
|
|
20
|
-
FlexLayoutModule,
|
|
21
|
-
MatIconModule,
|
|
22
|
-
CommonModule
|
|
23
|
-
]] });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: SignInWithRedirectComponentModule, decorators: [{
|
|
25
|
-
type: NgModule,
|
|
26
|
-
args: [{
|
|
27
|
-
declarations: [SignInWithRedirectComponent],
|
|
28
|
-
imports: [
|
|
29
|
-
MatCardModule,
|
|
30
|
-
MatButtonModule,
|
|
31
|
-
FlexLayoutModule,
|
|
32
|
-
MatIconModule,
|
|
33
|
-
CommonModule
|
|
34
|
-
],
|
|
35
|
-
exports: [SignInWithRedirectComponent]
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
//# sourceMappingURL=sign-in-with-redirect.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sign-in-with-redirect.component.module.js","sourceRoot":"","sources":["../../../../../../libs/oauth/src/lib/sign-in-with-redirect/sign-in-with-redirect.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;;AAc3D,MAAM,OAAO,iCAAiC;;8HAAjC,iCAAiC;+HAAjC,iCAAiC,iBAV5B,2BAA2B,aAEzC,aAAa;QACb,eAAe;QACf,gBAAgB;QAChB,aAAa;QACb,YAAY,aAEE,2BAA2B;+HAEhC,iCAAiC,YAT9B;YACZ,aAAa;YACb,eAAe;YACf,gBAAgB;YAChB,aAAa;YACb,YAAY;SACb;2FAGU,iCAAiC;kBAX7C,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAE,2BAA2B,CAAE;oBAC7C,OAAO,EAAO;wBACZ,aAAa;wBACb,eAAe;wBACf,gBAAgB;wBAChB,aAAa;wBACb,YAAY;qBACb;oBACD,OAAO,EAAO,CAAE,2BAA2B,CAAE;iBAC9C","sourcesContent":["import { NgModule } from '@angular/core';\nimport { SignInWithRedirectComponent } from './sign-in-with-redirect.component';\nimport { MatIconModule } from '@angular/material/icon';\nimport { CommonModule } from '@angular/common';\nimport { MatCardModule } from '@angular/material/card';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatButtonModule } from '@angular/material/button';\n\n\n@NgModule({\n declarations: [ SignInWithRedirectComponent ],\n imports: [\n MatCardModule,\n MatButtonModule,\n FlexLayoutModule,\n MatIconModule,\n CommonModule\n ],\n exports: [ SignInWithRedirectComponent ]\n})\nexport class SignInWithRedirectComponentModule {}\n"]}
|
package/esm2015/lib/tokens.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
export function DefaultRedirectSignInFactory() {
|
|
3
|
-
return ['/', 'authentication', 'login'];
|
|
4
|
-
}
|
|
5
|
-
export const RXAP_O_AUTH_REDIRECT_SIGN_IN = new InjectionToken('rxap/o-auth/redirect-sign-in', {
|
|
6
|
-
providedIn: 'root',
|
|
7
|
-
factory: DefaultRedirectSignInFactory
|
|
8
|
-
});
|
|
9
|
-
export const RXAP_O_AUTH_REDIRECT_SIGN_OUT = new InjectionToken('rxap/o-auth/redirect-sign-out');
|
|
10
|
-
export function DefaultRedirectUrl() {
|
|
11
|
-
return location.origin + '/oauth';
|
|
12
|
-
}
|
|
13
|
-
export const RXAP_O_AUTH_REDIRECT_URL = new InjectionToken('rxap/o-auth/redirect-url', {
|
|
14
|
-
providedIn: 'root',
|
|
15
|
-
factory: DefaultRedirectUrl
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=tokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../../../libs/oauth/src/lib/tokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,UAAU,4BAA4B;IAC1C,OAAO,CAAE,GAAG,EAAE,gBAAgB,EAAE,OAAO,CAAE,CAAC;AAC5C,CAAC;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,cAAc,CAAC,8BAA8B,EAAE;IAC7F,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,4BAA4B;CACzC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,cAAc,CAAC,+BAA+B,CAAC,CAAC;AAEjG,MAAM,UAAU,kBAAkB;IAChC,OAAO,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC;AACpC,CAAC;AAED,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,cAAc,CAAC,0BAA0B,EAAE;IACrF,UAAU,EAAE,MAAM;IAClB,OAAO,EAAK,kBAAkB;CAC/B,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport function DefaultRedirectSignInFactory(): string[] {\n return [ '/', 'authentication', 'login' ];\n}\n\nexport const RXAP_O_AUTH_REDIRECT_SIGN_IN = new InjectionToken('rxap/o-auth/redirect-sign-in', {\n providedIn: 'root',\n factory: DefaultRedirectSignInFactory\n});\n\nexport const RXAP_O_AUTH_REDIRECT_SIGN_OUT = new InjectionToken('rxap/o-auth/redirect-sign-out');\n\nexport function DefaultRedirectUrl(): string {\n return location.origin + '/oauth';\n}\n\nexport const RXAP_O_AUTH_REDIRECT_URL = new InjectionToken('rxap/o-auth/redirect-url', {\n providedIn: 'root',\n factory: DefaultRedirectUrl\n});\n"]}
|
package/esm2015/rxap-oauth.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-oauth.js","sourceRoot":"","sources":["../../../../libs/oauth/src/rxap-oauth.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
|
|
2
|
-
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { map, take } from 'rxjs/operators';
|
|
5
|
-
import { OAuthSingleSignOnService } from '../o-auth-single-sign-on.service';
|
|
6
|
-
import { RXAP_O_AUTH_REDIRECT_SIGN_IN, OAuthService } from '@rxap/oauth';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/button";
|
|
9
|
-
import * as i2 from "@angular/flex-layout/flex";
|
|
10
|
-
import * as i3 from "@angular/common";
|
|
11
|
-
import * as i4 from "@rxap/directives";
|
|
12
|
-
import * as i5 from "@angular/router";
|
|
13
|
-
import * as i6 from "../o-auth-single-sign-on.service";
|
|
14
|
-
export class ContinueComponent {
|
|
15
|
-
constructor(route, router, oAuthService, redirectLogin) {
|
|
16
|
-
this.route = route;
|
|
17
|
-
this.router = router;
|
|
18
|
-
this.oAuthService = oAuthService;
|
|
19
|
-
this.redirectLogin = redirectLogin;
|
|
20
|
-
}
|
|
21
|
-
ngOnInit() {
|
|
22
|
-
this.profile = this.route.data
|
|
23
|
-
.pipe(take(1), map((data) => data.profile))
|
|
24
|
-
.toPromise();
|
|
25
|
-
}
|
|
26
|
-
signOut() {
|
|
27
|
-
this.oAuthService.signOut();
|
|
28
|
-
return this.router.navigate(this.redirectLogin);
|
|
29
|
-
}
|
|
30
|
-
redirect() {
|
|
31
|
-
this.oAuthService.redirectToClient();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
ContinueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponent, deps: [{ token: ActivatedRoute }, { token: Router }, { token: OAuthService }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
-
ContinueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ContinueComponent, selector: "rxap-continue", host: { classAttribute: "rxap-continue" }, 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 <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.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.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.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.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.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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4.AvatarBackgroundImageDirective, selector: "[rxapAvatarBackgroundImage]", inputs: ["name", "rxapAvatarBackgroundImage"] }], pipes: { "async": i3.AsyncPipe }, animations: [
|
|
36
|
-
trigger('fadeAnimation', [
|
|
37
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
38
|
-
state('in', style({ opacity: 1 })),
|
|
39
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
40
|
-
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
41
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
42
|
-
transition(':leave', animate(300, style({ opacity: 0 }))),
|
|
43
|
-
]),
|
|
44
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponent, decorators: [{
|
|
46
|
-
type: Component,
|
|
47
|
-
args: [{
|
|
48
|
-
selector: 'rxap-continue',
|
|
49
|
-
templateUrl: './continue.component.html',
|
|
50
|
-
styleUrls: ['./continue.component.scss'],
|
|
51
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
52
|
-
host: { class: 'rxap-continue' },
|
|
53
|
-
animations: [
|
|
54
|
-
trigger('fadeAnimation', [
|
|
55
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
56
|
-
state('in', style({ opacity: 1 })),
|
|
57
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
58
|
-
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
59
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
60
|
-
transition(':leave', animate(300, style({ opacity: 0 }))),
|
|
61
|
-
]),
|
|
62
|
-
],
|
|
63
|
-
}]
|
|
64
|
-
}], ctorParameters: function () { return [{ type: i5.ActivatedRoute, decorators: [{
|
|
65
|
-
type: Inject,
|
|
66
|
-
args: [ActivatedRoute]
|
|
67
|
-
}] }, { type: i5.Router, decorators: [{
|
|
68
|
-
type: Inject,
|
|
69
|
-
args: [Router]
|
|
70
|
-
}] }, { type: i6.OAuthSingleSignOnService, decorators: [{
|
|
71
|
-
type: Inject,
|
|
72
|
-
args: [OAuthService]
|
|
73
|
-
}] }, { type: undefined, decorators: [{
|
|
74
|
-
type: Inject,
|
|
75
|
-
args: [RXAP_O_AUTH_REDIRECT_SIGN_IN]
|
|
76
|
-
}] }]; } });
|
|
77
|
-
//# sourceMappingURL=continue.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"continue.component.js","sourceRoot":"","sources":["../../../../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.ts","../../../../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACR,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EACd,MAAM,EACP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,GAAG,EACH,IAAI,EACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EACL,4BAA4B,EAC5B,YAAY,EACb,MAAM,aAAa,CAAC;;;;;;;;AAqBrB,MAAM,OAAO,iBAAiB;IAM5B,YAEmB,KAAqB,EAErB,MAAc,EAEd,YAAsC,EAEtC,aAAuB;QANvB,UAAK,GAAL,KAAK,CAAgB;QAErB,WAAM,GAAN,MAAM,CAAQ;QAEd,iBAAY,GAAZ,YAAY,CAA0B;QAEtC,kBAAa,GAAb,aAAa,CAAU;IACvC,CAAC;IAEG,QAAQ;QACb,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI;aAC3B,IAAI,CACH,IAAI,CAAC,CAAC,CAAC,EACP,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAC5B;aACA,SAAS,EAAE,CAAC;IACjB,CAAC;IAED,OAAO;QACL,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAClD,CAAC;IAED,QAAQ;QACN,IAAI,CAAC,YAAY,CAAC,gBAAgB,EAAE,CAAC;IACvC,CAAC;;8GAjCU,iBAAiB,kBAOlB,cAAc,aAEd,MAAM,aAEN,YAAY,aAEZ,4BAA4B;kGAb3B,iBAAiB,gGC9C9B,yjCAiCA,m9GDAc;QACV,OAAO,CAAC,eAAe,EAAE;YACvB,mFAAmF;YACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;YAElC,8EAA8E;YAC9E,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;YAE3D,iFAAiF;YACjF,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAC1D,CAAC;KACH;2FAEU,iBAAiB;kBAnB7B,SAAS;mBAAC;oBACT,QAAQ,EAAS,eAAe;oBAChC,WAAW,EAAM,2BAA2B;oBAC5C,SAAS,EAAQ,CAAE,2BAA2B,CAAE;oBAChD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;oBAChC,UAAU,EAAE;wBACV,OAAO,CAAC,eAAe,EAAE;4BACvB,mFAAmF;4BACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;4BAElC,8EAA8E;4BAC9E,UAAU,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;4BAE3D,iFAAiF;4BACjF,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;yBAC1D,CAAC;qBACH;iBACF;;0BAQI,MAAM;2BAAC,cAAc;;0BAErB,MAAM;2BAAC,MAAM;;0BAEb,MAAM;2BAAC,YAAY;;0BAEnB,MAAM;2BAAC,4BAA4B","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n OnInit\n} from '@angular/core';\nimport {\n animate,\n state,\n style,\n transition,\n trigger\n} from '@angular/animations';\nimport {\n ActivatedRoute,\n Router\n} from '@angular/router';\nimport {\n map,\n take\n} from 'rxjs/operators';\nimport { OAuthSingleSignOnService } from '../o-auth-single-sign-on.service';\nimport {\n RXAP_O_AUTH_REDIRECT_SIGN_IN,\n OAuthService\n} from '@rxap/oauth';\n\n@Component({\n selector: 'rxap-continue',\n templateUrl: './continue.component.html',\n styleUrls: [ './continue.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-continue' },\n animations: [\n trigger('fadeAnimation', [\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [style({ opacity: 0 }), animate(300)]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(':leave', animate(300, style({ opacity: 0 }))),\n ]),\n ],\n})\nexport class ContinueComponent<\n Profile extends Record<string, any> = Record<string, any>\n> implements OnInit\n{\n public profile!: Promise<Profile>;\n\n constructor(\n @Inject(ActivatedRoute)\n private readonly route: ActivatedRoute,\n @Inject(Router)\n private readonly router: Router,\n @Inject(OAuthService)\n private readonly oAuthService: OAuthSingleSignOnService,\n @Inject(RXAP_O_AUTH_REDIRECT_SIGN_IN)\n private readonly redirectLogin: string[]\n ) {}\n\n public ngOnInit() {\n this.profile = this.route.data\n .pipe(\n take(1),\n map((data) => data.profile)\n )\n .toPromise();\n }\n\n signOut() {\n this.oAuthService.signOut();\n return this.router.navigate(this.redirectLogin);\n }\n\n redirect() {\n this.oAuthService.redirectToClient();\n }\n}\n","<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"]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ContinueComponent } from './continue.component';
|
|
3
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { AvatarBackgroundImageDirectiveModule } from '@rxap/directives';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export class ContinueComponentModule {
|
|
10
|
-
}
|
|
11
|
-
ContinueComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
-
ContinueComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, declarations: [ContinueComponent], imports: [FlexLayoutModule,
|
|
13
|
-
MatIconModule,
|
|
14
|
-
MatButtonModule,
|
|
15
|
-
CommonModule,
|
|
16
|
-
AvatarBackgroundImageDirectiveModule], exports: [ContinueComponent] });
|
|
17
|
-
ContinueComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, imports: [[
|
|
18
|
-
FlexLayoutModule,
|
|
19
|
-
MatIconModule,
|
|
20
|
-
MatButtonModule,
|
|
21
|
-
CommonModule,
|
|
22
|
-
AvatarBackgroundImageDirectiveModule
|
|
23
|
-
]] });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ContinueComponentModule, decorators: [{
|
|
25
|
-
type: NgModule,
|
|
26
|
-
args: [{
|
|
27
|
-
declarations: [
|
|
28
|
-
ContinueComponent
|
|
29
|
-
],
|
|
30
|
-
imports: [
|
|
31
|
-
FlexLayoutModule,
|
|
32
|
-
MatIconModule,
|
|
33
|
-
MatButtonModule,
|
|
34
|
-
CommonModule,
|
|
35
|
-
AvatarBackgroundImageDirectiveModule
|
|
36
|
-
],
|
|
37
|
-
exports: [
|
|
38
|
-
ContinueComponent
|
|
39
|
-
]
|
|
40
|
-
}]
|
|
41
|
-
}] });
|
|
42
|
-
//# sourceMappingURL=continue.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"continue.component.module.js","sourceRoot":"","sources":["../../../../../../../libs/oauth/single-sign-on/src/lib/continue/continue.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,oCAAoC,EAAE,MAAM,kBAAkB,CAAC;;AAkBxE,MAAM,OAAO,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAbhC,iBAAiB,aAGjB,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,YAAY;QACZ,oCAAoC,aAGpC,iBAAiB;qHAGR,uBAAuB,YAXpB;YACZ,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,YAAY;YACZ,oCAAoC;SACrC;2FAKU,uBAAuB;kBAfnC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,iBAAiB;qBAClB;oBACD,OAAO,EAAO;wBACZ,gBAAgB;wBAChB,aAAa;wBACb,eAAe;wBACf,YAAY;wBACZ,oCAAoC;qBACrC;oBACD,OAAO,EAAO;wBACZ,iBAAiB;qBAClB;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { ContinueComponent } from './continue.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatButtonModule } from '@angular/material/button';\nimport { CommonModule } from '@angular/common';\nimport { AvatarBackgroundImageDirectiveModule } from '@rxap/directives';\n\n\n@NgModule({\n declarations: [\n ContinueComponent\n ],\n imports: [\n FlexLayoutModule,\n MatIconModule,\n MatButtonModule,\n CommonModule,\n AvatarBackgroundImageDirectiveModule\n ],\n exports: [\n ContinueComponent\n ]\n})\nexport class ContinueComponentModule {\n}\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { animate, state, style, transition, trigger } from '@angular/animations';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/flex-layout/flex";
|
|
5
|
-
export class ErrorComponent {
|
|
6
|
-
}
|
|
7
|
-
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", type: ErrorComponent, selector: "rxap-error", host: { classAttribute: "rxap-error" }, ngImport: i0, 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: i1.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: i1.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: i1.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: [
|
|
9
|
-
trigger('fadeAnimation', [
|
|
10
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
11
|
-
state('in', style({ opacity: 1 })),
|
|
12
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
13
|
-
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
14
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
15
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
16
|
-
])
|
|
17
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
19
|
-
type: Component,
|
|
20
|
-
args: [{
|
|
21
|
-
selector: 'rxap-error',
|
|
22
|
-
templateUrl: './error.component.html',
|
|
23
|
-
styleUrls: ['./error.component.scss'],
|
|
24
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
25
|
-
host: { class: 'rxap-error' },
|
|
26
|
-
animations: [
|
|
27
|
-
trigger('fadeAnimation', [
|
|
28
|
-
// the "in" style determines the "resting" state of the element when it is visible.
|
|
29
|
-
state('in', style({ opacity: 1 })),
|
|
30
|
-
// fade in when created. this could also be written as transition('void => *')
|
|
31
|
-
transition(':enter', [style({ opacity: 0 }), animate(300)]),
|
|
32
|
-
// fade out when destroyed. this could also be written as transition('void => *')
|
|
33
|
-
transition(':leave', animate(300, style({ opacity: 0 })))
|
|
34
|
-
])
|
|
35
|
-
]
|
|
36
|
-
}]
|
|
37
|
-
}] });
|
|
38
|
-
//# sourceMappingURL=error.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.component.js","sourceRoot":"","sources":["../../../../../../../libs/oauth/single-sign-on/src/lib/error/error.component.ts","../../../../../../../libs/oauth/single-sign-on/src/lib/error/error.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,OAAO,EACP,KAAK,EACL,KAAK,EACL,UAAU,EACV,OAAO,EACR,MAAM,qBAAqB,CAAC;;;AAqB7B,MAAM,OAAO,cAAc;;2GAAd,cAAc;+FAAd,cAAc,0FC/B3B,gdAeA,k2DDGmB;QACf,OAAO,CAAC,eAAe,EAAE;YACvB,mFAAmF;YACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;YAElC,8EAA8E;YAC9E,UAAU,CAAC,QAAQ,EAAE,CAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAE,CAAC;YAE7D,iFAAiF;YACjF,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAC1D,CAAC;KACH;2FAEU,cAAc;kBAnB1B,SAAS;mBAAC;oBACT,QAAQ,EAAS,YAAY;oBAC7B,WAAW,EAAM,wBAAwB;oBACzC,SAAS,EAAQ,CAAE,wBAAwB,CAAE;oBAC7C,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,YAAY,EAAE;oBACxC,UAAU,EAAO;wBACf,OAAO,CAAC,eAAe,EAAE;4BACvB,mFAAmF;4BACnF,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;4BAElC,8EAA8E;4BAC9E,UAAU,CAAC,QAAQ,EAAE,CAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAE,CAAC;4BAE7D,iFAAiF;4BACjF,UAAU,CAAC,QAAQ,EAAE,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;yBAC1D,CAAC;qBACH;iBACF","sourcesContent":["import {\n ChangeDetectionStrategy,\n Component\n} from '@angular/core';\nimport {\n animate,\n state,\n style,\n transition,\n trigger\n} from '@angular/animations';\n\n@Component({\n selector: 'rxap-error',\n templateUrl: './error.component.html',\n styleUrls: [ './error.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-error' },\n animations: [\n trigger('fadeAnimation', [\n // the \"in\" style determines the \"resting\" state of the element when it is visible.\n state('in', style({ opacity: 1 })),\n\n // fade in when created. this could also be written as transition('void => *')\n transition(':enter', [ style({ opacity: 0 }), animate(300) ]),\n\n // fade out when destroyed. this could also be written as transition('void => *')\n transition(':leave', animate(300, style({ opacity: 0 })))\n ])\n ]\n})\nexport class ErrorComponent {}\n","<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"]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ErrorComponent } from './error.component';
|
|
3
|
-
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class ErrorComponentModule {
|
|
6
|
-
}
|
|
7
|
-
ErrorComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
-
ErrorComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, declarations: [ErrorComponent], imports: [FlexLayoutModule], exports: [ErrorComponent] });
|
|
9
|
-
ErrorComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, imports: [[
|
|
10
|
-
FlexLayoutModule
|
|
11
|
-
]] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: ErrorComponentModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
declarations: [
|
|
16
|
-
ErrorComponent
|
|
17
|
-
],
|
|
18
|
-
imports: [
|
|
19
|
-
FlexLayoutModule
|
|
20
|
-
],
|
|
21
|
-
exports: [
|
|
22
|
-
ErrorComponent
|
|
23
|
-
]
|
|
24
|
-
}]
|
|
25
|
-
}] });
|
|
26
|
-
//# sourceMappingURL=error.component.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.component.module.js","sourceRoot":"","sources":["../../../../../../../libs/oauth/single-sign-on/src/lib/error/error.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;;AAcxD,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBAT7B,cAAc,aAGd,gBAAgB,aAGhB,cAAc;kHAGL,oBAAoB,YAPjB;YACZ,gBAAgB;SACjB;2FAKU,oBAAoB;kBAXhC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,cAAc;qBACf;oBACD,OAAO,EAAO;wBACZ,gBAAgB;qBACjB;oBACD,OAAO,EAAO;wBACZ,cAAc;qBACf;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { ErrorComponent } from './error.component';\nimport { FlexLayoutModule } from '@angular/flex-layout';\n\n\n@NgModule({\n declarations: [\n ErrorComponent\n ],\n imports: [\n FlexLayoutModule\n ],\n exports: [\n ErrorComponent\n ]\n})\nexport class ErrorComponentModule {}\n"]}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ContainerComponentModule, LoadingComponentModule } from '@rxap/oauth';
|
|
3
|
-
import { ContinueComponentModule } from './continue/continue.component.module';
|
|
4
|
-
import { RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED } from './tokens';
|
|
5
|
-
import { OAuthSingleSignOnGuard } from './o-auth-single-sign-on.guard';
|
|
6
|
-
import { ErrorComponentModule } from './error/error.component.module';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class OAuthSingleSignOnRoutingModule {
|
|
9
|
-
static forRouting(options = {}) {
|
|
10
|
-
const providers = [
|
|
11
|
-
OAuthSingleSignOnGuard
|
|
12
|
-
];
|
|
13
|
-
if (options.redirectContinueDisabled) {
|
|
14
|
-
providers.push({
|
|
15
|
-
provide: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED,
|
|
16
|
-
useValue: options.redirectContinueDisabled
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return {
|
|
20
|
-
ngModule: OAuthSingleSignOnRoutingModule,
|
|
21
|
-
providers
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
OAuthSingleSignOnRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
26
|
-
OAuthSingleSignOnRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, exports: [ContinueComponentModule,
|
|
27
|
-
LoadingComponentModule,
|
|
28
|
-
ContainerComponentModule,
|
|
29
|
-
ErrorComponentModule] });
|
|
30
|
-
OAuthSingleSignOnRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, providers: [
|
|
31
|
-
OAuthSingleSignOnGuard
|
|
32
|
-
], imports: [ContinueComponentModule,
|
|
33
|
-
LoadingComponentModule,
|
|
34
|
-
ContainerComponentModule,
|
|
35
|
-
ErrorComponentModule] });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnRoutingModule, decorators: [{
|
|
37
|
-
type: NgModule,
|
|
38
|
-
args: [{
|
|
39
|
-
exports: [
|
|
40
|
-
ContinueComponentModule,
|
|
41
|
-
LoadingComponentModule,
|
|
42
|
-
ContainerComponentModule,
|
|
43
|
-
ErrorComponentModule
|
|
44
|
-
],
|
|
45
|
-
providers: [
|
|
46
|
-
OAuthSingleSignOnGuard
|
|
47
|
-
]
|
|
48
|
-
}]
|
|
49
|
-
}] });
|
|
50
|
-
//# sourceMappingURL=o-auth-single-sign-on-routing.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o-auth-single-sign-on-routing.module.js","sourceRoot":"","sources":["../../../../../../libs/oauth/single-sign-on/src/lib/o-auth-single-sign-on-routing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAGT,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;;AAiBtE,MAAM,OAAO,8BAA8B;IAElC,MAAM,CAAC,UAAU,CAAC,UAAoC,EAAE;QAC7D,MAAM,SAAS,GAAe;YAC5B,sBAAsB;SACvB,CAAC;QACF,IAAI,OAAO,CAAC,wBAAwB,EAAE;YACpC,SAAS,CAAC,IAAI,CAAC;gBACb,OAAO,EAAG,0CAA0C;gBACpD,QAAQ,EAAE,OAAO,CAAC,wBAAwB;aAC3C,CAAC,CAAC;SACJ;QACD,OAAO;YACL,QAAQ,EAAE,8BAA8B;YACxC,SAAS;SACV,CAAC;IACJ,CAAC;;2HAhBU,8BAA8B;4HAA9B,8BAA8B,YATvC,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,oBAAoB;4HAMX,8BAA8B,aAJ9B;QACT,sBAAsB;KACvB,YAPC,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,oBAAoB;2FAMX,8BAA8B;kBAX1C,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,uBAAuB;wBACvB,sBAAsB;wBACtB,wBAAwB;wBACxB,oBAAoB;qBACrB;oBACD,SAAS,EAAE;wBACT,sBAAsB;qBACvB;iBACF","sourcesContent":["import {\n NgModule,\n ModuleWithProviders,\n Provider\n} from '@angular/core';\nimport {\n ContainerComponentModule,\n LoadingComponentModule\n} from '@rxap/oauth';\nimport { ContinueComponentModule } from './continue/continue.component.module';\nimport { RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED } from './tokens';\nimport { OAuthSingleSignOnGuard } from './o-auth-single-sign-on.guard';\nimport { ErrorComponentModule } from './error/error.component.module';\n\nexport interface OAuthSingleSignOnOptions {\n redirectContinueDisabled?: boolean\n}\n\n@NgModule({\n exports: [\n ContinueComponentModule,\n LoadingComponentModule,\n ContainerComponentModule,\n ErrorComponentModule\n ],\n providers: [\n OAuthSingleSignOnGuard\n ]\n})\nexport class OAuthSingleSignOnRoutingModule {\n\n public static forRouting(options: OAuthSingleSignOnOptions = {}): ModuleWithProviders<OAuthSingleSignOnRoutingModule> {\n const providers: Provider[] = [\n OAuthSingleSignOnGuard\n ];\n if (options.redirectContinueDisabled) {\n providers.push({\n provide: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED,\n useValue: options.redirectContinueDisabled\n });\n }\n return {\n ngModule: OAuthSingleSignOnRoutingModule,\n providers\n };\n }\n\n}\n"]}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __awaiter } from "tslib";
|
|
2
|
-
import { Router } from '@angular/router';
|
|
3
|
-
import { Inject, Injectable, Optional } from '@angular/core';
|
|
4
|
-
import { OAuthSingleSignOnService } from './o-auth-single-sign-on.service';
|
|
5
|
-
import { OAuthService, RXAP_O_AUTH_REDIRECT_SIGN_IN } from '@rxap/oauth';
|
|
6
|
-
import { RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE, RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED } from './tokens';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "./o-auth-single-sign-on.service";
|
|
9
|
-
import * as i2 from "@angular/router";
|
|
10
|
-
export class OAuthSingleSignOnGuard {
|
|
11
|
-
constructor(authentication, router, redirectContinue, redirectLogin, redirectContinueDisabled) {
|
|
12
|
-
this.authentication = authentication;
|
|
13
|
-
this.router = router;
|
|
14
|
-
this.redirectContinue = redirectContinue;
|
|
15
|
-
this.redirectLogin = redirectLogin;
|
|
16
|
-
this.redirectContinueDisabled = redirectContinueDisabled;
|
|
17
|
-
}
|
|
18
|
-
canActivate(route) {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
const redirect = route.queryParamMap.get('redirect');
|
|
21
|
-
const secret = route.queryParamMap.get('secret');
|
|
22
|
-
const payload = route.queryParamMap.get('payload');
|
|
23
|
-
const action = route.queryParamMap.get('action');
|
|
24
|
-
if (!redirect || !secret) {
|
|
25
|
-
console.warn(`The query params 'redirect' or 'secret' is not defined!`);
|
|
26
|
-
return this.router.createUrlTree(['error']);
|
|
27
|
-
}
|
|
28
|
-
this.authentication.redirect = atob(redirect);
|
|
29
|
-
this.authentication.payload = payload;
|
|
30
|
-
this.authentication.secret = secret;
|
|
31
|
-
if (action) {
|
|
32
|
-
if (action === 'signOut') {
|
|
33
|
-
yield this.authentication.signOut();
|
|
34
|
-
return this.router.createUrlTree(this.redirectLogin);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
const isAuthenticated = yield this.authentication.isAuthenticated();
|
|
38
|
-
console.log('isAuthenticated', isAuthenticated);
|
|
39
|
-
if (isAuthenticated) {
|
|
40
|
-
if (this.redirectContinueDisabled) {
|
|
41
|
-
this.authentication.redirectToClient();
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
return this.router.createUrlTree(this.redirectContinue);
|
|
45
|
-
}
|
|
46
|
-
return this.router.createUrlTree(this.redirectLogin);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
OAuthSingleSignOnGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard, deps: [{ token: OAuthService }, { token: Router }, { token: RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE }, { token: RXAP_O_AUTH_REDIRECT_SIGN_IN }, { token: RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
51
|
-
OAuthSingleSignOnGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: OAuthSingleSignOnGuard, decorators: [{
|
|
53
|
-
type: Injectable
|
|
54
|
-
}], ctorParameters: function () { return [{ type: i1.OAuthSingleSignOnService, decorators: [{
|
|
55
|
-
type: Inject,
|
|
56
|
-
args: [OAuthService]
|
|
57
|
-
}] }, { type: i2.Router, decorators: [{
|
|
58
|
-
type: Inject,
|
|
59
|
-
args: [Router]
|
|
60
|
-
}] }, { type: undefined, decorators: [{
|
|
61
|
-
type: Inject,
|
|
62
|
-
args: [RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE]
|
|
63
|
-
}] }, { type: undefined, decorators: [{
|
|
64
|
-
type: Inject,
|
|
65
|
-
args: [RXAP_O_AUTH_REDIRECT_SIGN_IN]
|
|
66
|
-
}] }, { type: undefined, decorators: [{
|
|
67
|
-
type: Optional
|
|
68
|
-
}, {
|
|
69
|
-
type: Inject,
|
|
70
|
-
args: [RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED]
|
|
71
|
-
}] }]; } });
|
|
72
|
-
//# sourceMappingURL=o-auth-single-sign-on.guard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"o-auth-single-sign-on.guard.js","sourceRoot":"","sources":["../../../../../../libs/oauth/single-sign-on/src/lib/o-auth-single-sign-on.guard.ts"],"names":[],"mappings":";AAAA,OAAO,EAGL,MAAM,EAEP,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,MAAM,EACN,UAAU,EACV,QAAQ,EACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EACL,YAAY,EACZ,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,4CAA4C,EAC5C,0CAA0C,EAC3C,MAAM,UAAU,CAAC;;;;AAGlB,MAAM,OAAO,sBAAsB;IAEjC,YAEmB,cAAwC,EAExC,MAAc,EAEd,gBAA0B,EAE1B,aAAuB,EAGvB,wBAAwC;QATxC,mBAAc,GAAd,cAAc,CAA0B;QAExC,WAAM,GAAN,MAAM,CAAQ;QAEd,qBAAgB,GAAhB,gBAAgB,CAAU;QAE1B,kBAAa,GAAb,aAAa,CAAU;QAGvB,6BAAwB,GAAxB,wBAAwB,CAAgB;IAE3D,CAAC;IAEY,WAAW,CAAC,KAA6B;;YAEpD,MAAM,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;YACrD,MAAM,MAAM,GAAK,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YACnD,MAAM,OAAO,GAAI,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;YACpD,MAAM,MAAM,GAAK,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;YAEnD,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,EAAE;gBACxB,OAAO,CAAC,IAAI,CAAC,yDAAyD,CAAC,CAAC;gBACxE,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAE,OAAO,CAAE,CAAC,CAAC;aAC/C;YAED,IAAI,CAAC,cAAc,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;YAC9C,IAAI,CAAC,cAAc,CAAC,OAAO,GAAI,OAAO,CAAC;YACvC,IAAI,CAAC,cAAc,CAAC,MAAM,GAAK,MAAM,CAAC;YAEtC,IAAI,MAAM,EAAE;gBACV,IAAI,MAAM,KAAK,SAAS,EAAE;oBACxB,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,CAAC;oBACpC,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;iBACtD;aACF;YAED,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC;YAEpE,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,eAAe,CAAC,CAAC;YAEhD,IAAI,eAAe,EAAE;gBACnB,IAAI,IAAI,CAAC,wBAAwB,EAAE;oBACjC,IAAI,CAAC,cAAc,CAAC,gBAAgB,EAAE,CAAC;oBACvC,OAAO,IAAI,CAAC;iBACb;gBACD,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;aACzD;YAED,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACvD,CAAC;KAAA;;mHArDU,sBAAsB,kBAGvB,YAAY,aAEZ,MAAM,aAEN,4CAA4C,aAE5C,4BAA4B,aAG5B,0CAA0C;uHAZzC,sBAAsB;2FAAtB,sBAAsB;kBADlC,UAAU;;0BAIN,MAAM;2BAAC,YAAY;;0BAEnB,MAAM;2BAAC,MAAM;;0BAEb,MAAM;2BAAC,4CAA4C;;0BAEnD,MAAM;2BAAC,4BAA4B;;0BAEnC,QAAQ;;0BACR,MAAM;2BAAC,0CAA0C","sourcesContent":["import {\n ActivatedRouteSnapshot,\n CanActivate,\n Router,\n UrlTree\n} from '@angular/router';\nimport {\n Inject,\n Injectable,\n Optional\n} from '@angular/core';\nimport { OAuthSingleSignOnService } from './o-auth-single-sign-on.service';\nimport {\n OAuthService,\n RXAP_O_AUTH_REDIRECT_SIGN_IN\n} from '@rxap/oauth';\nimport {\n RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE,\n RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED\n} from './tokens';\n\n@Injectable()\nexport class OAuthSingleSignOnGuard implements CanActivate {\n\n constructor(\n @Inject(OAuthService)\n private readonly authentication: OAuthSingleSignOnService,\n @Inject(Router)\n private readonly router: Router,\n @Inject(RXAP_O_AUTH_SINGLE_SIGN_ON_REDIRECT_CONTINUE)\n private readonly redirectContinue: string[],\n @Inject(RXAP_O_AUTH_REDIRECT_SIGN_IN)\n private readonly redirectLogin: string[],\n @Optional()\n @Inject(RXAP_O_AUTH_SSO_REDIRECT_CONTINUE_DISABLED)\n private readonly redirectContinueDisabled: boolean | null\n ) {\n }\n\n public async canActivate(route: ActivatedRouteSnapshot): Promise<boolean | UrlTree> {\n\n const redirect = route.queryParamMap.get('redirect');\n const secret = route.queryParamMap.get('secret');\n const payload = route.queryParamMap.get('payload');\n const action = route.queryParamMap.get('action');\n\n if (!redirect || !secret) {\n console.warn(`The query params 'redirect' or 'secret' is not defined!`);\n return this.router.createUrlTree([ 'error' ]);\n }\n\n this.authentication.redirect = atob(redirect);\n this.authentication.payload = payload;\n this.authentication.secret = secret;\n\n if (action) {\n if (action === 'signOut') {\n await this.authentication.signOut();\n return this.router.createUrlTree(this.redirectLogin);\n }\n }\n\n const isAuthenticated = await this.authentication.isAuthenticated();\n\n console.log('isAuthenticated', isAuthenticated);\n\n if (isAuthenticated) {\n if (this.redirectContinueDisabled) {\n this.authentication.redirectToClient();\n return true;\n }\n return this.router.createUrlTree(this.redirectContinue);\n }\n\n return this.router.createUrlTree(this.redirectLogin);\n }\n\n}\n"]}
|