diff --git a/src/backend/src/middleware/configurable_auth.js b/src/backend/src/middleware/configurable_auth.js index 49d2e9373..9880d60e1 100644 --- a/src/backend/src/middleware/configurable_auth.js +++ b/src/backend/src/middleware/configurable_auth.js @@ -128,7 +128,6 @@ const configurable_auth = options => async (req, res, next) => { const tokenPreview = typeof token === 'string' && token.length > 20 ? `${token.slice(0, 12)}...${token.slice(-8)}` : '(short)'; - console.log(`[configurable_auth] token used for Actor: [${req.url}] source=${tokenSource}, decoded.type=${tokenType}, preview=${tokenPreview}`); } let actor; diff --git a/src/backend/src/routers/auth/oidc.js b/src/backend/src/routers/auth/oidc.js index bf74ad7d9..c18517205 100644 --- a/src/backend/src/routers/auth/oidc.js +++ b/src/backend/src/routers/auth/oidc.js @@ -28,7 +28,6 @@ const REVALIDATION_EXPIRY_SEC = 300; // 5 minutes /** If Accept includes text/html, set session cookie and redirect to app; otherwise send JSON. */ const finishOidcSuccess_ = async (req, res, user, stateDecoded) => { - console.log('okay finishOidSuccess_ is happening'); const svc_auth = req.services.get('auth'); const { session, token: session_token } = await svc_auth.create_session_token(user, { req }); res.cookie(config.cookie_name, session_token, { @@ -36,12 +35,8 @@ const finishOidcSuccess_ = async (req, res, user, stateDecoded) => { secure: true, httpOnly: true, }); - console.log('what are these values?', { - stateDecoded, - }); let target = stateDecoded.redirect_uri || config.origin || '/'; const origin = config.origin || ''; - console.log('okay what\'s target though?', { target, origin }); if ( target && origin && !target.startsWith(origin) ) { target = origin; } @@ -169,11 +164,9 @@ router.get('/auth/oidc/callback/signup', async (req, res) => { } const outcome = await svc_oidc.createUserFromOIDC(provider, userinfo); if ( outcome.failed ) { - console.log('it looks like the outcome failed...'); return res.status(400).send(outcome.userMessage); } const user = await get_user({ id: outcome.infoObject.user_id }); - console.log('got user????', user); return await finishOidcSuccess_(req, res, user, stateDecoded); }); diff --git a/src/backend/src/routers/logout.js b/src/backend/src/routers/logout.js index da3ca586a..84cbe275b 100644 --- a/src/backend/src/routers/logout.js +++ b/src/backend/src/routers/logout.js @@ -51,9 +51,7 @@ router.post('/logout', auth, express.json(), async (req, res, next) => { //--------------------------------------------------------- // DANGER ZONE: delete temp user and all its data //--------------------------------------------------------- - console.log('wait... what are these?', req.user.password, req.user.email); if ( req.user.password === null && req.user.email === null ) { - console.log('ACTUALLY DELETING A USER'); const { deleteUser } = require('../helpers'); deleteUser(req.user.id); }