-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Make LDAP be able to skip local 2FA #16954
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ceaf11c
cb6b4c2
11e6c82
bbccfc7
564222a
4dcef70
407e8ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,6 @@ import ( | |
func (source *Source) Authenticate(user *models.User, login, password string) (*models.User, error) { | ||
return db.Authenticate(user, login, password) | ||
} | ||
|
||
// NB: Oauth2 does not implement LocalTwoFASkipper for password authentication | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a nit that didn't make it into #16594 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. Oauth2 Password authentication is simply a fall back to local DB source and so its skip local 2fa does not apply on that source. This is a weirdness because of the broken way in which we have specialised the local db instead of just making it a source of authentication just like all of the others. I have ideas for how to fix this but it's quite fiddly. |
||
// as its password authentication drops to db authentication |
Uh oh!
There was an error while loading. Please reload this page.