@alfresco/adf-core 9.1.0-16417501443 → 9.1.0-16418062135
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/fesm2022/adf-core.mjs +45 -34
- package/fesm2022/adf-core.mjs.map +1 -1
- package/lib/auth/basic-auth/basic-alfresco-auth.service.d.ts +13 -0
- package/lib/auth/interfaces/authentication-service.interface.d.ts +9 -4
- package/lib/auth/oidc/oidc-authentication.service.d.ts +15 -5
- package/lib/auth/services/authentication.service.d.ts +12 -2
- package/lib/auth/services/base-authentication.service.d.ts +5 -1
- package/package.json +3 -3
|
@@ -79,8 +79,21 @@ export declare class BasicAlfrescoAuthService extends BaseAuthenticationService
|
|
|
79
79
|
setRedirect(url?: RedirectionModel): void;
|
|
80
80
|
private hasValidRedirection;
|
|
81
81
|
private hasSelectedProviderAll;
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated use `getUsername()` instead
|
|
84
|
+
* @returns the username of the authenticated user
|
|
85
|
+
*/
|
|
82
86
|
getBpmUsername(): string;
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated use `getUsername()` instead
|
|
89
|
+
* @returns the username of the authenticated user
|
|
90
|
+
*/
|
|
83
91
|
getEcmUsername(): string;
|
|
92
|
+
/**
|
|
93
|
+
* Gets the username of the authenticated user.
|
|
94
|
+
*
|
|
95
|
+
* @returns the username of the authenticated user
|
|
96
|
+
*/
|
|
84
97
|
getUsername(): string;
|
|
85
98
|
/**
|
|
86
99
|
* Does kerberos enabled?
|
|
@@ -29,14 +29,19 @@ export interface AuthenticationServiceInterface {
|
|
|
29
29
|
isLoggedIn(): boolean;
|
|
30
30
|
isOauth(): boolean;
|
|
31
31
|
logout(): any;
|
|
32
|
-
isEcmLoggedIn(): boolean;
|
|
33
|
-
isBpmLoggedIn(): boolean;
|
|
34
32
|
isECMProvider(): boolean;
|
|
35
33
|
isBPMProvider(): boolean;
|
|
36
34
|
isALLProvider(): boolean;
|
|
37
|
-
|
|
38
|
-
getBpmUsername(): string;
|
|
35
|
+
getUsername(): string;
|
|
39
36
|
getAuthHeaders(requestUrl: string, header: HttpHeaders): HttpHeaders;
|
|
40
37
|
addTokenToHeader(requestUrl: string, headersArg?: HttpHeaders): Observable<HttpHeaders>;
|
|
41
38
|
reset(): void;
|
|
39
|
+
/** @deprecated use `isLoggedIn` instead, use `isECMProvider` if you need to know the auth type */
|
|
40
|
+
isEcmLoggedIn(): boolean;
|
|
41
|
+
/** @deprecated use `isLoggedIn` instead, use `isBPMProvider` if you need to know the auth type */
|
|
42
|
+
isBpmLoggedIn(): boolean;
|
|
43
|
+
/** @deprecated use `getUsername` instead */
|
|
44
|
+
getEcmUsername(): string;
|
|
45
|
+
/** @deprecated use `getUsername` instead */
|
|
46
|
+
getBpmUsername(): string;
|
|
42
47
|
}
|
|
@@ -23,13 +23,19 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
|
|
|
23
23
|
* and the discovery document is loaded, otherwise it emits `false`.
|
|
24
24
|
*/
|
|
25
25
|
shouldPerformSsoLogin$: Observable<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use `isLoggedIn` instead
|
|
28
|
+
* @returns true if the ECM provider is logged in
|
|
29
|
+
*/
|
|
26
30
|
isEcmLoggedIn(): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated use `isLoggedIn` instead
|
|
33
|
+
* @returns true if the BPM provider is logged in
|
|
34
|
+
*/
|
|
27
35
|
isBpmLoggedIn(): boolean;
|
|
28
36
|
isLoggedIn(): boolean;
|
|
29
37
|
hasValidAccessToken(): boolean;
|
|
30
38
|
hasValidIdToken(): boolean;
|
|
31
|
-
isImplicitFlow(): boolean;
|
|
32
|
-
isAuthCodeFlow(): boolean;
|
|
33
39
|
login(username: string, password: string): Observable<{
|
|
34
40
|
type: string;
|
|
35
41
|
ticket: any;
|
|
@@ -38,19 +44,23 @@ export declare class OidcAuthenticationService extends BaseAuthenticationService
|
|
|
38
44
|
type: string;
|
|
39
45
|
ticket: any;
|
|
40
46
|
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Gets the username of the authenticated user.
|
|
49
|
+
*
|
|
50
|
+
* @returns the logged username
|
|
51
|
+
*/
|
|
41
52
|
getUsername(): string;
|
|
42
53
|
/**
|
|
43
|
-
* @deprecated
|
|
54
|
+
* @deprecated use `getUsername` instead
|
|
44
55
|
* @returns the logged username
|
|
45
56
|
*/
|
|
46
57
|
getEcmUsername(): string;
|
|
47
58
|
/**
|
|
48
|
-
* @deprecated
|
|
59
|
+
* @deprecated use `getUsername` instead
|
|
49
60
|
* @returns the logged username
|
|
50
61
|
*/
|
|
51
62
|
getBpmUsername(): string;
|
|
52
63
|
ssoLogin(redirectUrl?: string): void;
|
|
53
|
-
ssoCodeFlowLogin(): void;
|
|
54
64
|
isRememberMeSet(): boolean;
|
|
55
65
|
logout(): Observable<never>;
|
|
56
66
|
getToken(): string;
|
|
@@ -42,7 +42,15 @@ export declare class AuthenticationService implements AuthenticationServiceInter
|
|
|
42
42
|
getToken(): string;
|
|
43
43
|
isLoggedIn(): boolean;
|
|
44
44
|
logout(): Observable<any>;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated use `isLoggedIn` instead
|
|
47
|
+
* @returns true if the ECM provider is logged in
|
|
48
|
+
*/
|
|
45
49
|
isEcmLoggedIn(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use `isLoggedIn` instead
|
|
52
|
+
* @returns true if the BPM provider is logged in
|
|
53
|
+
*/
|
|
46
54
|
isBpmLoggedIn(): boolean;
|
|
47
55
|
reset(): void;
|
|
48
56
|
login(username: string, password: string, rememberMe?: boolean): Observable<{
|
|
@@ -50,16 +58,18 @@ export declare class AuthenticationService implements AuthenticationServiceInter
|
|
|
50
58
|
ticket: any;
|
|
51
59
|
}>;
|
|
52
60
|
/**
|
|
61
|
+
* Gets the username of the authenticated user.
|
|
62
|
+
*
|
|
53
63
|
* @returns the username of the authenticated user
|
|
54
64
|
*/
|
|
55
65
|
getUsername(): string;
|
|
56
66
|
/**
|
|
57
|
-
* @deprecated
|
|
67
|
+
* @deprecated use `getUsername` instead
|
|
58
68
|
* @returns the logged username
|
|
59
69
|
*/
|
|
60
70
|
getEcmUsername(): string;
|
|
61
71
|
/**
|
|
62
|
-
* @deprecated
|
|
72
|
+
* @deprecated use `getUsername` instead
|
|
63
73
|
* @returns the logged username
|
|
64
74
|
*/
|
|
65
75
|
getBpmUsername(): string;
|
|
@@ -37,10 +37,15 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
|
|
|
37
37
|
abstract getToken(): string;
|
|
38
38
|
abstract isLoggedIn(): boolean;
|
|
39
39
|
abstract logout(): any;
|
|
40
|
+
/** @deprecated use `isLoggedIn` instead */
|
|
40
41
|
abstract isEcmLoggedIn(): boolean;
|
|
42
|
+
/** @deprecated use `isLoggedIn` instead */
|
|
41
43
|
abstract isBpmLoggedIn(): boolean;
|
|
42
44
|
abstract reset(): void;
|
|
45
|
+
abstract getUsername(): string;
|
|
46
|
+
/** @deprecated use `getUsername` instead */
|
|
43
47
|
abstract getEcmUsername(): string;
|
|
48
|
+
/** @deprecated use `getUsername` instead */
|
|
44
49
|
abstract getBpmUsername(): string;
|
|
45
50
|
/**
|
|
46
51
|
* Adds the auth token to an HTTP header using the 'bearer' scheme.
|
|
@@ -63,7 +68,6 @@ export declare abstract class BaseAuthenticationService implements Authenticatio
|
|
|
63
68
|
* @returns True if both are supported, false otherwise
|
|
64
69
|
*/
|
|
65
70
|
isALLProvider(): boolean;
|
|
66
|
-
isOauthConfiguration(): boolean;
|
|
67
71
|
/**
|
|
68
72
|
* Prints an error message in the console browser
|
|
69
73
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/adf-core",
|
|
3
3
|
"description": "Alfresco ADF core",
|
|
4
|
-
"version": "9.1.0-
|
|
4
|
+
"version": "9.1.0-16418062135",
|
|
5
5
|
"author": "Hyland Software, Inc. and its affiliates",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@angular/router": ">=16.0.0",
|
|
64
64
|
"@mat-datetimepicker/core": ">=12.0.1",
|
|
65
65
|
"@ngx-translate/core": ">=16.0.0",
|
|
66
|
-
"@alfresco/js-api": ">=10.1.0-
|
|
67
|
-
"@alfresco/adf-extensions": ">=9.1.0-
|
|
66
|
+
"@alfresco/js-api": ">=10.1.0-16418062135",
|
|
67
|
+
"@alfresco/adf-extensions": ">=9.1.0-16418062135",
|
|
68
68
|
"minimatch": ">=10.0.0",
|
|
69
69
|
"pdfjs-dist": ">=3.3.122",
|
|
70
70
|
"ts-morph": ">=20.0.0"
|