Skip to content

Commit

Permalink
chore: switch from passport-saml to node-saml/passport-saml (#3799)
Browse files Browse the repository at this point in the history
  • Loading branch information
manekenpix authored Feb 1, 2023
1 parent 4e73c62 commit e5c690b
Show file tree
Hide file tree
Showing 3 changed files with 104 additions and 30 deletions.
126 changes: 100 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/api/sso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"version": "1.0.0",
"description": "An SSO Authentication and Authorization Service",
"scripts": {
"dev": "env-cmd -f env.local nodemon src/server.js",
"dev": "env-cmd -f .env nodemon src/server.js",
"start": "node src/server.js",
"eslint": "eslint --config .eslintrc.js \"./**/*.js\"",
"eslint-time": "TIMING=1 eslint --config .eslintrc.js \"./**/*.js\"",
Expand All @@ -21,6 +21,7 @@
},
"homepage": "https://github.com/Seneca-CDOT/telescope#readme",
"dependencies": {
"@node-saml/passport-saml": "4.0.2",
"@senecacdot/satellite": "^1.29.0",
"@slack/bolt": "3.12.2",
"@supabase/supabase-js": "1.29.4",
Expand All @@ -30,8 +31,7 @@
"jsonwebtoken": "9.0.0",
"minimatch": "3.0.5",
"normalize-url": "6.1.0",
"passport": "0.5.2",
"passport-saml": "3.2.4"
"passport": "0.5.2"
},
"engines": {
"node": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion src/api/sso/src/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* https://blog.humphd.org/not-so-simple-saml/
*/
const passport = require('passport');
const SamlStrategy = require('passport-saml').Strategy;
const SamlStrategy = require('@node-saml/passport-saml').Strategy;
const { logger, hash } = require('@senecacdot/satellite');

const supabase = require('./supabase');
Expand Down

0 comments on commit e5c690b

Please sign in to comment.