summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/markbates
Commit message (Collapse)AuthorAgeFilesLines
* Remove x/net/context vendor by using std package (#5202)Antoine GIRARD2018-11-102-16/+39
| | | | | | | | | | | | * Update dep github.com/markbates/goth * Update dep github.com/blevesearch/bleve * Update dep golang.org/x/oauth2 * Fix github.com/blevesearch/bleve to c74e08f039e56cef576e4336382b2a2d12d9e026 * Update dep golang.org/x/oauth2
* Fix #4877 to follow the OpenID Connect Audiences spec (#4878)OvermindDL12018-09-201-1/+29
| | | | | Signed-off-by: Gabriel Robertson <overminddl1@gmail.com>
* Migrate to dep (#3972)Antoine GIRARD2018-05-211-141/+0
| | | | | | | | | | | | * Update makefile to use dep * Migrate to dep * Fix some deps * Try to find a better version for golang.org/x/net * Try to find a better version for golang.org/x/oauth2
* Switch back to upstream goth repository and update govendor to latest goth ↵Lauris BH2018-04-302-7/+6
| | | | version (#3863)
* Update markbates/goth libary to fix OAuth2 support (#3661)Lauris BH2018-03-132-18/+42
|
* Update markbates/goth library (#3533)Lauris BH2018-02-1910-128/+252
| | | Signed-off-by: Lauris Bukšis-Haberkorns <lauris@nix.lv>
* Additional OAuth2 providers (#1010)Willem van Dreumel2017-05-0114-11/+1899
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add google+ * sort signin oauth2 providers based on the name so order is always the same * update auth tip for google+ * add gitlab provider * add bitbucket provider (and some go fmt) * add twitter provider * add facebook provider * add dropbox provider * add openid connect provider incl. new format of tips section in "Add New Source" * lower the amount of disk storage for each session to prevent issues while building cross platform (and disk overflow) * imports according to goimport and code style * make it possible to set custom urls to gitlab and github provider (only these could have a different host) * split up oauth2 into multiple files * small typo in comment * fix indention * fix indentation * fix new line before external import * fix layout of signin part * update "broken" dependency
* Oauth2 consumer (#679)Willem van Dreumel2017-02-229-0/+800
* initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)