@abp/ng.core 7.1.0-rc.2 → 7.1.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.
@@ -0,0 +1,10 @@
1
+ export interface AbpAuthResponse {
2
+ access_token: string;
3
+ id_token: string;
4
+ token_type: string;
5
+ expires_in: number;
6
+ refresh_token: string;
7
+ scope: string;
8
+ state?: string;
9
+ tenant_domain?: string;
10
+ }
@@ -1,12 +1,13 @@
1
+ import { HttpHeaders } from '@angular/common/http';
1
2
  import { Params } from '@angular/router';
2
3
  import { Observable } from 'rxjs';
3
4
  import { LoginParams } from '../models/auth';
5
+ import { AbpAuthResponse } from './auth-response.model';
4
6
  import * as i0 from "@angular/core";
5
7
  /**
6
8
  * Abstract service for Authentication.
7
9
  */
8
10
  export declare class AuthService implements IAuthService {
9
- constructor();
10
11
  private warningMessage;
11
12
  init(): Promise<any>;
12
13
  login(params: LoginParams): Observable<any>;
@@ -14,6 +15,7 @@ export declare class AuthService implements IAuthService {
14
15
  navigateToLogin(queryParams?: Params): void;
15
16
  get isInternalAuth(): boolean;
16
17
  get isAuthenticated(): boolean;
18
+ loginUsingGrant(grantType: string, parameters: object, headers?: HttpHeaders): Promise<AbpAuthResponse>;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
18
20
  static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
19
21
  }
@@ -24,4 +26,5 @@ export interface IAuthService {
24
26
  logout(queryParams?: Params): Observable<any>;
25
27
  navigateToLogin(queryParams?: Params): void;
26
28
  login(params: LoginParams): Observable<any>;
29
+ loginUsingGrant(grantType: string, parameters: object, headers?: HttpHeaders): Promise<AbpAuthResponse>;
27
30
  }
@@ -1,3 +1,4 @@
1
1
  export * from './ng-model.component';
2
2
  export * from './auth.guard';
3
3
  export * from './auth.service';
4
+ export * from './auth-response.model';
@@ -1,13 +1,11 @@
1
1
  import { Observable } from 'rxjs';
2
- import { AbpApplicationConfigurationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service';
3
- import { AbpApplicationLocalizationService } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service';
4
2
  import { ApplicationConfigurationDto, ApplicationGlobalFeatureConfigurationDto } from '../proxy/volo/abp/asp-net-core/mvc/application-configurations/models';
5
3
  import * as i0 from "@angular/core";
6
4
  export declare class ConfigStateService {
5
+ private readonly store;
6
+ private readonly includeLocalizationResources;
7
7
  private abpConfigService;
8
8
  private abpApplicationLocalizationService;
9
- private readonly includeLocalizationResources;
10
- private readonly store;
11
9
  get createOnUpdateStream(): <Slice>(selector: (state: {
12
10
  localization?: {
13
11
  values?: {
@@ -178,7 +176,7 @@ export declare class ConfigStateService {
178
176
  };
179
177
  }) => Slice, filterFn?: (x: Slice) => boolean) => Observable<Slice>;
180
178
  private updateSubject;
181
- constructor(abpConfigService: AbpApplicationConfigurationService, abpApplicationLocalizationService: AbpApplicationLocalizationService, includeLocalizationResources: boolean);
179
+ constructor();
182
180
  private initUpdateStream;
183
181
  private getLocalizationAndCombineWithAppState;
184
182
  private getlocalizationResource;
@@ -18,3 +18,4 @@ export * from './routes.service';
18
18
  export * from './session-state.service';
19
19
  export * from './subscription.service';
20
20
  export * from './track-by.service';
21
+ export * from './local-storage.service';
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AbpLocalStorageService implements Storage {
3
+ constructor();
4
+ [name: string]: any;
5
+ get length(): number;
6
+ clear(): void;
7
+ getItem(key: string): string;
8
+ key(index: number): string;
9
+ removeItem(key: string): void;
10
+ setItem(key: string, value: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbpLocalStorageService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<AbpLocalStorageService>;
13
+ }
@@ -1,11 +1,13 @@
1
1
  import { CurrentTenantDto } from '../proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models';
2
2
  import { ConfigStateService } from './config-state.service';
3
+ import { AbpLocalStorageService } from './local-storage.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class SessionStateService {
5
6
  private configState;
7
+ private localStorageService;
6
8
  private readonly store;
7
9
  private updateLocalStorage;
8
- constructor(configState: ConfigStateService);
10
+ constructor(configState: ConfigStateService, localStorageService: AbpLocalStorageService);
9
11
  private init;
10
12
  private setInitialLanguage;
11
13
  onLanguageChange$(): import("rxjs").Observable<string>;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abp/ng.core",
3
- "version": "7.1.0-rc.2",
3
+ "version": "7.1.0",
4
4
  "homepage": "https://abp.io",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/abpframework/abp.git"
8
8
  },
9
9
  "dependencies": {
10
- "@abp/utils": "~7.1.0-rc.2",
10
+ "@abp/utils": "~7.1.0",
11
11
  "angular-oauth2-oidc": "^15.0.1",
12
12
  "just-clone": "^6.1.1",
13
13
  "just-compare": "^2.3.0",