18 karma · joined Jun 24, 2013 (13y ago) · 14 submissions
comment 1y ago · link · parent
One sticking point is that the tools, while community and small projects, are all behind a license. But, they are free for small teams making under something like $1M/year in revenue.
comment 10y ago · link · parent
You are correct that the lookup doesn't have to be via the database. You could implement a caching system where the cache is invalidated when the user logs out and requires reauthentication. This is the notion of the session. By definition they cannot be stateless.
Stateless authentication is inherently (slightly) less secure than sessions. I think of a blind librarian who gives out keys to the library. Whoever has a key has access. You can put limitations on the timeframe someone has access to the library, but that's it. If your key gets stolen, the blind librarian can't help you as there is no way for him to tell if it's really you.
comment 10y ago · link · parent
[1]https://developer.mozilla.org/en-US/docs/Web/API/GlobalFetch...
comment 10y ago · link · parent
Typically with sessions the client has a session key. The key gets sent to the server where it looks up the session (via. memory, cache, database, whatever). You can create a new session, validate an existing session, or end a session. All using that key. They only difference between JWT and cookies is JWTs aren't automatically sent with every request. You have to explicitly send them. I believe this is a good thing. It avoids some common attack vectors.
comment 12y ago · link · parent
comment 12y ago · link · parent
Larger LOB, or public facing apps require more thought and planning to ensure that they get the job done right.
comment 13y ago · link · parent
Coincidentally, this is how I feel about AngularJS. By using it, you're developing apps the way Google wants you (or it's own developers) to. It could be good, it could be bad. it depends on the app, but you still have to do it their way.
You don't want to be locked into Google's walled garden, but, by using Angular, you're already inside...
comment 13y ago · link · parent
Sometimes knowing when to shut the hell up is a far greater asset than being outspoken and opinionated. Especially about things related to your job...
comment 13y ago · link · parent