@acorex/connectivity 20.2.0-next.0 → 20.2.0-next.2
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 +23 -13
- package/fesm2022/acorex-connectivity-api.mjs +694 -586
- package/fesm2022/acorex-connectivity-api.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-mock.mjs +5207 -4895
- package/fesm2022/acorex-connectivity-mock.mjs.map +1 -1
- package/fesm2022/acorex-connectivity-utils.mjs +64 -0
- package/fesm2022/acorex-connectivity-utils.mjs.map +1 -0
- package/mock/index.d.ts +93 -13
- package/package.json +9 -5
- package/utils/README.md +3 -0
- package/utils/index.d.ts +17 -0
package/api/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as i0 from '@angular/core';
|
|
|
5
5
|
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
|
-
import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPSessionContext,
|
|
8
|
+
import { AXPApplicationLoader, AXPApplication, AXPFeatureLoader, AXPFeature, AXPAuthStrategy, AXPBaseCredentials, AXPSignInResult, AXPSessionContext, AXPPermissionLoader, AXPPermission, AXPTenantLoader, AXPTenant } from '@acorex/platform/auth';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
10
|
|
|
11
11
|
declare class AXCApiEntityStorageService implements AXPEntityStorageService<string, any> {
|
|
@@ -120,33 +120,43 @@ declare class AXMOidcFeatureLoader implements AXPFeatureLoader {
|
|
|
120
120
|
getList(): Observable<AXPFeature[]>;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
declare class
|
|
123
|
+
declare class AXCAPIOidcStrategy extends AXPAuthStrategy {
|
|
124
124
|
private aXMAuthConfigs;
|
|
125
125
|
private oauthService;
|
|
126
126
|
private http;
|
|
127
|
+
private sessionService;
|
|
128
|
+
private router;
|
|
127
129
|
userInfo: any;
|
|
128
130
|
authConfig: AuthConfig;
|
|
129
131
|
openidConfigurationInfo: any;
|
|
130
132
|
configureOAuth(): Promise<void>;
|
|
131
|
-
signin(credentials:
|
|
133
|
+
signin(credentials: AXPBaseCredentials): Promise<AXPSignInResult | undefined>;
|
|
134
|
+
private handleOidcPasswordSignin;
|
|
135
|
+
updateToken(params: {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}): Promise<AXPSignInResult | void>;
|
|
132
138
|
signout(): Promise<void>;
|
|
133
|
-
refreshToken(context: AXPSessionContext): Promise<
|
|
134
|
-
refresh(tenantId?: string, applicationId?: string): Promise<boolean>;
|
|
135
|
-
expires_in_milisecound(expires_in_date: string): number;
|
|
136
|
-
private setServiceProps;
|
|
139
|
+
refreshToken(context: AXPSessionContext): Promise<AXPSignInResult>;
|
|
137
140
|
private loadAuthData;
|
|
138
141
|
loadUserInfo(): Promise<object>;
|
|
139
|
-
calculateExpireInDate(expireInMilisecound: number): string;
|
|
140
|
-
private logout;
|
|
141
142
|
private handleError;
|
|
142
143
|
get name(): string;
|
|
143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
144
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXCAPIOidcStrategy, never>;
|
|
145
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AXCAPIOidcStrategy>;
|
|
145
146
|
}
|
|
146
147
|
interface AXPUserPassCredentials extends AXPBaseCredentials {
|
|
147
148
|
username: string;
|
|
148
149
|
password: string;
|
|
149
150
|
}
|
|
151
|
+
interface AXPOAuthExternalCredentials extends AXPBaseCredentials {
|
|
152
|
+
strategy: string;
|
|
153
|
+
accessToken: string;
|
|
154
|
+
refreshToken: string;
|
|
155
|
+
idToken: string;
|
|
156
|
+
user: string;
|
|
157
|
+
expiresIn: string;
|
|
158
|
+
provider: string;
|
|
159
|
+
}
|
|
150
160
|
interface IAuthenticationDataModel {
|
|
151
161
|
access_token: string;
|
|
152
162
|
applicationid: string;
|
|
@@ -191,5 +201,5 @@ declare class AXMOidcTenantLoader implements AXPTenantLoader {
|
|
|
191
201
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMOidcTenantLoader>;
|
|
192
202
|
}
|
|
193
203
|
|
|
194
|
-
export { AXCApiEntityStorageService, AXCApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader,
|
|
195
|
-
export type { AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
|
|
204
|
+
export { AXCAPIOidcStrategy, AXCApiEntityStorageService, AXCApiModule, AXMConfigurationService, AXMOidcApplicationLoader, AXMOidcFeatureLoader, AXMOidcPermissionLoader, AXMOidcTenantLoader };
|
|
205
|
+
export type { AXPOAuthExternalCredentials, AXPUserPassCredentials, ApplicationConfiguration, Auth, Culture, IAuthenticationDataModel, Language, Localization, NameValue, Resource };
|