@livetiles/reach-plugin-types 0.5.0-preview.804 → 0.5.0-preview.807
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/lib/index.d.ts +57 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -113,6 +113,10 @@ declare module "libs/shared/util/authentication/src/AuthenticationStrategy" {
|
|
|
113
113
|
realm: string;
|
|
114
114
|
url: string;
|
|
115
115
|
scope: string;
|
|
116
|
+
idpIdentifier?: string;
|
|
117
|
+
openIdTokenEndPoint: string;
|
|
118
|
+
openIdAuthorizeEndPoint: string;
|
|
119
|
+
openIdLogoutEndPoint: string;
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
declare module "libs/shared/util/authentication/src/ErrorWithResource" {
|
|
@@ -370,6 +374,19 @@ declare module "libs/shared/util/environment/src/ClientConfigContext" {
|
|
|
370
374
|
export function useClientConfig(): ClientConfig;
|
|
371
375
|
export function prepareClientConfig(config: ClientConfig): ClientConfig;
|
|
372
376
|
}
|
|
377
|
+
declare module "libs/shared/util/environment/src/OpenIdConfiguration" {
|
|
378
|
+
export interface OpenIdConfiguration {
|
|
379
|
+
clientId: string;
|
|
380
|
+
url: string;
|
|
381
|
+
scope: string;
|
|
382
|
+
issuer: string;
|
|
383
|
+
}
|
|
384
|
+
export interface MobileOpenIdConfiguration extends OpenIdConfiguration {
|
|
385
|
+
openIdTokenEndPoint: string;
|
|
386
|
+
openIdAuthorizeEndPoint: string;
|
|
387
|
+
openIdLogoutEndPoint: string;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
373
390
|
declare module "libs/shared/util/environment/src/index" {
|
|
374
391
|
export * from "libs/shared/util/environment/src/AnalyticsConfig";
|
|
375
392
|
export * from "libs/shared/util/environment/src/AppConfiguration";
|
|
@@ -380,6 +397,7 @@ declare module "libs/shared/util/environment/src/index" {
|
|
|
380
397
|
export * from "libs/shared/util/environment/src/MsalConfiguration";
|
|
381
398
|
export * from "libs/shared/util/environment/src/EnvironmentContext";
|
|
382
399
|
export * from "libs/shared/util/environment/src/ClientConfigContext";
|
|
400
|
+
export * from "libs/shared/util/environment/src/OpenIdConfiguration";
|
|
383
401
|
}
|
|
384
402
|
declare module "libs/shared/util/common/src/ReportService" {
|
|
385
403
|
export function trackSubscriptionState(state: any): void;
|
|
@@ -11760,6 +11778,9 @@ declare module "libs/shared/util/capacitor-plugins/openid-client/src/definitions
|
|
|
11760
11778
|
url: string;
|
|
11761
11779
|
scope: string;
|
|
11762
11780
|
userName?: string;
|
|
11781
|
+
openIdTokenEndPoint: string;
|
|
11782
|
+
openIdAuthorizeEndPoint: string;
|
|
11783
|
+
openIdLogoutEndPoint: string;
|
|
11763
11784
|
}
|
|
11764
11785
|
}
|
|
11765
11786
|
declare module "libs/shared/util/capacitor-plugins/openid-client/src/web" {
|
|
@@ -12242,13 +12263,13 @@ declare module "libs/shared/util/authentication-services/src/keycloak/OnPremKeyc
|
|
|
12242
12263
|
}
|
|
12243
12264
|
declare module "libs/shared/util/authentication-services/src/keycloak/MobileOpenIdService" {
|
|
12244
12265
|
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
12245
|
-
import {
|
|
12266
|
+
import { MobileOpenIdConfiguration } from "libs/shared/util/environment/src/index";
|
|
12246
12267
|
import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
|
|
12247
12268
|
import { LoginArguments } from "libs/shared/util/authentication-services/src/LoginArguments";
|
|
12248
12269
|
export class MobileOpenIdService extends BaseAuthService {
|
|
12249
12270
|
private readonly openIdClient;
|
|
12250
12271
|
private readonly config;
|
|
12251
|
-
constructor(config:
|
|
12272
|
+
constructor(config: MobileOpenIdConfiguration);
|
|
12252
12273
|
getSupportedAuthTypes(): AuthenticationType[];
|
|
12253
12274
|
protected loginInternal(loginArguments: LoginArguments): Promise<boolean>;
|
|
12254
12275
|
isLoginInProgress(): Promise<boolean>;
|
|
@@ -12262,6 +12283,40 @@ declare module "libs/shared/util/authentication-services/src/keycloak/MobileOpen
|
|
|
12262
12283
|
clearCache(): Promise<void>;
|
|
12263
12284
|
}
|
|
12264
12285
|
}
|
|
12286
|
+
declare module "libs/shared/util/authentication-services/src/oidc-client/OpenIdAuthService" {
|
|
12287
|
+
import { OpenIdConfiguration } from "libs/shared/util/environment/src/index";
|
|
12288
|
+
import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
|
|
12289
|
+
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|
|
12290
|
+
export interface OpenIdAuthInfo {
|
|
12291
|
+
email: string;
|
|
12292
|
+
userId: string;
|
|
12293
|
+
token: string;
|
|
12294
|
+
refreshToken?: string;
|
|
12295
|
+
}
|
|
12296
|
+
export class OpenIdAuthService extends BaseAuthService {
|
|
12297
|
+
private readonly config;
|
|
12298
|
+
private readonly authInfoStorageKey;
|
|
12299
|
+
private userManager;
|
|
12300
|
+
constructor(config: OpenIdConfiguration);
|
|
12301
|
+
getSupportedAuthTypes(): AuthenticationType[];
|
|
12302
|
+
isAuthenticated(): Promise<boolean>;
|
|
12303
|
+
isLoginInProgress(): Promise<boolean>;
|
|
12304
|
+
clearCache(): Promise<void>;
|
|
12305
|
+
getCurrentEmailInternal(): Promise<string | null>;
|
|
12306
|
+
getUserId(): Promise<string | null>;
|
|
12307
|
+
protected loginInternal(): Promise<boolean>;
|
|
12308
|
+
handleCallbackInternal(): Promise<boolean>;
|
|
12309
|
+
protected logoutInternal(): Promise<void>;
|
|
12310
|
+
acquireToken(): Promise<string>;
|
|
12311
|
+
acquireTokenInternal(): Promise<string>;
|
|
12312
|
+
private tryGetToken;
|
|
12313
|
+
private getAuthInfo;
|
|
12314
|
+
private setAuthInfo;
|
|
12315
|
+
private clearAuthInfo;
|
|
12316
|
+
private setAuthInfoAndGetToken;
|
|
12317
|
+
private isTokenExpired;
|
|
12318
|
+
}
|
|
12319
|
+
}
|
|
12265
12320
|
declare module "libs/shared/util/authentication-services/src/AuthServiceFactory" {
|
|
12266
12321
|
import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
|
|
12267
12322
|
import { AuthenticationType } from "libs/shared/util/authentication/src/index";
|