oip-common 0.1.2 → 0.1.4

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/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,18 +371,24 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
370
371
  /**
371
372
  * Stores user-specific data from the login response.
372
373
  */
373
- userData: any;
374
+ private readonly currentUser;
375
+ /**
376
+ * Emits access token updates from initial auth check, manual refresh,
377
+ * and library authentication events.
378
+ */
379
+ private accessToken;
374
380
  /**
375
381
  * Initializes service and subscribes to authentication events.
376
382
  * When a 'NewAuthenticationResult' event is received, the `auth` method is called.
377
383
  */
378
384
  constructor();
379
385
  getCurrentUser(): any;
386
+ getCurrentUser$(): Observable<any>;
380
387
  /**
381
388
  * Returns the ID token for the sign-in.
382
389
  * @returns A string with the id token.
383
390
  */
384
- getAccessToken(): Observable<string>;
391
+ getAccessToken(configId?: string): Observable<string>;
385
392
  /**
386
393
  * Indicates whether the current user has the 'admin' role.
387
394
  *
@@ -421,6 +428,7 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
421
428
  declare class UserService {
422
429
  private readonly securityService;
423
430
  private readonly baseDataService;
431
+ private requestedPhotoEmail;
424
432
  constructor();
425
433
  /**
426
434
  * Stores the user's photo as a data URL or binary blob, depending on how it's processed.
@@ -873,7 +881,7 @@ declare class MenuComponent implements OnInit {
873
881
  contextMenu: ContextMenu;
874
882
  ngOnInit(): void;
875
883
  private newClick;
876
- onContextMenu($event: MouseEvent): void;
884
+ protected onContextMenu($event: MouseEvent): void;
877
885
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
878
886
  static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, {}, {}, never, never, true, never>;
879
887
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [