Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flipswitchingmonkey committed Apr 14, 2023
1 parent 049ce79 commit 1f74f8f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/cli/src/sso/saml/routes/saml.controller.ee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/sso/saml/samlHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SamlUserAttributes } from '../types/samlUserAttributes';
import type { SamlUserAttributes } from '../types/samlUserAttributes';

export function getSamlConnectionTestFailedView(
message: string,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SamlUserAttributes } from '../types/samlUserAttributes';
import type { SamlUserAttributes } from '../types/samlUserAttributes';

export function getSamlConnectionTestSuccessView(attributes: SamlUserAttributes): string {
return `
Expand Down

0 comments on commit 1f74f8f

Please sign in to comment.