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
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
ffc493a0b9
add authenticated-controller example - proof of concept
...
Former-commit-id: 7a15da2bd966f2a699337cd494af8b5d1877b11d
2020-05-06 04:45:12 +03:00
Gerasimos (Makis) Maropoulos
37251c6b00
minor
...
Former-commit-id: 1747352d45933ad8c8623d8dcfdbcb176ecba50c
2020-05-04 06:45:14 +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
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
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
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
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
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
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
Gerasimos (Makis) Maropoulos
f6436f2af4
https://github.com/kataras/iris/issues/1061
...
Former-commit-id: 4324e81ea94ef917ce39005b6038a6819bb63258
2018-08-14 16:29:04 +03:00
Gerasimos Maropoulos
06c17bc8bb
sessions: add OnDestroy
event, relative to: https://github.com/kataras/iris/issues/969
...
Former-commit-id: de9ad83a663f44d62dbb7520595cacb21a7f694a
2018-04-22 14:13:40 +03:00
Gerasimos (Makis) Maropoulos
6862501f7f
Merge pull request #964 from Chengyumeng/fix/cookie
...
fix when destroy session can't remove cookie in subdomain
Former-commit-id: 5caf0fa5d92f53ba7b744dc1b3b7d47f688a96db
2018-04-22 14:01:48 +03:00
Gerasimos (Makis) Maropoulos
e09a7e32ed
update to use the formatCookieDomain
...
Former-commit-id: eb1f56c33dbf56bdc9d9e8df5f3f4915ff3cec42
2018-04-22 14:00:08 +03:00
Gerasimos Maropoulos
b62080c4bb
Sessions are now in full sync with the registered database, on acquire(init), set, get, delete, clear, visit, len, release(destroy)
as requested by almost everyone. https://github.com/kataras/iris/issues/969
...
Former-commit-id: 49fcdb93106a78f0a24ad3fb4d8725e35e98451a
2018-04-22 13:52:36 +03:00
Chengyumeng
bb59ad8cf2
change code duplication from update/delete cookie
...
Former-commit-id: 87980f8ca6dc61a4fc3d722b90967154a74afc91
2018-04-13 19:06:24 +08:00
Chengyumeng
8f32e991e8
fix when destroy session can't remove cookie in subdomain
...
Former-commit-id: 6ad05d62e03233c61a54f11c36867041ecba3f4d
2018-04-04 15:25:00 +08:00
Wing Gao
859a62bf01
fix cookie expire equals to -1 when call UpdateExpiration
...
Former-commit-id: 69107db0f9be87db2057c6d261bd896c0358bc45
2017-12-15 21:46:18 +08:00
Gerasimos (Makis) Maropoulos
ea863914dc
update the vendor json library which is used when 'WithOptimizations' passed on 'app.Run' and resolve https://github.com/kataras/iris/pull/839#issuecomment-351374343
...
Former-commit-id: ad3354717d593393a3f3aec863ec92f1f7e1c829
2017-12-13 14:37:02 +02:00
Gerasimos (Makis) Maropoulos
9ff124d39f
fix url host is empty when !edge on sessions subdomains persistence
...
Former-commit-id: 335a4f252e387d939b2cf9311e3acc8b35a41ce9
2017-09-21 12:31:54 +03:00
kataras
35620f6ecb
Update to 8.2.6 | More on Iris Controllers: optional EndRequest
. Read HISTORY.md
...
Former-commit-id: 5255ca5c4a898e2f3e7388f3af0457599e65f87f
2017-08-14 16:21:51 +03:00
kataras
48e352e1df
Update to 8.2.0 | BoltDB session database, fix file sessiondb, faster, simpler and improvement Session Database API
...
Former-commit-id: 4034737a65b78a77277e4283fd9289c17f4a452e
2017-08-07 06:04:35 +03:00
corebreaker
8fded5f86d
Test decoded cookie for empty strings
...
Fixes up issue #698 .
The input of `decodeCookieValue` is tested in case of there is an empty string, so then its output really reflect the validity of the input.
It takes in consideration that underlying decoder can unvalidate the cookie.
Former-commit-id: a82cccfe1c252c68ceeb4126ea43495fa2cdf96d
2017-08-02 09:40:54 +03:00
corebreaker
9b61ce2531
Add IsNew
flag on sessions
...
Former-commit-id: 94ac010a156bbe124033da2cbaac05fc4726d189
2017-08-01 11:00:30 +03:00
corebreaker
ef979cf541
Little change of session API + Update examples
...
Former-commit-id: e8c58b186acf1c8932af6e886dae7035f4d581c1
2017-08-01 08:34:18 +03:00
corebreaker
0f1a265e5a
Fix up for sessions
...
- Restore expiration state of the sessions
- Add APIs to modify expire date
- Free the timer for the session destroy task
Former-commit-id: 4d796a9efba2c37cd3750275ac62c068ceb82be8
2017-07-31 21:49:30 +03:00
kataras
9f85b74fc9
Add notes for the new lead maintainer of the open-source iris project and align with @get-ion/ion by @hiveminded
...
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
2017-07-10 18:32:42 +03:00
kataras
14e7751d21
SetImmutable
for sessions and context's values. https://github.com/iris-contrib/community-board/issues/5
...
New package "memstore" created, read it to see how I made it.
Former-commit-id: 9edc344b938786b2ef68defec03c44259a2d539c
2017-06-08 03:39:15 +03:00
kataras
5e4b63acb2
Publish the new version ✈️ | Look description please!
...
# FAQ
### Looking for free support?
http://support.iris-go.com
https://kataras.rocket.chat/channel/iris
### Looking for previous versions?
https://github.com/kataras/iris#version
### Should I upgrade my Iris?
Developers are not forced to upgrade if they don't really need it. Upgrade whenever you feel ready.
> Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo ) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes.
**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris`.
For further installation support, please click [here](http://support.iris-go.com/d/16-how-to-install-iris-web-framework ).
### About our new home page
http://iris-go.com
Thanks to [Santosh Anand](https://github.com/santoshanand ) the http://iris-go.com has been upgraded and it's really awesome!
[Santosh](https://github.com/santoshanand ) is a freelancer, he has a great knowledge of nodejs and express js, Android, iOS, React Native, Vue.js etc, if you need a developer to find or create a solution for your problem or task, please contact with him.
The amount of the next two or three donations you'll send they will be immediately transferred to his own account balance, so be generous please!
Read more at https://github.com/kataras/iris/blob/master/HISTORY.md
Former-commit-id: eec2d71bbe011d6b48d2526eb25919e36e5ad94e
2017-06-03 23:22:52 +03:00
Makis Maropoulos
077984bd60
🌈 sessions were re-written, update to 4.0.0-alpha.2, read HISTORY.md
...
**Sessions were re-written **
- Developers can use more than one 'session database', at the same time,
to store the sessions
- Easy to develop a custom session database (only two functions are
required (Load & Update)), [learn
more](https://github.com/iris-contrib/sessiondb/blob/master/redis/database.go )
- Session databases are located
[here](https://github.com/iris-contrib/sessiondb ), contributions are
welcome
- The only frontend deleted 'thing' is the: **config.Sessions.Provider**
- No need to register a database, the sessions works out-of-the-box
- No frontend/API changes except the
`context.Session().Set/Delete/Clear`, they doesn't return errors
anymore, btw they (errors) were always nil :)
- Examples (master branch) were updated.
```sh
$ go get github.com/iris-contrib/sessiondb/$DATABASE
```
```go
db := $DATABASE.New(configurationHere{})
iris.UseSessionDB(db)
```
> Note: Book is not updated yet, examples are up-to-date as always.
2016-07-15 20:50:36 +03:00
Makis Maropoulos
d837381b16
Update to 3.0.0-rc.1 - Read the HISTORY.md. Relative: #183 #184 #166 #176 #181
...
Read https://github.com/kataras/iris/tree/master/HISTORY.md
2016-06-14 08:45:40 +03:00
Makis Maropoulos
c26668a489
Version 3.0.0-beta cleaned
2016-05-30 17:08:09 +03:00