]> source.dussan.org Git - gitea.git/commit
Simplify Gothic to use our session store instead of creating a different store (...
authorzeripath <art27@cantab.net>
Wed, 3 Nov 2021 00:33:54 +0000 (00:33 +0000)
committerGitHub <noreply@github.com>
Wed, 3 Nov 2021 00:33:54 +0000 (08:33 +0800)
commit9d855bd6a1da51a656bede3a855b2cecc6a22f28
treeac34d3039edafd1c8d7814e3ede09f1e22372073
parent95da01c5cd946d6e6ba0b0110676d3df36ce85db
Simplify Gothic to use our session store instead of creating a different store (#17507)

* Simplify Gothic to use our session store instead of creating a different store

We have been using xormstore to provide a separate session store for our OAuth2 logins
however, this relies on using gorilla context and some doubling of our session storing.
We can however, simplify and simply use our own chi-based session store. Thus removing
a cookie and some of the weirdness with missing contexts.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per review

Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per review

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

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

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
25 files changed:
cmd/web.go
cmd/web_letsencrypt.go
contrib/pr/checkout.go
go.mod
go.sum
models/db/store.go [deleted file]
models/login/session.go
routers/web/user/auth.go
services/auth/source/oauth2/init.go
services/auth/source/oauth2/store.go [new file with mode: 0644]
vendor/github.com/gorilla/context/.travis.yml [deleted file]
vendor/github.com/gorilla/context/LICENSE [deleted file]
vendor/github.com/gorilla/context/README.md [deleted file]
vendor/github.com/gorilla/context/context.go [deleted file]
vendor/github.com/gorilla/context/doc.go [deleted file]
vendor/github.com/lafriks/xormstore/.gitignore [deleted file]
vendor/github.com/lafriks/xormstore/.travis.yml [deleted file]
vendor/github.com/lafriks/xormstore/LICENSE [deleted file]
vendor/github.com/lafriks/xormstore/README.md [deleted file]
vendor/github.com/lafriks/xormstore/go.mod [deleted file]
vendor/github.com/lafriks/xormstore/go.sum [deleted file]
vendor/github.com/lafriks/xormstore/test [deleted file]
vendor/github.com/lafriks/xormstore/util/time_stamp.go [deleted file]
vendor/github.com/lafriks/xormstore/xormstore.go [deleted file]
vendor/modules.txt