@telicent-oss/fe-auth-lib 0.0.1-TELFE-1371.6 → 0.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telicent-oss/fe-auth-lib",
3
- "version": "0.0.1-TELFE-1371.6",
3
+ "version": "0.0.1",
4
4
  "private": false,
5
5
  "license": "Apache-2.0",
6
6
  "description": "OAuth2 client library for Telicent Authentication Server",
@@ -50,5 +50,5 @@
50
50
  "engines": {
51
51
  "node": ">=20.19.0"
52
52
  },
53
- "gitHead": "e6e6c9bb0bc1511a8450c75b7a37315f10729ac8"
53
+ "gitHead": "c87206544b5b218fd0f964f9b544d44c78b929fd"
54
54
  }
@@ -37,7 +37,14 @@ export interface UserInfo {
37
37
  email: string;
38
38
  /** Preferred display name - NOT NULL in DB */
39
39
  preferred_name: string;
40
-
40
+ /** Is Active - NOT NULL in DB */
41
+ isActive: boolean;
42
+ /** Groups - NOT NULL in DB */
43
+ groups: string[];
44
+ /** Roles - NOT NULL in DB */
45
+ roles: string[];
46
+ /** Permissions - NOT NULL in DB */
47
+ permissions: string[];
41
48
  // Standard OIDC claims (always present)
42
49
  /** Token issuer URL */
43
50
  iss: string;
@@ -107,7 +114,6 @@ export interface RequestOptions {
107
114
  [key: string]: any;
108
115
  }
109
116
 
110
-
111
117
  /**
112
118
  * OAuth2 Authorization Code + PKCE client for Telicent auth-server integration.
113
119
  *
@@ -408,7 +414,10 @@ declare class AuthServerOAuth2Client {
408
414
  * );
409
415
  * ```
410
416
  */
411
- makeAuthenticatedRequest(url: string, options?: RequestOptions): Promise<Response>;
417
+ makeAuthenticatedRequest(
418
+ url: string,
419
+ options?: RequestOptions
420
+ ): Promise<Response>;
412
421
 
413
422
  /**
414
423
  * Logout user and destroy session
@@ -461,7 +470,11 @@ declare class AuthServerOAuth2Client {
461
470
  /**
462
471
  * Process response and handle authentication errors
463
472
  */
464
- afterRequest(response: Response, url: string, options?: RequestOptions): Response;
473
+ afterRequest(
474
+ response: Response,
475
+ url: string,
476
+ options?: RequestOptions
477
+ ): Response;
465
478
 
466
479
  /**
467
480
  * Helper method to clear all auth-related storage
@@ -471,4 +484,4 @@ declare class AuthServerOAuth2Client {
471
484
 
472
485
  // ES module exports
473
486
  export default AuthServerOAuth2Client;
474
- export { AuthServerOAuth2Client };
487
+ export { AuthServerOAuth2Client };
@@ -134,7 +134,7 @@ class AuthServerOAuth2Client {
134
134
 
135
135
  // Start OAuth2 login flow (redirects current window)
136
136
  async login(redirectUri = null) {
137
- const state = sessionStorage.getItem("oauth_state") ?? this.generateState();
137
+ const state = this.generateState();
138
138
  const nonce = this.generateNonce();
139
139
  const codeVerifier = this.generateCodeVerifier();
140
140
  const codeChallenge = await this.generateCodeChallenge(codeVerifier);