ngx-histaff-alpha 4.2.2 → 4.2.4
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/esm2022/lib/app/http-interceptors/graph-interceptor.mjs +48 -0
- package/esm2022/lib/app/http-interceptors/index.mjs +4 -2
- package/esm2022/lib/app/libraries/core-oauth-callback-office365/core-oauth-callback-office365.component.mjs +24 -0
- package/esm2022/lib/app/services/app-config.service.mjs +3 -1
- package/esm2022/lib/app/services/app-initialization.service.mjs +24 -6
- package/esm2022/lib/app/services/auth.service.mjs +1 -33
- package/esm2022/lib/app/services/developer-validation.service.mjs +8 -8
- package/esm2022/lib/app/services/pkce.service.mjs +86 -25
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/ngx-histaff-alpha.mjs +241 -131
- package/fesm2022/ngx-histaff-alpha.mjs.map +1 -1
- package/lib/app/http-interceptors/graph-interceptor.d.ts +12 -0
- package/lib/app/http-interceptors/index.d.ts +6 -1
- package/lib/app/libraries/core-oauth-callback-office365/core-oauth-callback-office365.component.d.ts +8 -0
- package/lib/app/libraries/core-table/core-table.component.d.ts +1 -1
- package/lib/app/services/app-config.service.d.ts +3 -0
- package/lib/app/services/app-initialization.service.d.ts +3 -1
- package/lib/app/services/auth.service.d.ts +0 -2
- package/lib/app/services/developer-validation.service.d.ts +3 -3
- package/lib/app/services/pkce.service.d.ts +24 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpInterceptor, HttpHandler, HttpRequest, HttpHandlerFn, HttpEvent } from '@angular/common/http';
|
|
2
|
+
import { PkceService } from '../services/pkce.service';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class GraphInterceptor implements HttpInterceptor {
|
|
6
|
+
private pkceService;
|
|
7
|
+
constructor(pkceService: PkceService);
|
|
8
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GraphInterceptor, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GraphInterceptor>;
|
|
11
|
+
}
|
|
12
|
+
export declare function graphInterceptor(req: HttpRequest<any>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseUrlInterceptor, InterceptorSkipHeader, baseUrlInterceptor } from './base-url-interceptor';
|
|
2
2
|
import { LoggingInterceptor } from './logging-interceptor';
|
|
3
3
|
import { AuthInterceptor, authInterceptor } from './auth-interceptor';
|
|
4
|
+
import { GraphInterceptor, graphInterceptor } from './graph-interceptor';
|
|
4
5
|
import { TokenInterceptor, tokenInterceptor } from './token-interceptor';
|
|
5
6
|
import { ResponseInterceptor, responseInterceptor } from './response-interceptor';
|
|
6
7
|
import { TimeZoneInterceptor, timeZoneInterceptor } from './time-zone-interceptor';
|
|
@@ -19,6 +20,10 @@ export declare const httpInterceptorProviders: ({
|
|
|
19
20
|
provide: import("@angular/core").InjectionToken<readonly import("@angular/common/http").HttpInterceptor[]>;
|
|
20
21
|
useClass: typeof AuthInterceptor;
|
|
21
22
|
multi: boolean;
|
|
23
|
+
} | {
|
|
24
|
+
provide: import("@angular/core").InjectionToken<readonly import("@angular/common/http").HttpInterceptor[]>;
|
|
25
|
+
useClass: typeof GraphInterceptor;
|
|
26
|
+
multi: boolean;
|
|
22
27
|
} | {
|
|
23
28
|
provide: import("@angular/core").InjectionToken<readonly import("@angular/common/http").HttpInterceptor[]>;
|
|
24
29
|
useClass: typeof TokenInterceptor;
|
|
@@ -40,4 +45,4 @@ export declare const httpInterceptorProviders: ({
|
|
|
40
45
|
useClass: typeof LangInterceptor;
|
|
41
46
|
multi: boolean;
|
|
42
47
|
})[];
|
|
43
|
-
export { InterceptorSkipHeader, baseUrlInterceptor, authInterceptor, tokenInterceptor, responseInterceptor, timeZoneInterceptor, cachingInterceptor, langInterceptor };
|
|
48
|
+
export { InterceptorSkipHeader, baseUrlInterceptor, authInterceptor, graphInterceptor, tokenInterceptor, responseInterceptor, timeZoneInterceptor, cachingInterceptor, langInterceptor };
|
package/lib/app/libraries/core-oauth-callback-office365/core-oauth-callback-office365.component.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActivatedRoute } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CoreOauthCallbackOffice365Component {
|
|
4
|
+
private route;
|
|
5
|
+
constructor(route: ActivatedRoute);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CoreOauthCallbackOffice365Component, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CoreOauthCallbackOffice365Component, "core-oauth-callback-office365", never, {}, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -90,7 +90,7 @@ export declare class CoreTableComponent extends CoreFormControlBaseComponent imp
|
|
|
90
90
|
onToolClick: EventEmitter<ICoreTableToolClickEventEmitterData>;
|
|
91
91
|
onRowClick: EventEmitter<any>;
|
|
92
92
|
onRowDoubleClick: EventEmitter<any>;
|
|
93
|
-
onSelectedIdsChange: EventEmitter<
|
|
93
|
+
onSelectedIdsChange: EventEmitter<string[] | number[]>;
|
|
94
94
|
onSelectedDataChange: EventEmitter<any[]>;
|
|
95
95
|
onColumnCaptionClick: EventEmitter<ICoreTableColumnItem>;
|
|
96
96
|
private verticalLine;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IOffice365Pkce } from './pkce.service';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class AppConfigService {
|
|
3
4
|
APP_TYPE: string;
|
|
@@ -18,6 +19,8 @@ export declare class AppConfigService {
|
|
|
18
19
|
OAUTH2_OIDC_LOGIN_URI: string;
|
|
19
20
|
OAUTH2_OIDC_REDIRECT_URI: string;
|
|
20
21
|
OAUTH2_OIDC_SCOPE: string;
|
|
22
|
+
OFFICE365_DEV: IOffice365Pkce | undefined;
|
|
23
|
+
OFFICE365_PROD: IOffice365Pkce | undefined;
|
|
21
24
|
SAML2ADFS_ENABLED: boolean;
|
|
22
25
|
SAML2ADFS_IDP: string;
|
|
23
26
|
SAML2ADFS_IDENTIFIER: string;
|
|
@@ -12,6 +12,7 @@ import { GrpcService } from './grpc.service';
|
|
|
12
12
|
import { SeekerService } from '../libraries/core-form-control-seeker/seeker.service';
|
|
13
13
|
import { ActionService } from '../services/action.service';
|
|
14
14
|
import { DeveloperValidationService } from './developer-validation.service';
|
|
15
|
+
import { PkceService } from './pkce.service';
|
|
15
16
|
import * as i0 from "@angular/core";
|
|
16
17
|
export declare class AppInitializationService implements OnDestroy {
|
|
17
18
|
private authService;
|
|
@@ -25,6 +26,7 @@ export declare class AppInitializationService implements OnDestroy {
|
|
|
25
26
|
private seekerService;
|
|
26
27
|
private actionService;
|
|
27
28
|
private developerValidationService;
|
|
29
|
+
private pkceService;
|
|
28
30
|
initializing$: BehaviorSubject<boolean>;
|
|
29
31
|
ssoProcessing$: BehaviorSubject<boolean>;
|
|
30
32
|
subscriptions: Subscription[];
|
|
@@ -32,7 +34,7 @@ export declare class AppInitializationService implements OnDestroy {
|
|
|
32
34
|
storeSessionOk: boolean;
|
|
33
35
|
pendingAuthData$: BehaviorSubject<IAuthData | null>;
|
|
34
36
|
ssoFailed: boolean;
|
|
35
|
-
constructor(authService: AuthService, mls: MultiLanguageService, layoutService: LayoutService, organizationService: OrganizationService, routingService: RoutingService, appConfigService: AppConfigService, appService: AppService, grpcService: GrpcService, seekerService: SeekerService, actionService: ActionService, developerValidationService: DeveloperValidationService);
|
|
37
|
+
constructor(authService: AuthService, mls: MultiLanguageService, layoutService: LayoutService, organizationService: OrganizationService, routingService: RoutingService, appConfigService: AppConfigService, appService: AppService, grpcService: GrpcService, seekerService: SeekerService, actionService: ActionService, developerValidationService: DeveloperValidationService, pkceService: PkceService);
|
|
36
38
|
appInitialize(): void;
|
|
37
39
|
ngOnDestroy(): void;
|
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppInitializationService, never>;
|
|
@@ -38,8 +38,6 @@ export declare class AuthService {
|
|
|
38
38
|
getToken: () => string;
|
|
39
39
|
parseJwt(token: string): any;
|
|
40
40
|
resolveAuthenticateResponse(x: any): void;
|
|
41
|
-
generateRandomCodeVerifier(length: number): string;
|
|
42
|
-
generateCodeChallengeFromVerifier(v: string): Promise<string>;
|
|
43
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
44
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
45
43
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { PkceService } from './pkce.service';
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DeveloperValidationService {
|
|
6
|
-
private
|
|
6
|
+
private pkceService;
|
|
7
7
|
private route;
|
|
8
8
|
authorizationEndpoint: string;
|
|
9
9
|
tokenEndpoint: string;
|
|
@@ -11,7 +11,7 @@ export declare class DeveloperValidationService {
|
|
|
11
11
|
clientSecret: string;
|
|
12
12
|
redirectUri: string;
|
|
13
13
|
securityPassed$: BehaviorSubject<boolean>;
|
|
14
|
-
constructor(
|
|
14
|
+
constructor(pkceService: PkceService, route: ActivatedRoute);
|
|
15
15
|
monitorValidationStatus(): void;
|
|
16
16
|
validateDeveloperViaPopup(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeveloperValidationService, never>;
|
|
@@ -1,14 +1,35 @@
|
|
|
1
1
|
import { AppService } from './app.service';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { AppConfigService } from './app-config.service';
|
|
4
|
+
import { AlertService } from '../libraries/alert/alert.service';
|
|
5
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
6
|
import * as i0 from "@angular/core";
|
|
7
|
+
export interface IOffice365Pkce {
|
|
8
|
+
IS_ENABLED: boolean;
|
|
9
|
+
DISPLAY_NAME: string;
|
|
10
|
+
CLIENT_ID: string;
|
|
11
|
+
AUTHORIZATION_ENDPOINT: string;
|
|
12
|
+
REDIRECT_URI: string;
|
|
13
|
+
TOKEN_POST_ENDPOINT: string;
|
|
14
|
+
}
|
|
4
15
|
export declare class PkceService {
|
|
16
|
+
private appConfigService;
|
|
5
17
|
private appService;
|
|
6
18
|
private router;
|
|
7
|
-
|
|
19
|
+
private alertService;
|
|
20
|
+
lsCodeVerifierName: string;
|
|
21
|
+
isEnabled: boolean | undefined;
|
|
22
|
+
authorizationEndpoint: string | undefined;
|
|
23
|
+
clientId: string | undefined;
|
|
24
|
+
redirectUri: string | undefined;
|
|
25
|
+
tokenPostEndpoint: string | undefined;
|
|
26
|
+
userGraphToken$: BehaviorSubject<string>;
|
|
27
|
+
constructor(appConfigService: AppConfigService, appService: AppService, router: Router, alertService: AlertService);
|
|
8
28
|
generateRandomCodeVerifier(length: number): string;
|
|
9
29
|
generateCodeChallengeFromVerifier(v: string): Promise<string>;
|
|
10
|
-
doAuthorize(
|
|
11
|
-
doAndGetToken(
|
|
30
|
+
doAuthorize(): void;
|
|
31
|
+
doAndGetToken(authorizationCode: any): Promise<string | undefined>;
|
|
32
|
+
validateOffice365UserViaPopup(): void;
|
|
12
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<PkceService, never>;
|
|
13
34
|
static ɵprov: i0.ɵɵInjectableDeclaration<PkceService>;
|
|
14
35
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -208,6 +208,7 @@ export * from './lib/app/libraries/core-month-picker/core-month-picker/core-mont
|
|
|
208
208
|
export * from './lib/app/libraries/core-month-selector/core-month-selector/core-month-selector.component';
|
|
209
209
|
export * from './lib/app/libraries/core-navigation-tracker/core-navigation-tracker/core-navigation-tracker.component';
|
|
210
210
|
export * from './lib/app/libraries/core-oauth-callback/core-oauth-callback.component';
|
|
211
|
+
export * from './lib/app/libraries/core-oauth-callback-office365/core-oauth-callback-office365.component';
|
|
211
212
|
export * from './lib/app/libraries/core-org-tree/core-org-tree/core-org-tree.component';
|
|
212
213
|
export * from './lib/app/libraries/core-org-tree/core-org-tree/IOrgTreeItem';
|
|
213
214
|
export * from './lib/app/libraries/core-org-tree/core-org-tree-state';
|