oip-common 0.1.4 → 0.1.6

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
@@ -4,7 +4,7 @@ import { MessageService, ToastMessageOptions, MenuItem, ConfirmationService, Fil
4
4
  import { ActivatedRoute, QueryParamsHandling, IsActiveMatchOptions, Params, Router, UrlTree } from '@angular/router';
5
5
  import { TranslateService, InterpolationParameters, Translation, TranslationObject } from '@ngx-translate/core';
6
6
  import * as rxjs from 'rxjs';
7
- import { Subscription, Subject, Observable } from 'rxjs';
7
+ import { Subscription, Subject, Observable, BehaviorSubject } from 'rxjs';
8
8
  import { LoginResponse, AuthOptions, OidcSecurityService, LogoutAuthOptions, AbstractSecurityStorage, StsConfigHttpLoader } from 'angular-auth-oidc-client';
9
9
  import { ContextMenu } from 'primeng/contextmenu';
10
10
  import { PrimeNG } from 'primeng/config';
@@ -347,6 +347,7 @@ declare abstract class SecurityService {
347
347
  abstract forceRefreshSession(): Observable<LoginResponse>;
348
348
  abstract isAdmin(): boolean;
349
349
  abstract authorize(configId?: string, authOptions?: AuthOptions): void;
350
+ abstract payload: BehaviorSubject<any>;
350
351
  }
351
352
  /**
352
353
  * SecurityService extends OidcSecurityService to manage authentication,
@@ -363,11 +364,11 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
363
364
  /**
364
365
  * Stores the latest login response from checkAuth().
365
366
  */
366
- private loginResponse;
367
+ loginResponse: BehaviorSubject<LoginResponse>;
367
368
  /**
368
369
  * Stores the decoded access token payload.
369
370
  */
370
- private payload;
371
+ readonly payload: BehaviorSubject<any>;
371
372
  /**
372
373
  * Stores user-specific data from the login response.
373
374
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oip-common",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "A template for cross-platform web applications based on sakai-ng and primeNG",
5
5
  "main": "index.js",
6
6
  "keywords": [