I think writing your own variation of this at one point is a sort of rite of passage for web developers. I thought I was so clever with my custom PHP framework and sessionless backend. That said, it's done because it works well and makes sense. I'm glad to see we're finally settling on a recommended way of doing this. I've recently incorporated JWTs into my own application. One of the questions I'd like to ask other…
JSON Web Tokens
21–30 of 76 posts
Re: JSON Web Tokens
#22How does this not lead to a situation where you are trusting the client for authentication/authorization information?
Of course, you could use a holder of token scheme to authenticate in the case of server to server communication. However, in this case you're making an assumption that both servers can prevent access to the shared secret.
Re: JSON Web Tokens
#23How does this not lead to a situation where you are trusting the client for authentication/authorization information?
It looks to me like the data is cryptographically signed
However, the data in the main request is not encrypted, unless you're doing so via another means.
Re: JSON Web Tokens
#24For an angular js implementation with server examples: https://github.com/sahat/satellizer It's still a very new project, but looks promising.
Re: JSON Web Tokens
#25Re: JSON Web Tokens
#26Just a heads-up: the font-weight of your lead paragraph makes it too light on Chrome+Windows, some of the diagonals pretty much disappear.
Re: JSON Web Tokens
#27How do you invalidate tokens?
Re: JSON Web Tokens
#28For an angular js implementation with server examples: https://github.com/sahat/satellizer It's still a very new project, but looks promising.
Alternatively + [IMHO] more robust security-wise (although both great projects): https://github.com/lynndylanhurley/ng-token-auth
The only qualm I would have is that there's only a Ruby server side example, with Node as the test suite. I would say expanding that to include more example languages would be beneficial.
Re: JSON Web Tokens
#29Looks definitely easier than SAML.
Re: JSON Web Tokens
#30JWTs are used to great effect in Google's Wallet Digital Goods apis to allow you to control which payments are allowed and authenticate postbacks ( https://developers.google.com/wallet/digital/docs/tutorial ). It's a shame that service seems to be more or less dead...