@livetiles/reach-plugin-types 0.4.112 → 0.4.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +60 -5
  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;
@@ -5516,8 +5534,11 @@ declare module "libs/shared/util/capacitor-plugins/openid-client/src/definitions
5516
5534
  export interface OpenIdAuthArguments {
5517
5535
  clientId: string;
5518
5536
  url: string;
5519
- scope: string;
5537
+ scope?: string;
5520
5538
  userName?: string;
5539
+ openIdTokenEndPoint: string;
5540
+ openIdAuthorizeEndPoint: string;
5541
+ openIdLogoutEndPoint: string;
5521
5542
  }
5522
5543
  }
5523
5544
  declare module "libs/shared/util/capacitor-plugins/openid-client/src/web" {
@@ -5998,15 +6019,15 @@ declare module "libs/shared/util/authentication-services/src/keycloak/OnPremKeyc
5998
6019
  getSupportedAuthTypes(): AuthenticationType[];
5999
6020
  }
6000
6021
  }
6001
- declare module "libs/shared/util/authentication-services/src/keycloak/MobileOpenIdService" {
6022
+ declare module "libs/shared/util/authentication-services/src/oidc-client/MobileOpenIdAuthService" {
6002
6023
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
6003
- import { KeycloakConfiguration } from "libs/shared/util/environment/src/index";
6024
+ import { MobileOpenIdConfiguration } from "libs/shared/util/environment/src/index";
6004
6025
  import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
6005
6026
  import { LoginArguments } from "libs/shared/util/authentication-services/src/LoginArguments";
6006
- export class MobileOpenIdService extends BaseAuthService {
6027
+ export class MobileOpenIdAuthService extends BaseAuthService {
6007
6028
  private readonly openIdClient;
6008
6029
  private readonly config;
6009
- constructor(config: KeycloakConfiguration);
6030
+ constructor(config: MobileOpenIdConfiguration);
6010
6031
  getSupportedAuthTypes(): AuthenticationType[];
6011
6032
  protected loginInternal(loginArguments: LoginArguments): Promise<boolean>;
6012
6033
  isLoginInProgress(): Promise<boolean>;
@@ -6020,6 +6041,40 @@ declare module "libs/shared/util/authentication-services/src/keycloak/MobileOpen
6020
6041
  clearCache(): Promise<void>;
6021
6042
  }
6022
6043
  }
6044
+ declare module "libs/shared/util/authentication-services/src/oidc-client/OpenIdAuthService" {
6045
+ import { OpenIdConfiguration } from "libs/shared/util/environment/src/index";
6046
+ import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
6047
+ import { AuthenticationType } from "libs/shared/util/authentication/src/index";
6048
+ export interface OpenIdAuthInfo {
6049
+ email: string;
6050
+ userId: string;
6051
+ token: string;
6052
+ refreshToken?: string;
6053
+ }
6054
+ export class OpenIdAuthService extends BaseAuthService {
6055
+ private readonly config;
6056
+ private readonly authInfoStorageKey;
6057
+ private userManager;
6058
+ constructor(config: OpenIdConfiguration);
6059
+ getSupportedAuthTypes(): AuthenticationType[];
6060
+ isAuthenticated(): Promise<boolean>;
6061
+ isLoginInProgress(): Promise<boolean>;
6062
+ clearCache(): Promise<void>;
6063
+ getCurrentEmailInternal(): Promise<string | null>;
6064
+ getUserId(): Promise<string | null>;
6065
+ protected loginInternal(): Promise<boolean>;
6066
+ handleCallbackInternal(): Promise<boolean>;
6067
+ protected logoutInternal(): Promise<void>;
6068
+ acquireToken(): Promise<string>;
6069
+ acquireTokenInternal(): Promise<string>;
6070
+ private tryGetToken;
6071
+ private getAuthInfo;
6072
+ private setAuthInfo;
6073
+ private clearAuthInfo;
6074
+ private setAuthInfoAndGetToken;
6075
+ private isTokenExpired;
6076
+ }
6077
+ }
6023
6078
  declare module "libs/shared/util/authentication-services/src/AuthServiceFactory" {
6024
6079
  import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
6025
6080
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.112",
7
+ "version": "0.4.114",
8
8
  "dependencies": {}
9
9
  }