@@ -7,7 +7,7 @@ import * as bodyParser from "body-parser";
77import * as SAMLStrategy from "passport-saml" ;
88import * as GoogleStrategy from "passport-google-oauth20" ;
99import * as LocalStrategy from "passport-local" ;
10- import * as wsfed from "wsfed" ;
10+ // import * as wsfed from "wsfed";
1111
1212import * as passport from "passport" ;
1313import { Config } from "./Config" ;
@@ -250,13 +250,13 @@ export class LoginProvider {
250250 strategy . name = key ;
251251 this . _logger . info ( options . callbackUrl ) ;
252252
253- app . get ( "/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml" ,
254- wsfed . metadata ( {
255- cert : Buffer . from ( Config . signing_crt , "base64" ) . toString ( "ascii" ) ,
256- issuer : issuer
257- } ) ) ;
253+ // app.get("/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml",
254+ // wsfed.metadata({
255+ // cert: Buffer.from(Config.signing_crt, "base64").toString("ascii"),
256+ // issuer: issuer
257+ // }));
258258 var CertPEM = Buffer . from ( Config . signing_crt , "base64" ) . toString ( "ascii" ) . replace ( / ( - - - - - ( B E G I N | E N D ) C E R T I F I C A T E - - - - - | \n ) / g, '' ) ;
259- app . get ( "/" + key + "2 /FederationMetadata/2007-06/FederationMetadata.xml" ,
259+ app . get ( "/" + key + "/FederationMetadata/2007-06/FederationMetadata.xml" ,
260260 ( req : express . Request , res : express . Response , next : express . NextFunction ) => {
261261 res . set ( "Content-Type" , "text/xml" ) ;
262262 res . send ( `
0 commit comments