Skip to content

Version 2.0 - JWT vs Sessions #115

Closed Locked Answered by lreading
lreading asked this question in General
Discussion options

You must be logged in to vote

I've explored this a bit further, and I'm pretty confident this is the way to go for Threat Dragon Web.
Some of the other benefits I've realized after exploring the implementation a bit more:

  • JWTs can be used as an IDP agnostic way of providing authentication for end users
  • Fewer dependencies: (passport, passport-github, connect-azuretables, csurf, express-session have all been removed on the vue-migration branch)
  • Remove the need for external storage, reducing the setup overhead for production deployments
  • Mitigates CSRF
  • Allows for future integrations with the server via REST API, maybe even eventually granting granular control over API integrations via JWT scopes.
  • Not all clients will sup…

Replies: 1 comment

Comment options

lreading
May 11, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by jgadsden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant