mirror of
https://github.com/apotdevin/thunderhub.git
synced 2025-02-22 14:22:33 +01:00
fix: ๐ get sso without cert
This commit is contained in:
parent
020482255f
commit
57e7fb86be
1 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@ import { GraphQLList } from 'graphql';
|
||||||
import { ContextType } from 'api/types/apiTypes';
|
import { ContextType } from 'api/types/apiTypes';
|
||||||
import { ServerAccountType } from 'api/schemas/types/QueryType';
|
import { ServerAccountType } from 'api/schemas/types/QueryType';
|
||||||
import { SSO_ACCOUNT } from 'src/context/AccountContext';
|
import { SSO_ACCOUNT } from 'src/context/AccountContext';
|
||||||
|
import { logger } from 'api/helpers/logger';
|
||||||
import { requestLimiter } from '../../../helpers/rateLimiter';
|
import { requestLimiter } from '../../../helpers/rateLimiter';
|
||||||
|
|
||||||
export const getServerAccounts = {
|
export const getServerAccounts = {
|
||||||
|
@ -12,7 +13,10 @@ export const getServerAccounts = {
|
||||||
|
|
||||||
const { macaroon, cert, host } = sso;
|
const { macaroon, cert, host } = sso;
|
||||||
let ssoAccount = null;
|
let ssoAccount = null;
|
||||||
if (macaroon && cert && host && ssoVerified) {
|
if (macaroon && host && ssoVerified) {
|
||||||
|
logger.debug(
|
||||||
|
`Macaroon${cert && ', certificate'} and host found for SSO account`
|
||||||
|
);
|
||||||
ssoAccount = {
|
ssoAccount = {
|
||||||
name: 'SSO Account',
|
name: 'SSO Account',
|
||||||
id: SSO_ACCOUNT,
|
id: SSO_ACCOUNT,
|
||||||
|
|
Loadingโฆ
Add table
Reference in a new issue