Commit Graph

132 Commits

Author SHA1 Message Date
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
47c3bad58d set iris logger to the sessiondb/badger logs and update deps
Former-commit-id: 7578dec5752cc2bfa012440c24d59f41425812f8
2020-05-17 22:08:43 +03:00
Gerasimos (Makis) Maropoulos
21a013569f add TLSConfig on redis configuration #1515
Former-commit-id: 3ce4a43185c7b6b5250f49483d7d229ea9dd1670
2020-05-17 03:25:32 +03:00
Gerasimos (Makis) Maropoulos
221f026491 improvements on cookie options
Former-commit-id: f1d5cfc88a33077a9359eaa25b6a20265f5632b5
2020-05-10 02:17:28 +03:00
Gerasimos (Makis) Maropoulos
50b18c7515 enhanced cookie security and management
Former-commit-id: a97b0b33e87749a2e8c32e63269fcc60fa326ff3
2020-05-09 14:04:51 +03:00
Gerasimos (Makis) Maropoulos
cd62ba3712 organise sessions examples
Former-commit-id: 682472d2cf4ebfc740687522fe5eef77b5bb1a72
2020-05-07 07:34:17 +03:00
Gerasimos (Makis) Maropoulos
b4365cee8d sessions: add GobTranscoder and document the DefaultTranscoder package-level variable
Former-commit-id: 631d52bb6d0eb0dbe2e7416517ec019c5902ca71
2020-05-07 01:14:41 +03:00
Gerasimos (Makis) Maropoulos
ffc493a0b9 add authenticated-controller example - proof of concept
Former-commit-id: 7a15da2bd966f2a699337cd494af8b5d1877b11d
2020-05-06 04:45:12 +03:00
Gerasimos (Makis) Maropoulos
f5e59c10e1 update go.mod deps
Former-commit-id: 91a0ab6a8cb35bf9143cee0447a6f72ca8a09333
2020-05-04 20:23:15 +03:00
Gerasimos (Makis) Maropoulos
37251c6b00 minor
Former-commit-id: 1747352d45933ad8c8623d8dcfdbcb176ecba50c
2020-05-04 06:45:14 +03:00
Gerasimos (Makis) Maropoulos
ac7fac35be update dependencies
Former-commit-id: 95cc5cf2628490e865d6414ab2d8661e803ea05f
2020-04-28 05:51:28 +03:00
Gerasimos (Makis) Maropoulos
68c5883bce add a test for https://github.com/kataras/iris/issues/1488
Former-commit-id: aabb01dda7fbbc708bb2ae98a4589d14ae2fc640
2020-04-17 17:54:00 +03:00
Gerasimos (Makis) Maropoulos
a1e6d81b49 add access to the session manager through new 'Session.Man' field
relative to: https://github.com/kataras/iris/issues/1485


Former-commit-id: c4ced38b74af42bfcd17abe6b439b35db6837bbf
2020-04-13 22:15:55 +03:00
Gerasimos (Makis) Maropoulos
629ae3c688 minor: sessions testing: fix travis by using InRange for cookie's MaxAge
Former-commit-id: a1d6096aec0d716539e1b4b35547c7b3f05bbd3f
2020-04-13 10:01:51 +03:00
Gerasimos (Makis) Maropoulos
989ac436e8 fix https://github.com/kataras/iris/issues/1485 by adding and using the new 'context.UpsertCookie' instead of 'context.SetCookie'
Former-commit-id: 31a50e580929616504b9bbbb1d602b0e9274a568
2020-04-13 09:27:49 +03:00
Gerasimos (Makis) Maropoulos
e1d3cad905 add test for sessions.UpdateExpiration
Former-commit-id: fe80e61981dfac925eebe472d56641d9c3543b31
2020-04-13 07:11:41 +03:00
Gerasimos (Makis) Maropoulos
f03afeef2f add Context.SetSameSite(integrates with sessions too) , iris.JSON.ASCII and iris.JSON.Secure option fields
Former-commit-id: fdf0dae234b219c9ca449ae8907d3e459d485dc7
2020-04-07 19:23:30 +03:00
Gerasimos (Makis) Maropoulos
3093d65363 version 12.1.5
Former-commit-id: cda69f08955cb0d594e98bf26197ee573cbba4b2
2020-02-02 16:29:06 +02:00
Gerasimos (Makis) Maropoulos
b2c5ec03fd miscellaneous
Former-commit-id: bc2fddd4da23ec917be5dd9e8bddd4b13cdce050
2020-01-07 03:41:07 +02:00
Gerasimos (Makis) Maropoulos
7f720eb33d fix #1407
Former-commit-id: acd8d582aab7b278ea99d0f02d79a33a8b5ee86f
2019-12-19 07:10:31 +02:00
Gerasimos (Makis) Maropoulos
3945fa68d1 obey the vote of @1370 (77-111 at this point) - add import suffix on iris repository
We have to do the same on iris-contrib/examples, iris-contrib/middleware and e.t.c.


Former-commit-id: 0860688158f374bc137bc934b81b26dcd0e10964
2019-10-25 01:27:02 +03:00
Gerasimos (Makis) Maropoulos
221978e41a Upgrade to new go errors and some minor fixes and improvements including easier debugging of invalid routes and e.t.c.
Former-commit-id: 5809157b952ccc61a67a9861470774b3a6fee024
2019-10-24 18:57:05 +03:00
Gerasimos (Makis) Maropoulos
9d09e8637b fix radix get keys issue described at: #1328
Former-commit-id: beaf1f301ba8967fb7b56dc670818dedda324819
2019-08-22 14:46:39 +03:00
Gerasimos (Makis) Maropoulos
0737c4364c improvement for https://github.com/kataras/iris/issues/1328#issuecomment-522952979
Former-commit-id: a2519c17a039b67129bd5683e9e9a1239c441c0a
2019-08-20 14:19:42 +03:00
Gerasimos (Makis) Maropoulos
2cd217f110 add clusters support for sessiondb:redis:Radix() #1339
Former-commit-id: d748d1e19a29851abbbfc0264fd04c462158b645
2019-08-20 12:29:54 +03:00
Gerasimos (Makis) Maropoulos
07046ab978 formatting
Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
2019-08-17 10:06:20 +03:00
Gerasimos (Makis) Maropoulos
db433f7dca minor: sessions: set SameSite to Lax when sharable with subdomains is not disabled.
Former-commit-id: d0b15433d5f325f24972669b485be9cf5be6d68a
2019-08-16 12:41:20 +03:00
Gerasimos (Makis) Maropoulos
eb29a80753 redis sessiondb: support more than one driver - builtin redigo(default) and radix - rel to: #1328
Former-commit-id: 1eee58f2c49f64899fffc3ad61bcf074f8949cc1
2019-08-06 18:40:13 +03:00
Gerasimos (Makis) Maropoulos
29bf846bd1 minor version 11.2.2 - register sessions as middleware and Context.HTML/Text like Context.Writef
Former-commit-id: 6f5f1c502fb06d739c350c3ecc891f495dc03a6e
2019-07-24 19:51:42 +03:00
Gerasimos (Makis) Maropoulos
4a937b55f2 remove the old redis (result of prev commit sync with master)
Former-commit-id: 81e8ad0ea4115640d556a1299f09f89f75fe133f
2019-07-23 19:22:10 +03:00
Gerasimos (Makis) Maropoulos
736709aa75 resolve conflicts with current master v11.1.1
Former-commit-id: 659ff392e889f3a8552d7da3d44848f1a364f7b2
2019-07-23 19:20:07 +03:00
Gerasimos (Makis) Maropoulos
4caf8d7d9b remove some examples learning content as they are exist on the wiki itself now
Former-commit-id: 8c69be5bf8ca21eb0e405ca5ad8431ceb1c2511e
2019-07-23 17:47:28 +03:00
Gerasimos (Makis) Maropoulos
ccafe67c80 nothing important here
Former-commit-id: e6c4ade12d085cb8fa4989b15fa446b75ee114b2
2019-07-15 09:58:05 +03:00
Gerasimos (Makis) Maropoulos
137c41344d Updated all dependencies one by one to go.mod - Backup and remove the vendor folder entirely and update most of the examples - next commit will contain the rest of the updated
Former-commit-id: 2791c50256c0f00d6e08a408e5cb009262c49588
2019-07-15 07:49:04 +03:00
Gerasimos (Makis) Maropoulos
33dfb42d73 add the new neffos StackExchange feature to the type aliases and shortcuts of the websocket subpackage and auto-enable debug mode on websocket MVC application when iris logger's level is set to debug
Former-commit-id: 4d8cb79d01a4172fc1ed7a9b626da0228d902b3c
2019-07-11 12:59:11 +03:00
Gerasimos (Makis) Maropoulos
b71d4032e6 replace the redis library we used with another one, no performance differences but most options for connections pooling and read/write/connect timeout (two config fields are changed as well)
relative to: https://github.com/kataras/iris/issues/1285


Former-commit-id: c20530cd67144ab8d1c9325807fe5c13268fa428
2019-06-22 14:46:20 +03:00
Gerasimos (Makis) Maropoulos
7af5f139e0 fix typo
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
2019-06-07 21:07:08 +03:00
Gerasimos (Makis) Maropoulos
adb6fd764a extract the Delim for redis sessiondb as requested at https://github.com/kataras/iris/issues/1256 and add a mvc/regexp example and some other trivial changes
Former-commit-id: f9e09320bfe07ae10ac74f54a78272cf21d21cc7
2019-05-30 10:48:07 +03:00
Gerasimos (Makis) Maropoulos
ddec78af0a add Context.ResponseWriter.IsHijacked to report whether the underline conn is already hijacked and a lot of cleanup and minor ws stress test example improvements
Former-commit-id: 444d4f0718d5c6d7544834c5e44dafb872980238
2019-02-23 07:23:10 +02:00
Gerasimos (Makis) Maropoulos
bda36145e5 some cleanup, and remove the test 'testwebocket2' package at all; A lower-level fast websocket impl based on gobwas/ws will be published on a different repo, it is a WIP
Former-commit-id: b680974c593196ce20865ed12778929ced6afea1
2019-02-22 21:24:10 +02:00
Gerasimos (Makis) Maropoulos
6ca19e0bca sessions: give ability to the end-user to modify the cookie via context.CookieOption on Start and Update/ShiftExpiration as requested at: https://github.com/kataras/iris/issues/1186, add a StartWithPath helper as well
Former-commit-id: a9f8715b07049a5720a38c9352bb1ff781dfc04d
2019-02-16 21:03:48 +02:00
Dzmitry.Harupa
b1b5986974 session/redis: fix unused service config var. IdleTimeout witch was replaced by default values
Former-commit-id: 27752108409604cbabadf0d4457321f6e3336f9f
2018-11-27 14:55:00 +03:00
Gerasimos (Makis) Maropoulos
80952bcbd5 Add the article 'CRUD REST API in Iris (a framework for golang)' and a starter kit for Iris written by @jebzmos4
Former-commit-id: 72eb72f11086b23c1bf849eb14ad846492a84cbd
2018-11-06 04:36:05 +02:00
Gerasimos (Makis) Maropoulos
3962710d3d Version 11 released. Read https://github.com/kataras/iris/blob/master/HISTORY.md#su-21-october-2018--v1100
Former-commit-id: fe6305deed00e170bf4d39a12c0644fe686e0a24
2018-10-21 19:20:05 +03:00
Gerasimos (Makis) Maropoulos
b4a30f5af5 sessions database: boltdb: add support for ShiftExpiration -> OnUpdateExpiration like redis
badger sessiondb still in progress.


Former-commit-id: 1f89a0efb753c0e02b774e0d9e48d879e987c939
2018-08-18 15:01:26 +03:00
Akira Ho
45c1f6427f fix / redis.getKeysConn() returns keys without Config.Prefix otherwise such keys passed into updateTTLConn() would get duplicate prefixes failing the ttl reset
Former-commit-id: bfcc02e5db16216d221c533fc28919fe292d6532
2018-08-16 17:42:01 +08:00
Akira Ho
4e7ca254d9 fix / redis service.TTL() returns seconds, hasExpiration, found
Former-commit-id: 25743848458f2a6cf3e78d5ae119d2ba2a822f79
2018-08-16 17:37:41 +08:00
Akira Ho
768dd76b62 fix / lifetime.Time not updated on expiration shift
Former-commit-id: 03cd1e8dcf20d6e68b70667d1f808860cb027d32
2018-08-15 14:21:22 +08:00
Gerasimos (Makis) Maropoulos
f6436f2af4 https://github.com/kataras/iris/issues/1061
Former-commit-id: 4324e81ea94ef917ce39005b6038a6819bb63258
2018-08-14 16:29:04 +03:00
Gerasimos (Makis) Maropoulos
f7c0cbe5cd update deps and move one vendor to our organisation for making a new branch in order to solve this: https://github.com/kataras/iris/issues/1040, although it's not ours problem...
Former-commit-id: 6013525d2aabc35461bf24871e3b36ca91004fb9
2018-07-15 16:09:03 +03:00