oip-common 0.1.3 → 0.1.5
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 +200 -194
- package/fesm2022/oip-common.mjs.map +1 -1
- package/index.d.ts +9 -4
- package/package.json +1 -1
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';
|
|
@@ -363,15 +363,20 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
|
|
|
363
363
|
/**
|
|
364
364
|
* Stores the latest login response from checkAuth().
|
|
365
365
|
*/
|
|
366
|
-
|
|
366
|
+
loginResponse: BehaviorSubject<LoginResponse>;
|
|
367
367
|
/**
|
|
368
368
|
* Stores the decoded access token payload.
|
|
369
369
|
*/
|
|
370
|
-
|
|
370
|
+
readonly payload: BehaviorSubject<any>;
|
|
371
371
|
/**
|
|
372
372
|
* Stores user-specific data from the login response.
|
|
373
373
|
*/
|
|
374
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;
|
|
375
380
|
/**
|
|
376
381
|
* Initializes service and subscribes to authentication events.
|
|
377
382
|
* When a 'NewAuthenticationResult' event is received, the `auth` method is called.
|
|
@@ -383,7 +388,7 @@ declare class KeycloakSecurityService extends OidcSecurityService implements OnD
|
|
|
383
388
|
* Returns the ID token for the sign-in.
|
|
384
389
|
* @returns A string with the id token.
|
|
385
390
|
*/
|
|
386
|
-
getAccessToken(): Observable<string>;
|
|
391
|
+
getAccessToken(configId?: string): Observable<string>;
|
|
387
392
|
/**
|
|
388
393
|
* Indicates whether the current user has the 'admin' role.
|
|
389
394
|
*
|