2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00
Commit Graph

606 Commits

Author SHA1 Message Date
Nikita Gusakov
34c64c73e1 Use native comparison instead of regexp 2015-05-18 03:24:42 +03:00
dbrugne
f5a84eb9bb Add an "additionnal" option (Function(decoded, onSuccess, onError)). When the token is parser and validated the callback is triggered and allow addition of extra logic (e.g. validate the user status against database).
Improve returned errors.
2015-05-07 11:49:00 +02:00
dbrugne
346b4d7aa1 Make .disconnect() call asynchronous to allow client to receive error message. 2015-05-06 19:11:16 +02:00
dbrugne
b053356c5e Send 'error' event with error details in case of not received or invalid token. 2015-05-06 17:56:12 +02:00
dbrugne
92663f95b7 .gitignore 2015-05-06 17:52:49 +02:00
Alberto Pose
78dcd15732 4.0.0 2015-04-22 11:32:17 -03:00
Alberto Pose
3c385b4301 Adding CHANGELOG.md 2015-04-22 11:32:06 -03:00
Alberto Pose
7e534706de Updated to jsonwebtoken@5.0.0 2015-04-22 11:30:01 -03:00
José F. Romaniello
b971c75fa1 3.0.0 2015-03-16 20:48:35 -03:00
José F. Romaniello
089bfe5aca update jsonwebtoken dependency 2015-03-16 20:48:14 -03:00
wonderdogone
ddbee9fc9d updated express version for example
updated the example to work with express version 4.10.6.
Removed connect middleware. Added serve-static and body-parser
middleware.
Updated package.json to reflect changes
2014-12-17 20:10:56 -08:00
David Damerell
9389672a9d Added optional authentication and the ability to call another function to further validate the token
* Optional authentication is useful when you wish to serve both secure and unsecured services via the same server socket
* The ability to specify an additional function to be called to further validate the token is useful when you wish to be able to expire tokens for some reason
2014-10-24 17:01:53 +01:00
José F. Romaniello
dbb4e95415 Merge pull request #21 from kennyki/patch-1
Added example of handling token expiration
2014-09-10 08:56:06 -03:00
José F. Romaniello
c7485e3804 2.3.5 2014-09-05 14:42:38 -03:00
José F. Romaniello
f357dd7595 update jsonwebtoken 2014-09-05 14:42:35 -03:00
Kenny Ki
b1e5530294 Added example of handling token expiration 2014-09-04 13:47:17 +08:00
José F. Romaniello
479d646374 2.3.4 2014-07-16 22:53:34 -03:00
José F. Romaniello
2490770d47 Merge pull request #18 from yads/master
test fixes
2014-07-16 22:51:52 -03:00
Vadim Kazakov
cae21230ee test fixes 2014-07-16 19:14:07 -06:00
José F. Romaniello
698cd2e8f4 2.3.3 2014-07-16 20:33:14 -03:00
José F. Romaniello
55d5e43e27 Merge branch 'yads-master' 2014-07-16 20:32:58 -03:00
José F. Romaniello
2897f90d7f merge 2014-07-16 20:32:42 -03:00
José F. Romaniello
c656887e13 2.3.2 2014-07-16 20:29:42 -03:00
José F. Romaniello
9d5abf9e66 update jsonwebtoken module to fix security issue 2014-07-16 20:29:39 -03:00
Vadim Kazakov
139843467b add data to UnauthorizedError so that more information can be returned to client 2014-07-16 14:12:18 -06:00
José F. Romaniello
870a274be9 update example 2014-06-14 19:01:34 -03:00
José F. Romaniello
e9b8ea4302 fix readme 2014-06-12 13:23:19 -03:00
José F. Romaniello
7ea32e52cc Merge pull request #9 from zudio/master
Update README.md
2014-06-09 10:54:23 -03:00
José F. Romaniello
f856e7791d 2.3.1 2014-06-09 10:53:35 -03:00
José F. Romaniello
fe39d2c849 Merge pull request #12 from otothea/master
Add fall-forward from req._query to req.query
2014-06-09 10:53:19 -03:00
José F. Romaniello
f072f91120 update readme and fix #11 2014-06-09 10:51:40 -03:00
Oscar
29b3882355 Make it look for both kinds of query
add a check on req.query along with req._query for different versions
2014-06-06 13:09:06 -05:00
Oscar
452cc19a87 req._query is now req.query
Not sure exactly when this happened, but i had to make this change for my versions of node/js
2014-06-06 12:28:11 -05:00
José F. Romaniello
80aa8dc023 2.3.0 2014-06-05 15:46:16 -03:00
José F. Romaniello
670fed992c 2.2.0 2014-06-05 15:45:46 -03:00
José F. Romaniello
3484a429ed fixed all broken tests with socket.io 1.0, close #10 2014-06-05 15:45:41 -03:00
José F. Romaniello
130357ff80 2.1.0 2014-06-03 08:12:11 -03:00
José F. Romaniello
e8380c10b8 add support for socket.io 1.0 2014-06-03 08:12:07 -03:00
Mark Rendle
e6ea64dc33 Update README.md
Added a note about converting base64 secret keys to Node Buffers.
2014-04-30 01:27:43 +01:00
José F. Romaniello
0577d07b47 missing parenthesis closes #7 2014-03-25 09:11:39 -03:00
José F. Romaniello
c526326a1e 2.0.2 2014-03-20 09:35:10 -03:00
kjellski
9a9f7d0ad6 - added newest xtend to prevent deprecation warning from object-keys 2014-03-19 22:14:17 +01:00
José F. Romaniello
9a58d94476 add license, close #2 2014-03-14 20:31:04 -03:00
José F. Romaniello
8e567b90a5 fix #3 2014-02-07 11:11:14 -02:00
José F. Romaniello
b8e64a2c17 2.0.1 2014-01-23 23:02:56 -03:00
José F. Romaniello
54a33c260c change user to decoded_token 2014-01-14 17:44:03 -03:00
José F. Romaniello
e62618837c add example 2014-01-14 11:04:41 -03:00
José F. Romaniello
86f4fd43ab 2.0.0 2014-01-14 08:30:55 -03:00
José F. Romaniello
b292ab75af change the API 2014-01-14 08:30:39 -03:00
José F. Romaniello
b0f4354ecb add noqs method 2014-01-13 18:41:10 -03:00