summaryrefslogtreecommitdiffstats
path: root/modules/auth/auth.go
Commit message (Collapse)AuthorAgeFilesLines
* Better URL validation (#1507)Lauris BH2017-04-191-0/+3
| | | | | | | | | | | | | | | | | | | | * Add correct git branch name validation * Change git refname validation error constant name * Implement URL validation based on GoLang url.Parse method * Backward compatibility with older Go compiler * Add git reference name validation unit tests * Remove unused variable in unit test * Implement URL validation based on GoLang url.Parse method * Backward compatibility with older Go compiler * Add url validation unit tests
* fix: gofmt errors. (#1106)Bo-Yi Wu2017-03-031-2/+2
|
* Oauth2 consumer (#679)Willem van Dreumel2017-02-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Avoid duplicate queries in auth (#827)Ethan Koenig2017-02-051-57/+48
| | | Avoid identical making calls to GetUserByID(..) in SignedInUser(..)
* GitHub API Compliance (& linting)Kim "BKC" Carlbäcker2016-12-021-0/+3
|
* golint fixed for modules/authLunny Xiao2016-11-271-2/+7
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-4/+4
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-4/+4
|
* Fixes #3110 (#3136)Franz Schmidt2016-06-271-1/+1
|
* Replace uuid module with original packageUnknwon2016-02-201-2/+2
|
* typo fixzhuharev2016-01-061-2/+2
|
* work on #470 and fix miror JS issue when choose targets on compare and pullUnknwon2015-10-291-4/+10
|
* fix import path, fix #1782Unknwon2015-10-151-3/+3
|
* support URL param to token, but still restrict to APIsUnknwon2015-09-021-21/+23
|
* #842 able to use access token replace basic authUnknwon2015-09-021-22/+28
|
* #1487 Readme TemplateUnknwon2015-08-281-0/+6
|
* token recent activityUnknwon2015-08-191-2/+7
|
* work on #1493Unknwon2015-08-171-1/+1
|
* WIP: create PR - choose branchUnknwon2015-08-081-2/+2
|
* allow anonymous SSH cloneUnknwon2015-08-051-3/+3
|
* UI: basic label listUnknwon2015-07-241-1/+7
| | | | - create new label
* #1128: API calls are not hidden behind sign inUnknwon2015-07-151-1/+5
|
* UI: install - new versionUnknwon2015-07-081-1/+8
|
* Attempt #3 of ldap fixesGogs2015-02-271-5/+4
|
* cmd: CMD option for port number of `gogs web` to prevent first time run conflictUnknwon2015-02-011-0/+7
| | | | | - routers: use new binding convention to simplify code - templates: able to set HTTP port number in install page
* fix binding api brokenUnknwon2014-12-151-7/+7
|
* Fix spelling errors in comments.Joseph Crail2014-12-061-1/+1
|
* work on #672Unknwon2014-12-051-1/+2
|
* fix #165Unknwon2014-12-051-1/+19
|
* more APIs on #12Unknwon2014-11-181-9/+9
|
* #12, API: list user repos, list repo hooksUnknwon2014-11-131-15/+15
|
* add personal access token panel #12Unknwon2014-11-121-5/+23
|
* work on #616 and update localesUnknwon2014-11-101-14/+39
|
* Use binding middlewareUnknwon2014-10-151-21/+21
|
* Fix #340Unknwon2014-08-011-4/+12
|
* New UI merge in progressUnknwon2014-07-261-36/+139
|
* Finish create organization teamUnknown2014-07-021-165/+31
|
* merge all login methodsLunny Xiao2014-05-111-0/+1
|
* Clean namesUnknown2014-05-081-4/+4
|
* Clean repo codeUnknown2014-05-051-14/+0
|
* User code clean and ui improveUnknown2014-05-051-46/+30
|
* Clean api codeUnknown2014-05-051-3/+3
|
* Merge branch 'dev-ldap' into devLunny Xiao2014-05-051-0/+1
|\
| * basic authenticationsLunny Xiao2014-05-051-0/+1
| |
* | Fix import pathUnknown2014-05-051-11/+12
| |
* | Fix #149Unknown2014-05-011-1/+1
| |
* | fix #91Unknown2014-05-011-1/+3
| |
* | Add login by emailUnknown2014-04-271-1/+1
|/
* Move binding as subrepoUnknown2014-04-131-12/+10
|
* Add repo mirror and importUnknown2014-04-121-1/+3
|