@telicent-oss/fe-auth-lib 0.0.1-TELFE-1371.0 → 0.0.1-TELFE-1371.34

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.0",
3
+ "version": "0.0.1-TELFE-1371.34",
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": "ebfd8c65d06a76399166e8b1c4bfad26ad885660"
53
+ "gitHead": "d348cf2c06474fcf8521a60e4679930ecdfdd4f7"
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({
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,6 +172,8 @@ class AuthServerOAuth2Client {
160
172
  code_challenge_method: "S256",
161
173
  });
162
174
 
175
+ console.log({ params });
176
+
163
177
  const authUrl = `${
164
178
  this.config.authServerUrl
165
179
  }/oauth2/authorize?${params.toString()}`;