From a1848b0982e057887048dffa1b34cb8b974bb730 Mon Sep 17 00:00:00 2001 From: Derek Ho Date: Thu, 8 Feb 2024 17:54:31 -0500 Subject: [PATCH] lint Signed-off-by: Derek Ho --- server/auth/types/authentication_type.ts | 2 -- server/auth/types/saml/routes.ts | 7 +------ 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/server/auth/types/authentication_type.ts b/server/auth/types/authentication_type.ts index eb15b3971..c0f93a085 100755 --- a/server/auth/types/authentication_type.ts +++ b/server/auth/types/authentication_type.ts @@ -143,8 +143,6 @@ export abstract class AuthenticationType implements IAuthenticationType { cookie = undefined; } - console.log(cookie) - if (!cookie || !(await this.isValidCookie(cookie, request))) { // clear cookie this.sessionStorageFactory.asScoped(request).clear(); diff --git a/server/auth/types/saml/routes.ts b/server/auth/types/saml/routes.ts index 64e2aa84f..6e628bdb4 100644 --- a/server/auth/types/saml/routes.ts +++ b/server/auth/types/saml/routes.ts @@ -84,7 +84,6 @@ export class SamlAuthRoutes { redirectHash: request.query.redirectHash === 'true', }, }; - console.log('saml login cookie' + JSON.stringify(cookie)) this.sessionStorageFactory.asScoped(request).set(cookie); return response.redirected({ headers: { @@ -114,7 +113,6 @@ export class SamlAuthRoutes { let redirectHash: boolean = false; try { const cookie = await this.sessionStorageFactory.asScoped(request).get(); - console.log('acs' + JSON.stringify(cookie)) if (cookie) { requestId = cookie.saml?.requestId || ''; nextUrl = @@ -144,20 +142,17 @@ export class SamlAuthRoutes { credentials.authorization ); - console.log('creds' + JSON.stringify(credentials), 'user' + JSON.stringify(user)) - let expiryTime = Date.now() + this.config.session.ttl; const [headerEncoded, payloadEncoded, signature] = credentials.authorization.split('.'); if (!payloadEncoded) { context.security_plugin.logger.error('JWT token payload not found'); } const tokenPayload = JSON.parse(Buffer.from(payloadEncoded, 'base64').toString()); - console.log(tokenPayload) if (tokenPayload.exp) { expiryTime = parseInt(tokenPayload.exp, 10) * 1000; } - console.log(expiryTime) + console.log(expiryTime); const cookie: SecuritySessionCookie = { username: user.username,