Skip to content

Commit d8ad7d8

Browse files
committed
Fix CI
1 parent 0120379 commit d8ad7d8

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

packages/issuer-saml/src/issuer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
nameIdFormatToUrn,
1919
extractSamlMessage,
2020
buildPostForm,
21+
type HttpMethodType,
2122
type Logger,
2223
type SAMLSPMetaDataOptions,
2324
type SamlAttribute,
@@ -351,7 +352,7 @@ export class SAMLIssuer {
351352
*/
352353
async initiateLogout(
353354
sessionId: string,
354-
method: HttpMethod = HttpMethod.REDIRECT,
355+
method: HttpMethodType = HttpMethod.REDIRECT,
355356
): Promise<SAMLResponse | null> {
356357
const samlSession = await this.config.getSAMLSession?.(sessionId);
357358
if (!samlSession?._lassoSessionDump) {

packages/lib-saml/src/index.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,19 @@ export {
4646
AuthnContext,
4747
} from "./lasso-loader";
4848

49-
// Re-export lasso types
49+
// Re-export lasso types with full names
5050
export type {
5151
LassoServer,
5252
LassoLogin,
5353
LassoLogout,
5454
LassoIdentity,
5555
LassoSession,
56+
HttpMethodType,
57+
SignatureMethodType,
5658
} from "./lasso-loader";
59+
60+
// Backward-compatible type aliases (without Lasso prefix)
61+
export type { LassoLogin as Login } from "./lasso-loader";
62+
export type { LassoLogout as Logout } from "./lasso-loader";
63+
export type { LassoIdentity as Identity } from "./lasso-loader";
64+
export type { LassoSession as Session } from "./lasso-loader";

packages/lib-saml/src/lasso-loader.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ export function tryLoadLassoSync(): boolean {
109109
if (loadError) return false;
110110

111111
try {
112-
// eslint-disable-next-line @typescript-eslint/no-require-imports
113112
lassoModule = require("lasso.js");
114113
return true;
115114
} catch (err) {

packages/lib-saml/src/server-manager.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
import {
99
loadLasso,
10-
getLasso,
11-
isLassoLoaded,
1210
type LassoServer,
1311
type ProviderInfo,
1412
} from "./lasso-loader";

0 commit comments

Comments
 (0)