gitea/services/auth/source/oauth2
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
..
assert_interface_test.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
init.go Simplify Gothic to use our session store instead of creating a different store (#17507) 2021-11-03 08:33:54 +08:00
jwtsigningkey.go refactor: move from io/ioutil to io and os package (#17109) 2021-09-22 13:38:34 +08:00
providers_base.go
providers_custom.go Use github token URL when fetching oauth token (#16709) 2021-08-17 09:07:52 +01:00
providers_openid.go Fix openidConnect source regression from #16544 (#16759) 2021-08-22 10:17:05 +01:00
providers_simple.go
providers.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
source_authenticate.go Make LDAP be able to skip local 2FA (#16954) 2021-09-17 12:43:47 +01:00
source_callout.go
source_name.go
source_register.go
source.go Add SkipLocal2FA option to pam and smtp sources (#17078) 2021-09-26 21:02:01 -04:00
store.go Simplify Gothic to use our session store instead of creating a different store (#17507) 2021-11-03 08:33:54 +08:00
token.go Add groups scope/claim to OIDC/OAuth2 Provider (#17367) 2021-10-22 17:19:24 +08:00
urlmapping.go