diff options
author | zeripath <art27@cantab.net> | 2021-09-10 17:37:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 18:37:57 +0200 |
commit | 9ca0e7905c24f18ed246e65397589f0f41b50506 (patch) | |
tree | 5c0c03dc297f47e7f60711563efbaf87993463a6 /services/auth | |
parent | 51578d64188a7077848cb60d3ead8e818637ab59 (diff) | |
download | gitea-9ca0e7905c24f18ed246e65397589f0f41b50506.tar.gz gitea-9ca0e7905c24f18ed246e65397589f0f41b50506.zip |
Add setting to OAuth handlers to skip local 2FA authentication (#16594)
This PR adds a setting to OAuth and OpenID login sources to allow the source to
skip local 2FA authentication.
Fix #13939
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'services/auth')
-rw-r--r-- | services/auth/source/oauth2/source.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/auth/source/oauth2/source.go b/services/auth/source/oauth2/source.go index 40d8973b4b..7b22383d7e 100644 --- a/services/auth/source/oauth2/source.go +++ b/services/auth/source/oauth2/source.go @@ -24,6 +24,7 @@ type Source struct { OpenIDConnectAutoDiscoveryURL string CustomURLMapping *CustomURLMapping IconURL string + SkipLocalTwoFA bool // reference to the loginSource loginSource *models.LoginSource |