You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
assert_interface_test.go Move login related structs and functions to models/login (#17093) 4 years ago
init.go Simplify Gothic to use our session store instead of creating a different store (#17507) 3 years ago
jwtsigningkey.go refactor: move from io/ioutil to io and os package (#17109) 4 years ago
providers.go Move login related structs and functions to models/login (#17093) 4 years ago
providers_base.go Add microsoft oauth2 providers (#16544) 4 years ago
providers_custom.go Use github token URL when fetching oauth token (#16709) 4 years ago
providers_openid.go Fix openidConnect source regression from #16544 (#16759) 4 years ago
providers_simple.go Add microsoft oauth2 providers (#16544) 4 years ago
source.go Add SkipLocal2FA option to pam and smtp sources (#17078) 4 years ago
source_authenticate.go Make LDAP be able to skip local 2FA (#16954) 4 years ago
source_callout.go Lock goth/gothic and Re-attempt OAuth2 registration on login if registration failed at startup (#16564) 4 years ago
source_name.go Add microsoft oauth2 providers (#16544) 4 years ago
source_register.go Add microsoft oauth2 providers (#16544) 4 years ago
store.go Simplify Gothic to use our session store instead of creating a different store (#17507) 3 years ago
token.go Add groups scope/claim to OIDC/OAuth2 Provider (#17367) 3 years ago
urlmapping.go Add microsoft oauth2 providers (#16544) 4 years ago