Skip to content

Commit 54809d1

Browse files
authored
Merge pull request #531 from node-saml/multisaml-strategy-readme
Update readme on using multiSamlStrategy
2 parents ef175f3 + 6182dde commit 54809d1

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The examples utilize the [Feide OpenIdp identity provider](https://openidp.feide
2323
The SAML identity provider will redirect you to the URL provided by the `path` configuration.
2424

2525
```javascript
26-
var SamlStrategy = require('passport-saml').Strategy;
26+
const SamlStrategy = require('passport-saml').Strategy;
2727
[...]
2828

2929
passport.use(new SamlStrategy(
@@ -48,7 +48,7 @@ passport.use(new SamlStrategy(
4848
You can pass a `getSamlOptions` parameter to `MultiSamlStrategy` which will be called before the SAML flows. Passport-SAML will pass in the request object so you can decide which configuation is appropriate.
4949

5050
```javascript
51-
var MultiSamlStrategy = require('passport-saml/multiSamlStrategy');
51+
const { MultiSamlStrategy } = require('passport-saml');
5252
[...]
5353

5454
passport.use(new MultiSamlStrategy(

multiSamlStrategy.d.ts

-2
This file was deleted.

multiSamlStrategy.js

-2
This file was deleted.

test/multiSamlStrategy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var sinon = require("sinon");
44
var should = require("should");
55
var SamlStrategy = require("../lib/passport-saml/index.js").Strategy;
6-
var MultiSamlStrategy = require("../multiSamlStrategy");
6+
var MultiSamlStrategy = require("../lib/passport-saml/multiSamlStrategy");
77

88
function verify() {}
99

0 commit comments

Comments
 (0)