Skip to content

Commit f7bc41e

Browse files
committed
chore: remove diagnostic auth logging
1 parent 66f921b commit f7bc41e

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

OSLCClient.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ export default class OSLCClient {
228228
return this._handleAuthDispatch(response, 0);
229229
},
230230
async error => {
231-
console.log(`[OSLCClient interceptor error] message=${error?.message}, code=${error?.code}, url=${error?.config?.url?.substring(0, 80)}`);
232231
return Promise.reject(error);
233232
}
234233
);
@@ -270,8 +269,6 @@ export default class OSLCClient {
270269
const status = response?.status;
271270
const location = headers['location'];
272271

273-
console.log(`[OSLCClient auth] status=${status}, authMsg=${authMsg}, isNode=${isNodeEnvironment}, hasSsoCallback=${!!this.ssoCallback}, attempted=[${attempted}], url=${originalRequest?.url?.substring(0, 80)}`);
274-
275272
// 1. JEE Forms auth challenge
276273
if (authMsg === 'authrequired' && !attempted.includes('jee-forms')) {
277274
attempted.push('jee-forms');
@@ -329,9 +326,7 @@ export default class OSLCClient {
329326
}
330327

331328
// 4. Basic auth fallback (plain 401 or authrequired that failed JEE)
332-
console.log(`[OSLCClient auth step 4] checking: status=${status}, authMsg=${authMsg}, hasBasic=${attempted.includes('basic')}, hasUserId=${!!this.userid}`);
333329
if ((status === 401 || authMsg === 'authrequired') && !attempted.includes('basic')) {
334-
console.log(`[OSLCClient auth step 4] Trying Basic auth for ${originalRequest?.url?.substring(0, 60)}`);
335330
attempted.push('basic');
336331
try {
337332
originalRequest.auth = {

0 commit comments

Comments
 (0)