Commit Graph

15 Commits

Author SHA1 Message Date
Gerasimos (Makis) Maropoulos
8eea0296a7
As noticed in my previous commit, the existing jwt libraries added a lot of performance cost between jwt-featured requests and simple requests. That's why a new custom JWT parser was created. This commit adds our custom jwt parser as the underline token signer and verifier 2020-10-30 22:12:16 +02:00
Gerasimos (Makis) Maropoulos
d517f36a29
minor commit. But I am not happy with the jwt implementations for Go...they seem to produce enough performance cost, will try to make a jwt parser by myself and see the difference 2020-10-19 10:05:48 +03:00
Gerasimos (Makis) Maropoulos
02bfc83f2a
jwt: make the Blocklist an interface, so end-developers can implement their own storage (e.g. redis) 2020-10-18 21:51:25 +03:00
Gerasimos (Makis) Maropoulos
3db77684ec
add a very simple example on JWT and move the previous to the 'overview' sub folder 2020-10-18 20:31:58 +03:00
Gerasimos (Makis) Maropoulos
0d73b63b28
jwt: add the (last) helper: VerifyRefreshToken 2020-10-18 17:15:29 +03:00
Gerasimos (Makis) Maropoulos
09923183e8
add an extra security layer on JWT and able to separate access from refresh tokens without any end-developer action on the claims payload (e.g. set a different issuer) 2020-10-18 14:42:19 +03:00
Gerasimos (Makis) Maropoulos
a412ee55ae
jwt: add VerifyJSON and ReadJSON helpers 2020-10-17 15:22:42 +03:00
Gerasimos (Makis) Maropoulos
1864f99145
New JWT features and changes (examples updated). Improvements on the Context User and Private Error features
TODO: Write the new e-book JWT section and the HISTORY entry of the chnages and  add a simple example on site docs
2020-10-17 06:40:17 +03:00
Gerasimos (Makis) Maropoulos
85b5453ae1
add auth/jwt/refresh-token example as requested at #1635 2020-09-16 13:57:11 +03:00
Gerasimos (Makis) Maropoulos
0f113dfcda (#1554) Add support for all common compressions (write and read)
- Remove the context.Context interface and export the *context, the iris.Context now points to the pointer\nSupport compression and rate limiting in the FileServer\nBit of code organisation


Former-commit-id: ad1c61bf968059510c6be9e7f2cceec7da70ba17
2020-07-10 23:21:09 +03:00
Gerasimos (Makis) Maropoulos
ed45c77be5 reorganization of _examples and add some new examples such as iris+groupcache+mysql+docker
Former-commit-id: ed635ee95de7160cde11eaabc0c1dcb0e460a620
2020-06-07 15:26:06 +03:00
Gerasimos (Makis) Maropoulos
9fdcb4c7fb jwt: add a 'Get' helper
Former-commit-id: a9b0bd0d2a61a9b2a33eff35eb69eec035296b98
2020-06-01 06:57:52 +03:00
Gerasimos (Makis) Maropoulos
b2fddc7d68 jwt: add more helpers (DefaultRSA and DefaultHMAC)
Former-commit-id: fe06c0e0f4d7e121c678ffda7ac702ae865abd00
2020-05-31 17:57:30 +03:00
Gerasimos (Makis) Maropoulos
9e5672da25 add a new simple, builtin requestid middleware (makes use of the Context.SetID/GetID methods too)
Former-commit-id: d46bce7c1964adada01934aa95daf389c141defc
2020-05-28 16:20:58 +03:00
Gerasimos (Makis) Maropoulos
d556cfc39a New builtin JWT middleware - this one supports encryption and ed25519
Former-commit-id: ca20d256b766e3e8717e91de7a3f3b5f213af0bc
2020-05-27 12:02:17 +03:00