From 57e7fb86beb4baa0f49a3e0e4cf8123017476645 Mon Sep 17 00:00:00 2001 From: AP Date: Fri, 22 May 2020 11:43:21 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20get=20sso=20without=20cer?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/schemas/query/server/getServerAccounts.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/schemas/query/server/getServerAccounts.ts b/api/schemas/query/server/getServerAccounts.ts index e2cc0e9e..a75012b1 100644 --- a/api/schemas/query/server/getServerAccounts.ts +++ b/api/schemas/query/server/getServerAccounts.ts @@ -2,6 +2,7 @@ import { GraphQLList } from 'graphql'; import { ContextType } from 'api/types/apiTypes'; import { ServerAccountType } from 'api/schemas/types/QueryType'; import { SSO_ACCOUNT } from 'src/context/AccountContext'; +import { logger } from 'api/helpers/logger'; import { requestLimiter } from '../../../helpers/rateLimiter'; export const getServerAccounts = { @@ -12,7 +13,10 @@ export const getServerAccounts = { const { macaroon, cert, host } = sso; let ssoAccount = null; - if (macaroon && cert && host && ssoVerified) { + if (macaroon && host && ssoVerified) { + logger.debug( + `Macaroon${cert && ', certificate'} and host found for SSO account` + ); ssoAccount = { name: 'SSO Account', id: SSO_ACCOUNT,