Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Redis for auth service session storage in production #2133

Merged
merged 1 commit into from
Apr 13, 2021

Conversation

humphd
Copy link
Contributor

@humphd humphd commented Apr 12, 2021

I was waiting for Redis to get added to Satellite before I could do this, and now that it's here, I'm switch our auth service to use Redis-backed session storage in production. Similar to what we do now in the back-end.

@humphd humphd added area: redis Redis Database related area: deployment Production or Staging deployment area: microservices area: satellite Issues related to the Satellite microservice project labels Apr 12, 2021
@humphd humphd self-assigned this Apr 12, 2021
const passport = require('passport');
const session = require('express-session');
const RedisStore = require('connect-redis')(session);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reading what express-session is, I assume we just pass in a new cookie with no options?

@humphd humphd merged commit 62eac01 into Seneca-CDOT:master Apr 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: deployment Production or Staging deployment area: microservices area: redis Redis Database related area: satellite Issues related to the Satellite microservice project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants