chore: 🔧 extra sso logging and redirect

This commit is contained in:
Anthony Potdevin 2020-12-16 15:08:56 +01:00
parent eede62b2f2
commit 92f2f13ea7
No known key found for this signature in database
GPG key ID: 4403F1DFBE779457
2 changed files with 5 additions and 0 deletions

View file

@ -51,6 +51,10 @@ export const authResolvers = {
}
}
if (nodeEnv === 'development') {
logger.warn('SSO authentication is disabled in development.');
}
const cookieFile = readCookie(cookiePath);
if (

View file

@ -38,6 +38,7 @@ export const ServerAccounts: React.FC = () => {
}
if (!data.getAuthToken) {
toast.warning('Unable to SSO. Check your logs.');
logoutUrl ? (window.location.href = logoutUrl) : push('/login');
}
}, [push, data, cookieParam]);