Skip to content

Commit

Permalink
Changing Cookie to be sameSite none (#3789)
Browse files Browse the repository at this point in the history
* Changing Cookie to be sameSite none for the post coming back from azure AD

* Update src/api/sso/src/index.js

Co-authored-by: David Humphrey <david.andrew.humphrey@gmail.com>

Co-authored-by: stefanaz2 <sfrunza@seneca.ca>
Co-authored-by: David Humphrey <david.andrew.humphrey@gmail.com>
  • Loading branch information
3 people committed Jan 24, 2023
1 parent faf98fa commit aac0a89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/api/sso/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const service = new Satellite({
secret: process.env.JWT_SECRET || `telescope-has-many-secrets-${Date.now()}!`,
resave: false,
saveUninitialized: false,
cookie: process.env.NODE_ENV === 'production' && { secure: true, sameSite: 'none' },
})
);
app.use(passport.initialize());
Expand Down

0 comments on commit aac0a89

Please sign in to comment.