diff --git a/packages/cli/src/sso/saml/routes/saml.controller.ee.ts b/packages/cli/src/sso/saml/routes/saml.controller.ee.ts index 5ee636c8c50fa..86e7b75cfa8c4 100644 --- a/packages/cli/src/sso/saml/routes/saml.controller.ee.ts +++ b/packages/cli/src/sso/saml/routes/saml.controller.ee.ts @@ -132,11 +132,11 @@ export class SamlController { } } throw new AuthError('SAML Authentication failed'); - } catch (err) { + } catch (error) { if (isConnectionTestRequest(req)) { - return res.send(getSamlConnectionTestFailedView(err.message)); + return res.send(getSamlConnectionTestFailedView((error as Error).message)); } - throw new AuthError('SAML Authentication failed: ' + err.message); + throw new AuthError('SAML Authentication failed: ' + (error as Error).message); } } diff --git a/packages/cli/src/sso/saml/samlHelpers.ts b/packages/cli/src/sso/saml/samlHelpers.ts index 4ff9970b29eed..0672965deb8b0 100644 --- a/packages/cli/src/sso/saml/samlHelpers.ts +++ b/packages/cli/src/sso/saml/samlHelpers.ts @@ -19,7 +19,7 @@ import { setCurrentAuthenticationMethod, } from '../ssoHelpers'; import { getServiceProviderConfigTestReturnUrl } from './serviceProvider.ee'; -import { SamlConfiguration } from './types/requests'; +import type { SamlConfiguration } from './types/requests'; /** * Check whether the SAML feature is licensed and enabled in the instance */ diff --git a/packages/cli/src/sso/saml/views/samlConnectionTestFailed.ts b/packages/cli/src/sso/saml/views/samlConnectionTestFailed.ts index fb71290341551..8d9a3578f0635 100644 --- a/packages/cli/src/sso/saml/views/samlConnectionTestFailed.ts +++ b/packages/cli/src/sso/saml/views/samlConnectionTestFailed.ts @@ -1,4 +1,4 @@ -import { SamlUserAttributes } from '../types/samlUserAttributes'; +import type { SamlUserAttributes } from '../types/samlUserAttributes'; export function getSamlConnectionTestFailedView( message: string, diff --git a/packages/cli/src/sso/saml/views/samlConnectionTestSuccess.ts b/packages/cli/src/sso/saml/views/samlConnectionTestSuccess.ts index 95a88f27adc42..59e6aed263a0c 100644 --- a/packages/cli/src/sso/saml/views/samlConnectionTestSuccess.ts +++ b/packages/cli/src/sso/saml/views/samlConnectionTestSuccess.ts @@ -1,4 +1,4 @@ -import { SamlUserAttributes } from '../types/samlUserAttributes'; +import type { SamlUserAttributes } from '../types/samlUserAttributes'; export function getSamlConnectionTestSuccessView(attributes: SamlUserAttributes): string { return `