summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix race on indexer (#9136)Lunny Xiao2019-11-231-7/+12
|
* Add single sign-on support via SSPI on Windows (#8463)QuaSoft2019-11-23174-1305/+6362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Send tag create and push webhook when release created on UI (#8671)Benno2019-11-221-0/+9
| | | | | | | | | | | | | | | | | | * 'update' * Send push tag event when release created * send tag create event while release created in UI * update to go v1.13 * fix gofmt error * update #8671 move release tag created hook to modules/notification/webhook due to #8802 refactoring * use NotifyCreateRef and NotifyPushCommits instead of NotifyNewReleaseTag * move tag notification to correct place
* Run make fmt on master (#9129)David Svantesson2019-11-221-5/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-221-0/+3
|
* Fix race condition in ReplaceSanitizer (#9123)zeripath2019-11-221-1/+0
|
* fixed reCAPTCHA URL (#9083)Koichi MATSUMOTO2019-11-221-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-221-0/+3
|
* Hide credentials when submitting migration (#9102)Jordan2019-11-221-1/+1
| | | | through API. Same fix, using form.CloneAddr instead of opts.CloneAddr.
* move semantic.dropdown.custom.js to webpack (#9064)silverwind2019-11-2116-468/+455
| | | | | | | | | | | | | * move semantic.dropdown.custom.js to webpack Also disabled a annoying linter rule which insisted that imports can not contain a file extension. Fixes: https://github.com/go-gitea/gitea/issues/8971 * reorganize web_src files and rebuild * restart ci
* Add USE_SERVICE_WORKER setting (#9110)silverwind2019-11-216-17/+35
| | | | | | | | | | * Add USE_SERVICE_WORKER setting This will be very useful setting for anyone doing frontend work. Fixes: https://github.com/go-gitea/gitea/issues/9044 * prevent potential syntax error on old browsers
* Add Graceful shutdown for Windows and hooks for shutdown of goroutines (#8964)zeripath2019-11-2130-497/+666
| | | | | | | | | | | | | | | | | | * Graceful Shutdown for windows and others Restructures modules/graceful, adding shutdown for windows, removing and replacing the old minwinsvc code. Creates a new waitGroup - terminate which allows for goroutines to finish up after the shutdown of the servers. Shutdown and terminate hooks are added for goroutines. * Remove unused functions - these can be added in a different PR * Add startup timeout functionality * Document STARTUP_TIMEOUT
* Move merge actions to notification (#9024)Lunny Xiao2019-11-216-21/+69
| | | | | | * Move merge actions to notification * Add missing mail notification
* Move HttpBackend function to Http to reduce function calls when git smart ↵Lunny Xiao2019-11-211-50/+47
| | | | http requests (#9057)
* [fix] typo (#9104)maicss2019-11-211-1/+1
|
* Add template repositories to comparison (#9101)John Olheiser2019-11-201-0/+1
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Fix nil context user (#9099)John Olheiser2019-11-201-1/+7
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Hide given credentials for migrated repos. (#9097)Jordan2019-11-202-1/+2
| | | | | | CloneAddr was being saved as OriginalURL. Now passing OriginalURL through from the form and saving it in it's place
* Refactor Issues Subscription (#8738)65432019-11-206-52/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * FIX: getIssueWatchers() get only aktive suscriber * save query to work later with it or not ... * fix test + add new case * corect tests + GetIssueWatch * API issue_subscripton: Put/Delete require tocken * remove redundant code * swagger specify return value * remove unused binding * remove note because I'll implement this in a different way and in another PR * ID should be unique! * use xorm session * Revert "use xorm session" This reverts commit c1de540147199f2f1a8dd0d008f54af3603e2229. * better test code * more acurate comments * use assert.False/True instead of Equal * use more assert methodes
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+10
|
* Team permission to create repository in organization (#8312)David Svantesson2019-11-2027-63/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add team permission setting to allow creating repo in organization. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add test case for creating repo when have team creation access. Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * build error: should omit comparison to bool constant Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Add comment on exported functions * Fix fixture consistency, fix existing unit tests * Fix boolean comparison in xorm query. * addCollaborator and changeCollaborationAccessMode separate steps More clear to use different if-cases. * Create and commit xorm session * fix * Add information of create repo permission in team sidebar * Add migration step * Clarify that repository creator will be administrator. * Fix some things after merge * Fix language text that use html * migrations file * Create repository permission -> Create repositories * fix merge * fix review comments
* Explore page: Add topic param to pagination (#9077) (#9078)David Svantesson2019-11-201-0/+2
|
* Fix doc example for asciidoc (#9072)guillep2k2019-11-201-2/+2
| | | | | | | | | | * Fix doc example for asciidoc * Update config-cheat-sheet.en-us.md * Update docs/content/doc/advanced/config-cheat-sheet.en-us.md Co-Authored-By: Lauris BH <lauris@nix.lv>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-201-0/+16
|
* update golang.org/x/crypto vendor to use acme v2 (#9056)techknowlogick2019-11-2052-2942/+3429
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-208-8/+0
|
* Fix password checks on admin create/edit user (#9076)guillep2k2019-11-201-3/+14
| | | | | | * Fix password checks on admin create/edit user * Remove incorrect trimspace
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-193-3/+2
|
* Add password requirement info on error (#9074)guillep2k2019-11-199-24/+72
| | | | | | | | | | | | | | * Add password requirement info on error * Move BuildComplexityError to the password pkg * Unexport complexity type * Fix extra line * Update modules/password/password.go Co-Authored-By: Lauris BH <lauris@nix.lv>
* Context menus for comments (#9043)John Olheiser2019-11-1910-63/+110
| | | | | * Add quote replies Signed-off-by: jolheiser <john.olheiser@gmail.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+1
|
* fix placeholders in the error message (#9060)Iwasa Kazmi2019-11-191-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-191-0/+5
|
* Avoid re-issuing redundant cross-references. (#8734)guillep2k2019-11-194-31/+56
| | | | | | | | | | * Avoid re-issuing redundant cross-references. * Remove unused func; fix lint * Simplify code as suggested by @laftriks * Update test
* fix: add search to reserved usernames (#9063)Antoine GIRARD2019-11-182-0/+2
| | | | | | | | * fix: add search to reserved usernames * Update integrations/user_test.go Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-1810-38/+9
|
* Allow authors to use act keywords in PR content (#9059)guillep2k2019-11-181-1/+6
|
* Close/reopen issues by keywords in titles and comments (#8866)guillep2k2019-11-187-46/+300
| | | | | | | | | | | | | | | | | | | | | | | | * Add close/reopen from comment functionality * Fix comment * Rewrite closing/reopening template * Check xref permissions, move action to services/pull * Fix RefIsPull field * Add xref tests * Fix xref unique filter * Only highlight keywords for actionable xrefs * Fix xref neuter filter * Fix check return status * Restart CI
* Rewrite delivery of issue and comment mails (#9009)guillep2k2019-11-1810-144/+250
| | | | | | | | | | | | | | | | * Mail issue subscribers, rework the function * Simplify a little more * Fix unused variable * Refactor mail delivery to avoid heavy load on server * Avoid splitting into too many goroutines * Fix comments and optimize GetMaileableUsersByIDs() * Fix return on errors
* Move modules/gzip to gitea.com/macaron/gzip (#9058)Lunny Xiao2019-11-1854-5154/+2963
| | | | | | * Move modules/gzip to gitea.com/macaron/gzip * Fix vendor
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-182-2/+1
|
* Fix double scroll in branch dropdown (#9048)Vedran2019-11-182-2/+1
| | | | | | | | | | * Fix double scroll in branch dropdown * Revert of 425ae38aa9ea3e9a25dee235aa9176762fe4bc5b * Changes in .less, generated new .css * Revert unnecessary commented line
* enable lazy-loading of gitgraph.js (#9036)silverwind2019-11-1723-655/+1313
| | | | | | | | | | | | | | | | | - moved gitgraph.js to web_src and made it importable and es6-compatible - created new webpack chunk for gitgraph - enabled CSS loader in webpack - enabled async/await syntax via regenerator-runtime - added script to ensure webpack chunks are loaded correctly - disable terser's comment extraction to prevent .LICENCE files gitgraph.js has many issues: 1. it is incompatible with ES6 because of strict-mode violations 1. it does not export anything 1. it's css has weird styles like for `body` 1. it is not available on npm I fixed points 1-3 in our version so it's now loadable in webpack. We should eventually consider alternatives.
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-171-0/+4
|
* wiki - add 'write' 'preview' buttons to wiki edit like in issues (#7241)Cherrg2019-11-178-2/+72
| | | | | | | | | | | | | | | | | | | | * Add add 'write' 'preview' buttons to wiki edit like in issues affects #6975 Signed-off-by: Michael Gnehr <michael@gnehr.de> * update dark theme Signed-off-by: Michael Gnehr <michael@gnehr.de> * fix css lint warnings - missing spaces Signed-off-by: Michael Gnehr <michael@gnehr.de> * hide preview button on no fullscreen toolbar Signed-off-by: Michael Gnehr <michael@gnehr.de>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-171-0/+40
|
* Add first issue comment hashtag (#9052)jaqra2019-11-171-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-172-0/+11
|
* Handle setting default branch via API (#9030)David Svantesson2019-11-172-1/+13
|
* Update branch API endpoint to show effective branch protection. (#9031)David Svantesson2019-11-165-9/+77
| | | | | | * Add API endpoint for displaying effective branch protection. * Add status checks.