clean(oidc): remove temporary debugging logs

These logs were temporary. I have a pre-merge TODO list item that says
to remove these. They were caught in review so I'm removing them early.
This commit is contained in:
KernelDeimos
2026-02-19 16:21:42 -05:00
parent d0c2e9b7fc
commit a2b9193287
3 changed files with 0 additions and 10 deletions
@@ -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;
-7
View File
@@ -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);
});
-2
View File
@@ -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);
}