@abp/ng.core 7.0.2 → 7.0.3
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/esm2020/lib/abstracts/auth-response.model.mjs +2 -0
- package/esm2020/lib/abstracts/auth.service.mjs +6 -3
- package/esm2020/lib/abstracts/index.mjs +2 -1
- package/fesm2015/abp-ng.core.mjs +5 -2
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +5 -2
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/abstracts/auth-response.model.d.ts +10 -0
- package/lib/abstracts/auth.service.d.ts +4 -1
- package/lib/abstracts/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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
|
}
|
package/lib/abstracts/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abp/ng.core",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
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.0.
|
|
10
|
+
"@abp/utils": "~7.0.3",
|
|
11
11
|
"angular-oauth2-oidc": "^15.0.1",
|
|
12
12
|
"just-clone": "^6.1.1",
|
|
13
13
|
"just-compare": "^2.3.0",
|