@sasjs/adapter 3.10.16 → 3.10.17
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/SASjs.d.ts +1 -5
- package/auth/AuthManager.d.ts +6 -7
- package/index.js +2 -2
- package/node/SASjs.d.ts +1 -5
- package/node/auth/AuthManager.d.ts +6 -7
- package/node/index.js +2 -2
- package/node/types/Login.d.ts +7 -0
- package/node/utils/sas9/extractUserLongNameSas9.d.ts +6 -0
- package/package.json +1 -1
- package/src/auth/AuthManager.ts +61 -49
- package/src/types/Login.ts +7 -0
- package/src/utils/sas9/extractUserLongNameSas9.ts +31 -0
- package/types/Login.d.ts +7 -0
- package/utils/sas9/extractUserLongNameSas9.d.ts +6 -0
- package/utils/spec/extractUserLongNameSas9.spec.d.ts +1 -0
package/node/SASjs.d.ts
CHANGED
|
@@ -219,11 +219,7 @@ export default class SASjs {
|
|
|
219
219
|
* Checks whether a session is active, or login is required.
|
|
220
220
|
* @returns - a promise which resolves with an object containing two values - a boolean `isLoggedIn`, and a string `userName`.
|
|
221
221
|
*/
|
|
222
|
-
checkSession(): Promise<
|
|
223
|
-
isLoggedIn: boolean;
|
|
224
|
-
userName: string;
|
|
225
|
-
loginForm?: any;
|
|
226
|
-
}>;
|
|
222
|
+
checkSession(): Promise<import("./types/Login").LoginResultInternal>;
|
|
227
223
|
/**
|
|
228
224
|
* Logs into the SAS server with the supplied credentials.
|
|
229
225
|
* @param username - a string representing the username.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ServerType } from '@sasjs/utils/types';
|
|
2
2
|
import { RequestClient } from '../request/RequestClient';
|
|
3
|
-
import { LoginOptions, LoginResult } from '../types/Login';
|
|
3
|
+
import { LoginOptions, LoginResult, LoginResultInternal } from '../types/Login';
|
|
4
4
|
export declare class AuthManager {
|
|
5
5
|
private serverUrl;
|
|
6
6
|
private serverType;
|
|
7
7
|
private requestClient;
|
|
8
8
|
private loginCallback;
|
|
9
9
|
userName: string;
|
|
10
|
+
userLongName: string;
|
|
10
11
|
private loginUrl;
|
|
11
12
|
private logoutUrl;
|
|
12
13
|
private redirectedLoginUrl;
|
|
@@ -29,17 +30,15 @@ export declare class AuthManager {
|
|
|
29
30
|
* Checks whether a session is active, or login is required.
|
|
30
31
|
* @returns - a promise which resolves with an object containing three values
|
|
31
32
|
* - a boolean `isLoggedIn`
|
|
32
|
-
* - a string `userName
|
|
33
|
+
* - a string `userName`,
|
|
34
|
+
* - a string `userFullName` and
|
|
33
35
|
* - a form `loginForm` if not loggedin.
|
|
34
36
|
*/
|
|
35
|
-
checkSession(): Promise<
|
|
36
|
-
isLoggedIn: boolean;
|
|
37
|
-
userName: string;
|
|
38
|
-
loginForm?: any;
|
|
39
|
-
}>;
|
|
37
|
+
checkSession(): Promise<LoginResultInternal>;
|
|
40
38
|
private getNewLoginForm;
|
|
41
39
|
private fetchUserName;
|
|
42
40
|
private extractUserName;
|
|
41
|
+
private extractUserLongName;
|
|
43
42
|
private getLoginForm;
|
|
44
43
|
private setLoginUrl;
|
|
45
44
|
/**
|