Skip to content

Commit

Permalink
Merge pull request #531 from node-saml/multisaml-strategy-readme
Browse files Browse the repository at this point in the history
Update readme on using multiSamlStrategy
  • Loading branch information
gugu committed Feb 7, 2021
2 parents ef175f3 + 6182dde commit 54809d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The examples utilize the [Feide OpenIdp identity provider](https://openidp.feide
The SAML identity provider will redirect you to the URL provided by the `path` configuration.

```javascript
var SamlStrategy = require('passport-saml').Strategy;
const SamlStrategy = require('passport-saml').Strategy;
[...]

passport.use(new SamlStrategy(
Expand All @@ -48,7 +48,7 @@ passport.use(new SamlStrategy(
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.

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

passport.use(new MultiSamlStrategy(
Expand Down
2 changes: 0 additions & 2 deletions multiSamlStrategy.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions multiSamlStrategy.js

This file was deleted.

2 changes: 1 addition & 1 deletion test/multiSamlStrategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var sinon = require("sinon");
var should = require("should");
var SamlStrategy = require("../lib/passport-saml/index.js").Strategy;
var MultiSamlStrategy = require("../multiSamlStrategy");
var MultiSamlStrategy = require("../lib/passport-saml/multiSamlStrategy");

function verify() {}

Expand Down

0 comments on commit 54809d1

Please sign in to comment.