@acorex/connectivity 20.2.0-next.2 → 20.2.0-next.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/api/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import * as i1 from 'angular-oauth2-oidc';
6
6
  import { AuthConfig } from 'angular-oauth2-oidc';
7
7
  import * as i2 from '@acorex/platform/auth';
8
8
  import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPSessionContext, AXPPermissionLoader, AXPPermission, AXPTenantLoader, AXPTenant } from '@acorex/platform/auth';
9
+ import * as i3 from '@acorex/connectivity/utils';
9
10
  import { Observable } from 'rxjs';
10
11
 
11
12
  declare class AXCApiEntityStorageService implements AXPEntityStorageService<string, any> {
@@ -40,7 +41,7 @@ declare class AXCApiEntityStorageService implements AXPEntityStorageService<stri
40
41
 
41
42
  declare class AXCApiModule {
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<AXCApiModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApiModule, never, [typeof i1.OAuthModule, typeof i2.AXPAuthModule], never>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AXCApiModule, never, [typeof i1.OAuthModule, typeof i2.AXPAuthModule, typeof i3.AXCUtilsModule], never>;
44
45
  static ɵinj: i0.ɵɵInjectorDeclaration<AXCApiModule>;
45
46
  }
46
47
 
@@ -127,7 +128,6 @@ declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
127
128
  private sessionService;
128
129
  private router;
129
130
  userInfo: any;
130
- authConfig: AuthConfig;
131
131
  openidConfigurationInfo: any;
132
132
  configureOAuth(): Promise<void>;
133
133
  signin(credentials: AXPBaseCredentials): Promise<AXPSignInResult | undefined>;
@@ -201,5 +201,32 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
201
201
  static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcTenantLoader>;
202
202
  }
203
203
 
204
- export { AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
204
+ declare class APIGoogleStrategy extends AXPAuthStrategy {
205
+ private aXMAuthConfigs;
206
+ private oauthService;
207
+ private http;
208
+ private sessionService;
209
+ private router;
210
+ private externalAuthorizationService;
211
+ private tenantLoader;
212
+ private applicationLoader;
213
+ userInfo: any;
214
+ authConfig: AuthConfig;
215
+ openidConfigurationInfo: any;
216
+ constructor();
217
+ get name(): string;
218
+ configureOAuth(): Promise<void>;
219
+ signin(credentials: AXPBaseCredentials): Promise<void>;
220
+ signout(): Promise<void>;
221
+ refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
222
+ updateToken(params: {
223
+ [key: string]: any;
224
+ }): Promise<AXPSignInResult | undefined>;
225
+ private loadAuthData;
226
+ private handleError;
227
+ static ɵfac: i0.ɵɵFactoryDeclaration<APIGoogleStrategy, never>;
228
+ static ɵprov: i0.ɵɵInjectableDeclaration<APIGoogleStrategy>;
229
+ }
230
+
231
+ export { APIGoogleStrategy, AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
205
232
  export type { AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };