Skip to content

Commit

Permalink
Fix circular references #879 (#880)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Barth <chrisjbarth@hotmail.com>
  • Loading branch information
LaurensRietveld and cjbarth committed Mar 26, 2024
1 parent 430d94e commit a06ff72
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/multiSamlStrategy.ts
Expand Up @@ -8,7 +8,7 @@ import {
VerifyWithoutRequest,
VerifyWithRequest,
} from "./types";
import { SAML } from ".";
import { SAML } from "@node-saml/node-saml";

export class MultiSamlStrategy extends AbstractStrategy {
static readonly newSamlProviderOnConstruct = false;
Expand Down
2 changes: 1 addition & 1 deletion src/strategy.ts
@@ -1,7 +1,7 @@
import { Strategy as PassportStrategy } from "passport-strategy";
import { strict as assert } from "assert";
import * as url from "url";
import { Profile, SAML } from ".";
import { Profile, SAML } from "@node-saml/node-saml";
import { PassportSamlConfig } from "./types";
import {
AuthenticateOptions,
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
@@ -1,6 +1,6 @@
import type * as express from "express";
import * as passport from "passport";
import { Profile, SamlConfig } from ".";
import { Profile, SamlConfig } from "@node-saml/node-saml";

export interface AuthenticateOptions extends passport.AuthenticateOptions {
samlFallback?: "login-request" | "logout-request";
Expand Down
3 changes: 2 additions & 1 deletion test/multiSamlStrategy.spec.ts
Expand Up @@ -3,7 +3,8 @@ import * as express from "express";
import { Strategy } from "passport-strategy";
import * as sinon from "sinon";
import { expect } from "chai";
import { MultiSamlStrategy, SAML, AbstractStrategy } from "../src";
import { MultiSamlStrategy, AbstractStrategy } from "../src";
import { SAML } from "@node-saml/node-saml";
import {
MultiStrategyConfig,
RequestWithUser,
Expand Down
3 changes: 2 additions & 1 deletion test/strategy.spec.ts
Expand Up @@ -3,7 +3,8 @@
import type * as express from "express";
import { expect } from "chai";
import * as sinon from "sinon";
import { Profile, SAML, Strategy as SamlStrategy } from "../src";
import { Strategy as SamlStrategy } from "../src";
import { Profile, SAML } from "@node-saml/node-saml";
import {
RequestWithUser,
VerifiedCallback,
Expand Down

0 comments on commit a06ff72

Please sign in to comment.