@telicent-oss/fe-auth-lib 0.0.1-TELFE-1371.33 → 0.0.1-TELFE-1371.35

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.33",
3
+ "version": "0.0.1-TELFE-1371.35",
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": "4052570e31c1a4d94cbae52f9e6f4b7a9d32a060"
53
+ "gitHead": "ae8e3c656b64e818cf5acb3e1c2ec1f840fd8271"
54
54
  }
@@ -147,6 +147,18 @@ class AuthServerOAuth2Client {
147
147
  sessionStorage.setItem("oauth_code_verifier", codeVerifier);
148
148
  sessionStorage.setItem("oauth_redirect_uri", finalRedirectUri);
149
149
 
150
+ console.log("params --", {
151
+ response_type: "code",
152
+ client_id: this.config.clientId,
153
+ redirect_uri: finalRedirectUri,
154
+ return_to: window.location.href,
155
+ scope: this.config.scope,
156
+ state: state,
157
+ nonce: nonce,
158
+ code_challenge: codeChallenge,
159
+ code_challenge_method: "S256",
160
+ });
161
+
150
162
  // Build authorization URL
151
163
  const params = new URLSearchParams({
152
164
  response_type: "code",
@@ -160,8 +172,6 @@ class AuthServerOAuth2Client {
160
172
  code_challenge_method: "S256",
161
173
  });
162
174
 
163
- console.log({ params });
164
-
165
175
  const authUrl = `${
166
176
  this.config.authServerUrl
167
177
  }/oauth2/authorize?${params.toString()}`;