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

ApAp Stack: Login #53

Open
4 tasks
chadfurman opened this issue Mar 31, 2019 · 0 comments
Open
4 tasks

ApAp Stack: Login #53

chadfurman opened this issue Mar 31, 2019 · 0 comments

Comments

@chadfurman
Copy link

chadfurman commented Mar 31, 2019

Using Passport.js and Redis:

  • authenticate a user's credentials against the local database
  • store a JWT in a redis whitelist with an expiration time on the entry

Pick token storage method:

  • Use a Same-Site HTTP-Only Secure __Host- prefixed cookies -- CSRF issues, needs nonce
  • use Authorization headers and localStorage -- XSS concerns but little to no CSRF issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant