forked from gitea/gitea
1
0
Fork 0
gitea/services/auth/source
zeripath 9d855bd6a1
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>
2021-11-03 08:33:54 +08:00
..
db Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
ldap Allow LDAP Sources to provide Avatars (#16851) 2021-09-26 22:39:36 -04:00
oauth2 Simplify Gothic to use our session store instead of creating a different store (#17507) 2021-11-03 08:33:54 +08:00
pam Add SkipLocal2FA option to pam and smtp sources (#17078) 2021-09-26 21:02:01 -04:00
smtp Add SkipLocal2FA option to pam and smtp sources (#17078) 2021-09-26 21:02:01 -04:00
sspi Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00