Willem van Dreumel
8dd4d6d154
Oauth2 consumer ( #679 )
* 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)
8 years ago
Lunny Xiao
c66e9a52de
Use fingerprint to check instead content for public key ( #911 )
* use fingerprint to check instead content for public key
* add fingerprint field for ErrKeyAlreadyExist
8 years ago
Bo-Yi Wu
547ade89ca
fix: gofmt error. ( #918 )
8 years ago
Ethan Koenig
19ad4b31b5
Redirects for renamed repos ( #807 )
* Redirects for renamed repos
* Remove unused phrase from locales
8 years ago
Andrew
b739de4220
Two factor authentication support ( #630 )
* Initial commit for 2FA support
Signed-off-by: Andrew <write@imaginarycode.com>
* Add vendored files
* Add missing depends
* A few clean ups
* Added improvements, proper encryption
* Better encryption key
* Simplify "key" generation
* Make 2FA enrollment page more robust
* Fix typo
* Rename twofa/2FA to TwoFactor
* UNIQUE INDEX -> UNIQUE
8 years ago
Ethan Koenig
feb1506600
Fix typos in models/ ( #576 )
8 years ago
Schwobaland
37837ccf97
Restrict creating organisations by user ( #193 )
* restrict creating organizations based on right on user
* revert bindata.go
* reverse vendor lib
* revert goimports change
* set AllowCreateOrganization default value to true
* revert locale
* added default value for AllowCreateOrganization
* fix typo in migration-comment
* fix comment
* add coments in migration
8 years ago
Kim "BKC" Carlbäcker
b20aadde50
[API] Pull Requests ( #248 )
8 years ago
Sandro Santilli
b4a2534f35
Expand documentation a bit more
8 years ago
Sandro Santilli
1c0a52f0f0
Lint error.go
This was done semi-programmatically, not really documenting anything
8 years ago
Lunny Xiao
625227bbad
fixed bug #151 caused Find should be Get ( #153 )
8 years ago
Unknwon
1dca1999ed
models/login_source: code improvement
8 years ago
Unknwon
437ad0d136
#3515 use alert instead 500 for duplicated login source name
8 years ago
Unknwon
288bd17939
Web editor: support upload files
8 years ago
Unknwon
edc4bdf469
#2966 code cleanup
8 years ago
Unknwon
83ccca5e24
Code clean up for new config options
8 years ago
Richard Mahn
247e2fc567
Squashed commit of the following:
commit 0afcb843d7
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 17:13:29 2016 -0600
Removed Upload stats as the upload table is just a temporary table
commit 7ecd73ff55
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:42:41 2016 -0600
Fix for CodeMirror mode
commit c29b9ab531
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 08:03:33 2016 -0600
Made tabbing in editor use spaces
commit 23af384c53
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:56:46 2016 -0600
Fix for data-url
commit cfb8a97591
Merge: 7fc8a89 991ce42
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:42:53 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit 7fc8a89cb495478225b02d613e647f99a1489634
Merge: fd3d86c c03d040
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:40:00 2016 -0600
Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file
commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Sun Jul 31 07:39:44 2016 -0600
Code cleanup
commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 29 15:38:23 2016 -0600
Code cleanup
commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:36:01 2016 -0600
Code cleanup and fixes
commit c2895dc742f25f8412879c9fa15e18f27f42f194
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 18:24:04 2016 -0600
Fixes per Unknwon's requests
commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef
Merge: 889e9fa ad7ea88
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Thu Jul 28 17:13:43 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
modules/setting/setting.go
commit 889e9faf1bd8559a4979c8f46005d488c1a234d4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:09:18 2016 -0600
Fix in gogs.js
commit 47603edf223f147b114be65f3bd27bc1e88827a5
Merge: bb57912 cf85e9e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:07:36 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
public/js/gogs.js
commit bb5791255867a71c11a77b639db050ad09c597a4
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 22 14:02:18 2016 -0600
Update for using CodeMirror mode addon
commit d10d128c51039be19e2af9c66c63db66a9f2ec6d
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 16:12:57 2016 -0600
Update for Edit
commit 34a34982025144e3225e389f7849eb6273c1d576
Merge: fa1b752 1c7dcdd
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Tue Jul 19 11:52:02 2016 -0600
Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file
Conflicts:
modules/bindata/bindata.go
commit fa1b752be29cd455c5184ddac2ffe80b3489763e
Author: Richard Mahn <richard_mahn@wycliffeassociates.org>
Date: Fri Jul 15 18:35:42 2016 -0600
Feature for editing, creating, uploading and deleting files
8 years ago
Unknwon
ba4980ef92
#3290 better code structure and batch minor improvements
9 years ago
lstahlman
3c6f0f35f7
Additional API support for labels ( #3290 )
* Add API support for labels.
* Error handling for adding/replacing multiple issue labels
* Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions
* Additional code cleanup
9 years ago
Unknwon
41c8e6c524
#3076 detect invalid tag name git error
9 years ago
Franz Schmidt
602d1f4200
Fixes #3110 ( #3136 )
9 years ago
Unknwon
759a73fd9c
Minor fix for #2506
9 years ago
Unknwon
0c6f6be314
#2497 incorrect error handle for team name
9 years ago
Unknwon
466864bfcc
#1575 Limit repo creation
9 years ago
Unknwon
12020f4d74
APIs: admin users
9 years ago
Unknwon
316ca2d3e4
fix #976
9 years ago
Unknwon
7943f3f40e
wiki: finish edit
9 years ago
Unknwon
a0a4125989
fix #1383
9 years ago
Unknwon
3b28aed7f2
fix #878
9 years ago
Unknwon
c0b841a766
fix #1958
9 years ago
Unknwon
ac3cbc19e0
#1896 fatal when no needed update task
9 years ago
Unknwon
aa8a5f1292
#1511 Allow local import only for admin users
9 years ago
Unknwon
90a7cc5c46
work on #1818
9 years ago
Unknwon
7f1ca032b3
PR: nothing to commit and has pull request check
9 years ago
Unknwon
33b499ff2f
#842 able to use access token replace basic auth
9 years ago
Unknwon
315b183c66
work on PR conversation
9 years ago
Unknwon
eafb87f1d4
add webhook recent deliveries
9 years ago
Unknwon
087dc4917c
allow edit issue and comment
9 years ago
Unknwon
d16c228a08
finish view issue without comments and ops
9 years ago
Unknwon
7af7ee836c
finish attachments when create issue
10 years ago
Unknwon
389708ac36
finish create issue with milestone
10 years ago
Unknwon
cdcc2cee74
add migrate from issue.label_ids to issue_label
10 years ago
Unknwon
c95ef7c546
improve fork process
10 years ago
Unknwon
94654a8bf1
remove Index field of milestone
10 years ago
Unknwon
6f6ad6f3c9
#334 : Add Deployment Key Support
10 years ago
Unknwon
85096fabbc
Merge branch 'develop' of github.com:gogits/gogs into feature/milestone
# Conflicts:
# gogs.go
# models/issue.go
# templates/.VERSION
10 years ago
Unknwon
8504baffed
milestone: edit
10 years ago
Unknwon
893b66bcac
allow anonymous SSH clone
10 years ago
Unknwon
dd7f3e9f60
#1070 Clearer error message for illegal characters
10 years ago
Unknwon
4ec2e465f9
#1067 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
10 years ago