Commit Graph

83 Commits (e882398c5acb99db555553acc2da89db73713710)

Author SHA1 Message Date
wxiaoguang 4e2f1ee58d
Refactor web package and context package (#25298) 1 year ago
wxiaoguang 6b33152b7d
Decouple the different contexts from each other (#24786) 2 years ago
wxiaoguang 5d77691d42
Improve template system and panic recovery (#24461) 2 years ago
wxiaoguang 92fd3fc4fd
Refactor "route" related code, fix Safari cookie bug (#24330) 2 years ago
yp05327 61d08f446a
Fix wrong error info in RepoRefForAPI (#24344) 2 years ago
Yarden Shoham af0468ed8d
Set `X-Gitea-Debug` header once (#23361) 2 years ago
KN4CK3R e8186f1c0f
Map OIDC groups to Orgs/Teams (#21441) 2 years ago
Lunny Xiao ca67c5a8a7
refactor auth interface to return error when verify failure (#22119) 2 years ago
Jason Song 6cf09ccab4
Use complete SHA to create and query commit status (#22244) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
silverwind 14178c56bb
Add Cache-Control header to html and api responses, add no-transform (#20432) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 2 years ago
wxiaoguang 04fc4b7e05
Call MultipartForm.RemoveAll when request finishes (#19606) 3 years ago
6543 e2a3f3d259
Federation: return useful statistic information for nodeinfo (#19561) 3 years ago
John Olheiser 3c140f0d42
Use router param for filepath in GetRawFile (#19499) 3 years ago
6543 c764355676
RepoAssignment ensure to close before overwrite (#19449) 3 years ago
Lunny Xiao 3c3d49899f
Remove dependent on session auth for api/v1 routers (#19321) 3 years ago
Lunny Xiao 783a021889
Never use /api/v1 from Gitea UI Pages (#19318) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes (#18063) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
zeripath 5cb0c9aa0d
Propagate context and ensure git commands run in request context (#17868) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
Gusted e4e3df6c66
Handle invalid issues (#18111) 3 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 3 years ago
Lunny Xiao 719bddcd76
Move repository model into models/repo (#17933) 3 years ago
zeripath 0fa41b6dc4
Reset locale on login (#17734) 3 years ago
zeripath f8ec43dbc7
Extract constant names out for the ReverseProxy and Basic authentication methods (#17735) 3 years ago
Lunny Xiao f494776931
Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
Lunny Xiao 91e21d4fca
Move twofactor to models/login (#17143) 3 years ago
zeripath 27b351aba5
Make LDAP be able to skip local 2FA (#16954) 3 years ago
6543 2289580bb7
[API] generalize list header (#16551) 3 years ago
zeripath afd88a2418
Allow setting X-FRAME-OPTIONS (#16643) 3 years ago
zeripath 7c4172ef71
Pass down SignedUserName down to AccessLogger context (#16605) 3 years ago
Lunny Xiao 33e0b38287
Rename context.Query to context.Form (#16562) 3 years ago
zeripath 5d2e11eedb
Refactor: Move login out of models (#16199) 3 years ago
Lunny Xiao fb3ffeb18d
Add sso.Group, context.Auth, context.APIAuth to allow auth special routes (#16086) 4 years ago
6543 16dea6cebd
[refactor] replace int with httpStatusCodes (#15282) 4 years ago
Lunny Xiao 5e20fd6dbf
Move middlewares to web/middleware (#14480) 4 years ago
Lunny Xiao 0cd87d64ff
Update docs and comments to remove macaron (#14491) 4 years ago
Lunny Xiao 6433ba0ec3
Move macaron to chi (#14293) 4 years ago
6543 4acb499f30
just overload to not get it by mistake again ... (#14440) 4 years ago
Kevin Zúñiga 247ab6a922
Send error message when CSRF token is missing (#13676) 4 years ago
6543 7d2700c8be
[API] Only Return Json (#13511) 4 years ago
John Olheiser b5e974c8a5
Delete tag API (#13358) 4 years ago
6543 ade9c8dc3c
[API] If User is Admin, show 500 error message on PROD mode too (#13115) 4 years ago
successgo 4dee08a6b4
Fix typo (#12013) 4 years ago
zeripath f761a37a0f
Provide diff and patch API endpoints (#11751) 5 years ago
6543 ce7510a80f
[API] on 500 error only show message if gitea in dev mode (#11641) 5 years ago