You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/modules
zeripath 0981ec30c3
Add Option to synchronize Admin & Restricted states from OIDC/OAuth2 along with Setting Scopes (#16766)
* Add setting to OAuth handlers to override local 2FA settings

This PR adds a setting to OAuth and OpenID login sources to allow the source to
override local 2FA requirements.

Fix #13939

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Fix regression from #16544

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Add scopes settings

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fix trace logging in auth_openid

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add required claim options

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Move UpdateExternalUser to externalaccount

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Allow OAuth2/OIDC to set Admin/Restricted status

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Allow use of the same group claim name for the prohibit login value

Signed-off-by: Andrew Thornton <art27@cantab.net>

* fixup! Move UpdateExternalUser to externalaccount

* as per wxiaoguang

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add label back in

Signed-off-by: Andrew Thornton <art27@cantab.net>

* adjust localisation

Signed-off-by: Andrew Thornton <art27@cantab.net>

* placate lint

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago
..
activitypub Create pub/priv keypair for federation (#17071) 3 years ago
analyze Use git attributes to determine generated and vendored status for language stats and diffs (#16773) 3 years ago
appstate Decouple unit test code from business code (#17623) 3 years ago
auth Add bundle download for repository (#14538) 3 years ago
avatar Add user settings key/value DB table (#16834) 3 years ago
base Fixed assert statements. (#16089) 3 years ago
cache Test cache during init (#17852) 3 years ago
charset Read expected buffer size (#17409) 3 years ago
context Improve behavior of "Fork" button (#17288) 3 years ago
convert Some repository refactors (#17950) 3 years ago
csv Properly determine CSV delimiter (#17459) 3 years ago
doctor Move keys to models/asymkey (#17917) 3 years ago
emoji Run processors on whole of text (#16155) 3 years ago
eventsource Add an abstract json layout to make it's easier to change json library (#16528) 3 years ago
generate switch to maintained lib (#16532) 3 years ago
git Improve checkBranchName (#17901) 3 years ago
gitgraph Move keys to models/asymkey (#17917) 3 years ago
graceful Make SSL cipher suite configurable (#17440) 3 years ago
hcaptcha hCaptcha Support (#12594) 4 years ago
highlight Add .gitattribute assisted language detection to blame, diff and render (#17590) 3 years ago
hostmatcher Use `hostmatcher` to replace `matchlist`, improve security (#17605) 3 years ago
httpcache Use a variable but a function for IsProd because of a slight performance increment (#17368) 3 years ago
httplib refactor: move from io/ioutil to io and os package (#17109) 3 years ago
indexer Move repository model into models/repo (#17933) 3 years ago
json Move repository model into models/repo (#17933) 3 years ago
lfs Use `hostmatcher` to replace `matchlist`, improve security (#17605) 3 years ago
log A better go code formatter, and now `make fmt` can run in Windows (#17684) 3 years ago
markup Fix markdown URL parsing (#17924) 3 years ago
metrics Add metrics to get issues by repository (#17225) 3 years ago
migration Use fmt.Sprintf correctly (#17886) 3 years ago
nosql Remove unnecessary variable assignments (#17695) 3 years ago
notification Some repository refactors (#17950) 3 years ago
options refactor: move from io/ioutil to io and os package (#17109) 3 years ago
password Fixed assert statements. (#16089) 3 years ago
pprof refactor: move from io/ioutil to io and os package (#17109) 3 years ago
private Move keys to models/asymkey (#17917) 3 years ago
process Make Requests Processes and create process hierarchy. Associate OpenRepository with context. (#17125) 3 years ago
proxy Return nil proxy function if proxy not enabled (#16742) 3 years ago
public refactor: move from io/ioutil to io and os package (#17109) 3 years ago
queue Prevent deadlock in TestPersistableChannelQueue (#17717) 3 years ago
recaptcha refactor: move from io/ioutil to io and os package (#17109) 3 years ago
references Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
repository Some repository refactors (#17950) 3 years ago
secret Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
session Move session to models/login (#17338) 3 years ago
setting allways set a message-id on mails (#17900) 3 years ago
ssh Move keys to models/asymkey (#17917) 3 years ago
storage refactor: move from io/ioutil to io and os package (#17109) 3 years ago
structs Add migrate from Codebase (#16768) 3 years ago
svg refactor: move from io/ioutil to io and os package (#17109) 3 years ago
sync Fix missing unlock in uniquequeue (#9790) 5 years ago
templates Add Option to synchronize Admin & Restricted states from OIDC/OAuth2 along with Setting Scopes (#16766) 3 years ago
test Move repository model into models/repo (#17933) 3 years ago
timeutil Allow mocking timeutil (#17354) 3 years ago
translation Use index of the supported tags to choose user lang (#15452) 3 years ago
typesniffer Read expected buffer size (#17409) 3 years ago
updatechecker Refactor update checker to use AppState (#17387) 3 years ago
upload Replace regex usage for MIME parsing (#17831) 3 years ago
uri Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244) 4 years ago
user Add gitea-vet (#10948) 4 years ago
util Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 3 years ago
validation Upgrade chi to v5 (#17298) 3 years ago
web Remove unnecessary variable assignments (#17695) 3 years ago