Commit Graph

36 Commits (58536093b3112841bc69edb542189893b57e7a47)

Author SHA1 Message Date
Denys Konovalov 7d855efb1f
Allow for PKCE flow without client secret + add docs (#25033) 1 year ago
Gary Moon ab42c139a2
Respect the REGISTER_MANUAL_CONFIRM setting when registering via OIDC (#24035) 2 years ago
wxiaoguang 5b9557aef5
Refactor cookie (#24107) 2 years ago
wxiaoguang fdbd646113
Group template helper functions, remove `Printf`, improve template error messages (#23982) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
KN4CK3R e8186f1c0f
Map OIDC groups to Orgs/Teams (#21441) 2 years ago
Sybren 95e8ea9440
Allow setting `redirect_to` cookie on OAuth login (#22594) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
Jason Song 1d22911cfe
Extract updateSession function to reduce repetition (#21735) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
M Hickford 191a74d622
Record OAuth client type at registration (#21316) 2 years ago
M Hickford afebbf29a9
Require authentication for OAuth token refresh (#21421) 2 years ago
KN4CK3R 1713beb73b
Suppress `ExternalLoginUserNotExist` error (#21504) 2 years ago
qwerty287 a902af75f4
Support instance-wide OAuth2 applications (#21335) 2 years ago
M Hickford 34f509eb7a
Parse OAuth Authorization header when request omits client secret (#21351) 2 years ago
M Hickford 0e83ab8df7
Improve error descriptions for unauthorized_client (#21292) 2 years ago
Lunny Xiao 1d8543e7db
Move some files into models' sub packages (#20262) 2 years ago
SteveTheEngineer 1e2c2edab6
Catch the error before the response is processed by goth. (#20000) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 2 years ago
oGi4i 9068c784c8
Use DisplayName() instead of FullName in Oauth provider (#19991) 2 years ago
Mai-Lapyst 4698a1ec47
Adding button to link accounts from user settings (#19792) 3 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Jimmy Praet 5aebc4f000
Respect DefaultUserIsRestricted system default when creating new user (#19310) 3 years ago
wxiaoguang 84ceaa98bd
Refactor CSRF protection modules, make sure CSRF tokens can be up-to-date. (#19337) 3 years ago
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes (#18063) 3 years ago
wxiaoguang 7a550b3af2
Use `ctx` instead of `db.DefaultContext` in some packages(routers/services/modules) (#19163) 3 years ago
KN4CK3R 80fd25524e
Renamed ctx.User to ctx.Doer. (#19161) 3 years ago
zeripath 1c5afd17ee
Prevent panic on prohibited user login with oauth2 (#18562) 3 years ago
zeripath 7d452558f0
Fix OAuth Source Edit Page (#18495) 3 years ago
zeripath 44deae8f3d
Refactor jwt.StandardClaims to RegisteredClaims (#18344) 3 years ago
6543 54e9ee37a7
format with gofumpt (#18184) 3 years ago
wxiaoguang 6fba174606
Fix incorrect OAuth message (#18332) 3 years ago
Lunny Xiao 35c3553870
Support webauthn (#17957) 3 years ago
KN4CK3R e30b20dc68
Show OAuth callback error message (#18185) 3 years ago
Lunny Xiao de8e3948a5
Refactor auth package (#17962) 3 years ago
Gusted ff2fd08228
Simplify parameter types (#18006) 3 years ago
wxiaoguang 4da1d97810
Refactor HTTP request context (#17979) 3 years ago
Lunny Xiao a666829a37
Move user related model into models/user (#17781) 3 years ago
Lunny Xiao 7a03473159
Use a standalone struct name for Organization (#17632) 3 years ago
zeripath bbffcc3aec
Multiple Escaping Improvements (#17551) 3 years ago
Nico Schieder 870f5fbc41
Add groups scope/claim to OIDC/OAuth2 Provider (#17367) 3 years ago
Lunny Xiao 5842a55b31
Move login related structs and functions to models/login (#17093) 3 years ago
KN4CK3R 88abb0dc8a
Decoupled code from DefaultSigningKey (#16743) 3 years ago
Aliaksandr Mianzhynski 28ac4a7a87
Add EdDSA JWT signing algorithm (#16786) 3 years ago
KN4CK3R 0bd58d61e5
Added introspection endpoint. (#16752) 3 years ago
KN4CK3R 4debb74eda
Fix wrong user in OpenID response (#16736) 3 years ago
Lunny Xiao 9f31f3aa8a
Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
techknowlogick 29a22ade82
switch to maintained lib (#16532) 3 years ago
zeripath 5d2e11eedb
Refactor: Move login out of models (#16199) 3 years ago