summaryrefslogtreecommitdiffstats
path: root/vendor/github.com
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade blevesearch to v0.8.1 (#9177)Mura Li2019-11-27102-4827/+3715
| | | | | For #1441 https://github.com/blevesearch/bleve/commit/a91b427b59b893f112021841ba7370d285f8426f
* Add single sign-on support via SSPI on Windows (#8463)QuaSoft2019-11-2312-0/+1107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add single sign-on support via SSPI on Windows * Ensure plugins implement interface * Ensure plugins implement interface * Move functions used only by the SSPI auth method to sspi_windows.go * Field SSPISeparatorReplacement of AuthenticationForm should not be required via binding, as binding will insist the field is non-empty even if another login type is selected * Fix breaking of oauth authentication on download links. Do not create new session with SSPI authentication on download links. * Update documentation for the new 'SPNEGO with SSPI' login source * Mention in documentation that ROOT_URL should contain the FQDN of the server * Make sure that Contexter is not checking for active login sources when the ORM engine is not initialized (eg. when installing) * Always initialize and free SSO methods, even if they are not enabled, as a method can be activated while the app is running (from Authentication sources) * Add option in SSPIConfig for removing of domains from logon names * Update helper text for StripDomainNames option * Make sure handleSignIn() is called after a new user object is created by SSPI auth method * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Remove default value from text of form field helper Co-Authored-By: Lauris BH <lauris@nix.lv> * Only make a query to the DB to check if SSPI is enabled on handlers that need that information for templates * Remove code duplication * Log errors in ActiveLoginSources Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert suffix of randomly generated E-mails for Reverse proxy authentication Co-Authored-By: Lauris BH <lauris@nix.lv> * Revert unneeded white-space change in template Co-Authored-By: Lauris BH <lauris@nix.lv> * Add copyright comments at the top of new files * Use loopback name for randomly generated emails * Add locale tag for the SSPISeparatorReplacement field with proper casing * Revert casing of SSPISeparatorReplacement field in locale file, moving it up, next to other form fields * Update docs/content/doc/features/authentication.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Remove Priority() method and define the order in which SSO auth methods should be executed in one place * Log authenticated username only if it's not empty * Rephrase helper text for automatic creation of users * Return error if more than one active SSPI auth source is found * Change newUser() function to return error, letting caller log/handle the error * Move isPublicResource, isPublicPage and handleSignIn functions outside SSPI auth method to allow other SSO methods to reuse them if needed * Refactor initialization of the list containing SSO auth methods * Validate SSPI settings on POST * Change SSPI to only perform authentication on its own login page, API paths and download links. Leave Toggle middleware to redirect non authenticated users to login page * Make 'Default language' in SSPI config empty, unless changed by admin * Show error if admin tries to add a second authentication source of type SSPI * Simplify declaration of global variable * Rebuild gitgraph.js on Linux * Make sure config values containing only whitespace are not accepted
* Move modules/gzip to gitea.com/macaron/gzip (#9058)Lunny Xiao2019-11-1845-5007/+2901
| | | | | | * Move modules/gzip to gitea.com/macaron/gzip * Fix vendor
* Update go-org to optimize code (#8824)Lauris BH2019-11-0513-88/+81
|
* Rewrite markdown rendering to blackfriday v2 and rewrite orgmode rendering ↵Lauris BH2019-10-3145-3381/+5482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to go-org (#8560) * Rewrite markdown rendering to blackfriday v2.0 * Fix style * Fix go mod with golang 1.13 * Fix blackfriday v2 import * Inital orgmode renderer migration to go-org * Vendor go-org dependency * Ignore errors :/ * Update go-org to latest version * Update test * Fix go-org test * Remove unneeded code * Fix comments * Fix markdown test * Fix blackfriday regression rendering HTML block
* Upgrade xorm to v0.8.0 (#8536)Lunny Xiao2019-10-1775-18783/+4
|
* upgrade gopkg.in/editorconfig/editorconfig-core-go.v1 (#8501)Colin Arnott2019-10-1514-0/+777
| | | | | editorconfig-core-go made breaking api changes and has recently released v2.1.1. This change consumes the new api and fixes up any breaking references.
* Restore Graceful Restarting & Socket Activation (#7274)zeripath2019-10-1518-1846/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Prevent deadlock in indexer initialisation during graceful restart * Move from gracehttp to our own service to add graceful ssh * Add timeout for start of indexers and make hammer time configurable * Fix issue with re-initialization in indexer during tests * move the code to detect use of closed to graceful * Handle logs gracefully - add a pid suffix just before restart * Move to using a cond and a holder for indexers * use time.Since * Add some comments and attribution * update modules.txt * Use zero to disable timeout * Move RestartProcess to its own file * Add cleanup routine
* Upgrade xorm to v0.7.9 to fix some bugs (#8354)Lunny Xiao2019-10-0212-229/+372
| | | | | | * upgrade xorm to v0.7.9 to fix some bugs * upgrade xormstore to v1.3.1
* Update to github.com/lafriks/xormstore@v1.3.0 (#8317)Antoine GIRARD2019-10-0220-956/+1529
|
* Upgrade xorm to latest to fix insert issue bug (#8309)Lunny Xiao2019-09-295-7/+246
| | | | | | | | | | * upgrade xorm to latest to fix insert issue bug * add newissue unit tests * update xorm version * fix tests
* Update xorm (#8286)John Olheiser2019-09-253-7/+57
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix label count (#8267)Lunny Xiao2019-09-2415-227/+622
| | | | | | | | | | | | | | * fix label count * fix vendor * fix import order * update xorm to fix bug * fix tests * fix mssql bug
* migrate gplus to google oauth2 provider (#7885)techknowlogick2019-09-144-56/+64
| | | | | | | | | | * migrate gplus to google oauth2 provider. this still provides support for old gplus connections. * Update models/oauth2.go Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * make vendor
* oauth2 with remote Gitea - Fix #8093 (#8149)techknowlogick2019-09-125-13/+266
|
* use go 1.13 (#8088)techknowlogick2019-09-1225-1479/+213
| | | | | | | | | | * use go 1.13 * use go 1.13 in gomod file * Update Makefile * update swagger deps
* Implement webhook branch filter (#7791)WGH2019-09-0935-0/+2939
| | | | | | | | * Fix validate() function to handle errors in embedded anon structs * Implement webhook branch filter See #2025, #3998.
* Use vendored go-swagger (#8087)Antoine GIRARD2019-09-04567-0/+98238
| | | | | | | | | | | | | | * Use vendored go-swagger * vendor go-swagger * revert un wanteed change * remove un-needed GO111MODULE * Update Makefile Co-Authored-By: techknowlogick <matti@mdranta.net>
* Update to mod enabled version goquery (#8021)Antoine GIRARD2019-08-2910-18/+137
| | | | | | * update to mod enabled version goquery * manually set appengine new release
* Update github.com/lafriks/xormstore and tidy up mod.go (#8020)guillep2k2019-08-2817-149/+272
|
* Update swagger to 0.20.1 (#8010)Antoine GIRARD2019-08-2858-1067/+6057
| | | | | | * update swagger to 0.20.1 * fiw swagger version for validate
* Retry create issue to cope with duplicate keys (#7898)guillep2k2019-08-2616-1313/+1810
| | | | | | * Retry create issue to cope with duplicate keys * Use .SetExpr().Where().Insert()
* Use gitea forked macaron (#7933)Tamal Saha2019-08-23147-16154/+13064
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Remove unique filter from repo indexer analyzer. (#7878)guillep2k2019-08-151-53/+0
| | | | | | | | | | * Remove unique filter from repo indexer analyzer. * Bump repoIndexerLatestVersion to 4 * Corrrect fmt * make vendor to remove unique dependency
* Remove camel case tokenization from repo indexer (#7733)guillep2k2019-08-063-274/+0
| | | | | | | | | | | | | | * Make repository indexer tokenize by camel case selectable * Revert "Make repository indexer tokenize by camel case selectable" This reverts commit a8d4e40af56ffeab9c040a13e01b9e0d5487bd3b. * Remove app.ini setting, permanently remove camel case tokenizer * Increase repoIndexerLatestVersion to force indexes to be rebuilt * Changes introduced by the commmand make vendor
* Update src-d/go-git to v4.13.0 (#7688)Antoine GIRARD2019-07-3113-240/+66
| | | | | | | | * update gopkg.in/src-d/go-git.v4 v4.13.0 * mod tidy * vendor
* Update to latest mssqldriver (#7613)zeripath2019-07-2623-586/+1768
| | | | * New driver does not tolerate USE - handle this by closing db and reopening db in the new dbname
* Update to xorm@v0.7.4 (#7596)Tamal Saha2019-07-2510-142/+327
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* Move status table to cron package (#7370)Lunny Xiao2019-07-1510-272/+443
|
* Support setting cookie domain (#6288)Tamal Saha2019-07-125-17/+20
| | | Signed-off-by: Tamal Saha <tamal@appscode.com>
* upgrade macaron/captcha to fix random error problem (#7407)Lunny Xiao2019-07-103-25/+40
|
* switch to use gliderlabs/ssh for builtin server (#7250)techknowlogick2019-07-0618-0/+1947
| | | | | | resolves git conflicts from #3896 (credit to @belak, in case github doesn't keep original author during squash) Co-Authored-By: Matti Ranta <techknowlogick@gitea.io>
* workaround broken drone build (#7362)Cherrg2019-07-0665-2446/+2944
| | | | | | | | | | | | | | | | | | | | * workaround broken swagger only master brach is not working, latest release seems to work Signed-off-by: Michael Gnehr <michael@gnehr.de> * make vendor Signed-off-by: Michael Gnehr <michael@gnehr.de> * Don't export GO111MODULE * set go-swagger to fixed release version mentioned here: https://github.com/go-gitea/gitea/pull/7362#discussion_r300831537 Signed-off-by: Michael Gnehr <michael@gnehr.de>
* update mssql drive to last working version 20180314172330-6a30f4e59a44 (#7306)Antoine GIRARD2019-06-3043-487/+3153
|
* Fix error log when loading issues caused by a xorm bug (#7271)Lunny Xiao2019-06-23111-5939/+951
| | | | | | | | | | | | * fix error log when loading issues caused by a xorm bug * upgrade packages * fix fmt * fix Consistency * fix tests
* update go-git to v4.12.0 - fixes #7248 (#7249)techknowlogick2019-06-193-0/+20
|
* Use vfsgen instead of go-bindata (#7080)Lunny Xiao2019-06-0321-578/+1092
| | | | | | | | | | * use vfsgen instead of go-bindata * fix templates * fix fmt * vendor vsfgen
* Improve handling of non-square avatars (#7025)Rob Watson2019-05-255-0/+347
| | | | | | | | | | * Crop avatar before resizing (#1268) Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com> * Fix spelling error Signed-off-by: Rob Watson <rfwatson@users.noreply.github.com>
* Handle CORS requests (#6289)Tamal Saha2019-05-1314-12/+457
|
* Improve migrations to support migrating ↵Lunny Xiao2019-05-0794-0/+31065
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | milestones/labels/issues/comments/pullrequests (#6290) * add migrations * fix package dependency * fix lints * implements migrations except pull requests * add releases * migrating releases * fix bug * fix lint * fix migrate releases * fix tests * add rollback * pull request migtations * fix import * fix go module vendor * add tests for upload to gitea * more migrate options * fix swagger-check * fix misspell * add options on migration UI * fix log error * improve UI options on migrating * add support for username password when migrating from github * fix tests * remove comments and fix migrate limitation * improve error handles * migrate API will also support migrate milestones/labels/issues/pulls/releases * fix tests and remove unused codes * add DownloaderFactory and docs about how to create a new Downloader * fix misspell * fix migration docs * Add hints about migrate options on migration page * fix tests
* Update https://github.com/urfave/cli to version 1.2.0 (#6838)Antoine GIRARD2019-05-0313-160/+576
| | | From un-tagged pervious version : https://github.com/urfave/cli/compare/d86a009f5e13...master
* update github.com/mcuadros/go-version to v0.0.0-20190308113854-92cdf37c5b75 ↵Lunny Xiao2019-05-012-11/+44
| | | | (#6815)
* Bump github.com/stretchr/testify from 1.2.2 to 1.3.0 (#6663)Antoine GIRARD2019-04-163-24/+45
| | | | | Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.2.2 to 1.3.0. - [Release notes](https://github.com/stretchr/testify/releases) - [Commits](https://github.com/stretchr/testify/compare/v1.2.2...v1.3.0)
* upgrade version of lib/pq to v1.1.0 (#6640)techknowlogick2019-04-1511-159/+521
| | | Adds SCRAM-SHA-256 authentication
* Issue indexer queue redis support (#6218)Lunny Xiao2019-04-0839-0/+11198
| | | | | | | | | | | | | | | | | | * add redis queue * finished indexer redis queue * add redis vendor * fix vet * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: lunny <xiaolunwen@gmail.com> * switch to go mod * Update required changes for new logging func signatures
* Better logging (#6038) (#6095)zeripath2019-04-0212-0/+276
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Panic don't fatal on create new logger Fixes #5854 Signed-off-by: Andrew Thornton <art27@cantab.net> * partial broken * Update the logging infrastrcture Signed-off-by: Andrew Thornton <art27@cantab.net> * Reset the skip levels for Fatal and Error Signed-off-by: Andrew Thornton <art27@cantab.net> * broken ncsa * More log.Error fixes Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove nal * set log-levels to lowercase * Make console_test test all levels * switch to lowercased levels * OK now working * Fix vetting issues * Fix lint * Fix tests * change default logging to match current gitea * Improve log testing Signed-off-by: Andrew Thornton <art27@cantab.net> * reset error skip levels to 0 * Update documentation and access logger configuration * Redirect the router log back to gitea if redirect macaron log but also allow setting the log level - i.e. TRACE * Fix broken level caching * Refactor the router log * Add Router logger * Add colorizing options * Adjust router colors * Only create logger if they will be used * update app.ini.sample * rename Attribute ColorAttribute * Change from white to green for function * Set fatal/error levels * Restore initial trace logger * Fix Trace arguments in modules/auth/auth.go * Properly handle XORMLogger * Improve admin/config page * fix fmt * Add auto-compression of old logs * Update error log levels * Remove the unnecessary skip argument from Error, Fatal and Critical * Add stacktrace support * Fix tests * Remove x/sync from vendors? * Add stderr option to console logger * Use filepath.ToSlash to protect against Windows in tests * Remove prefixed underscores from names in colors.go * Remove not implemented database logger This was removed from Gogs on 4 Mar 2016 but left in the configuration since then. * Ensure that log paths are relative to ROOT_PATH * use path.Join * rename jsonConfig to logConfig * Rename "config" to "jsonConfig" to make it clearer * Requested changes * Requested changes: XormLogger * Try to color the windows terminal If successful default to colorizing the console logs * fixup * Colorize initially too * update vendor * Colorize logs on default and remove if this is not a colorizing logger * Fix documentation * fix test * Use go-isatty to detect if on windows we are on msys or cygwin * Fix spelling mistake * Add missing vendors * More changes * Rationalise the ANSI writer protection * Adjust colors on advice from @0x5c * Make Flags a comma separated list * Move to use the windows constant for ENABLE_VIRTUAL_TERMINAL_PROCESSING * Ensure matching is done on the non-colored message - to simpify EXPRESSION
* Use Go1.11 module (#5743)Mura Li2019-03-27376-4551/+29222
| | | | | | | | | | | | | | | | | | * Migrate to go modules * make vendor * Update mvdan.cc/xurls * make vendor * Update code.gitea.io/git * make fmt-check * Update github.com/go-sql-driver/mysql * make vendor
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-275-0/+1607
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move code.gitea.io/git to code.gitea.io/gitea/modules/git * fix imports * fix fmt * fix misspell * remove wrong tests data * fix unit tests * fix tests * fix tests * fix tests * fix tests * fix tests * enable Debug to trace the failure tests * fix tests * fix tests * fix tests * fix tests * fix tests * comment commit count tests since git clone depth is 50 * fix tests * update from code.gitea.io/git * revert change to makefile
* Replace linkRegex with xurls library (#6261)mrsdizzie2019-03-075-0/+2014
| | | | | | | | | | | | | | | | | | | | * Replace linkRegex with xurls library Rather than maintaining a complicated regex to match URLs for autolinking, gitea can use this existing go library that takes care of the matching with very little code change to gitea itself. After spending a while trying to find the perfect regex for all cases this library still works better as it is more flexible than a single regex ever will be. This will also fix the following issues: #5844 #3095 #3381 This passes all our current tests and I've added new ones mentioned in those issues as well. * Use xurls.StrictMatchingScheme instead of xurls.Strict This is much faster and we only care about https? links to preserve existing behavior.
* Refactor issue indexer (#5363)Lunny Xiao2019-02-193-0/+245
|