1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/vendor/gitea.com/go-chi/session
zeripath bcc13f3889
Reset Session ID on login (#18018)
* Reset Session ID on login

When logging in the SessionID should be reset and the session cleaned up.

Signed-off-by: Andrew Thornton <art27@cantab.net>

* with new session.RegenerateID function

Signed-off-by: Andrew Thornton <art27@cantab.net>

* update go-chi/session

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Ensure that session id is changed after oauth data is set and between account linking pages too

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

* as per review

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-12-20 22:12:26 +08:00
..
couchbase
memcache
mysql
postgres
.drone.yml
.gitignore
file.go
go.mod Upgrade chi to v5 (#17298) 2021-10-13 22:50:23 -04:00
go.sum Upgrade chi to v5 (#17298) 2021-10-13 22:50:23 -04:00
LICENSE
memory.go
README.md Upgrade chi to v5 (#17298) 2021-10-13 22:50:23 -04:00
secret.go
session.go Reset Session ID on login (#18018) 2021-12-20 22:12:26 +08:00
utils.go

Session

Middleware session provides session management which based on a fork of Macaron Session for go-chi. It can use many session providers, including memory, file, Redis, Memcache, PostgreSQL, MySQL, Couchbase, Ledis and Nodb.

Installation

go get gitea.com/go-chi/session

Credits

This package is a modified version of go-macaron/session.

License

This project is under the Apache License, Version 2.0. See the LICENSE file for the full license text.