oip-common 0.1.2 → 0.1.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/fesm2022/oip-common.mjs +58 -30
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +5 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -343,6 +343,7 @@ declare abstract class SecurityService {
|
|
|
343
343
|
abstract getAccessToken(): Observable<string>;
|
|
344
344
|
abstract isTokenExpired(): Observable<boolean>;
|
|
345
345
|
abstract getCurrentUser(): any;
|
|
346
|
+
abstract getCurrentUser$(): Observable<any>;
|
|
346
347
|
abstract forceRefreshSession(): Observable<LoginResponse>;
|
|
347
348
|
abstract isAdmin(): boolean;
|
|
348
349
|
abstract authorize(configId?: string, authOptions?: AuthOptions): void;
|
|
@@ -370,13 +371,14 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
|
|
|
370
371
|
/**
|
|
371
372
|
* Stores user-specific data from the login response.
|
|
372
373
|
*/
|
|
373
|
-
|
|
374
|
+
private readonly currentUser;
|
|
374
375
|
/**
|
|
375
376
|
* Initializes service and subscribes to authentication events.
|
|
376
377
|
* When a 'NewAuthenticationResult' event is received, the `auth` method is called.
|
|
377
378
|
*/
|
|
378
379
|
constructor();
|
|
379
380
|
getCurrentUser(): any;
|
|
381
|
+
getCurrentUser$(): Observable<any>;
|
|
380
382
|
/**
|
|
381
383
|
* Returns the ID token for the sign-in.
|
|
382
384
|
* @returns A string with the id token.
|
|
@@ -421,6 +423,7 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
|
|
|
421
423
|
declare class UserService {
|
|
422
424
|
private readonly securityService;
|
|
423
425
|
private readonly baseDataService;
|
|
426
|
+
private requestedPhotoEmail;
|
|
424
427
|
constructor();
|
|
425
428
|
/**
|
|
426
429
|
* Stores the user's photo as a data URL or binary blob, depending on how it's processed.
|
|
@@ -873,7 +876,7 @@ declare class MenuComponent implements OnInit {
|
|
|
873
876
|
contextMenu: ContextMenu;
|
|
874
877
|
ngOnInit(): void;
|
|
875
878
|
private newClick;
|
|
876
|
-
onContextMenu($event: MouseEvent): void;
|
|
879
|
+
protected onContextMenu($event: MouseEvent): void;
|
|
877
880
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
|
|
878
881
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, {}, {}, never, never, true, never>;
|
|
879
882
|
}
|