-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
local auth flag is expected as part of post body
In the authenticate_user endpoint, the local auth flag is expected as part of the body - but existing logic was expecting it as a query parameter. This change addresses that,and also changes the order of operations so that local auth takes precedence over any ldap checks. This gives us minimum degree of testability of local auth option in our current pedant environment. Finally this change tightens handling of 'local'. Under opscode-account if "local" was present and non-false it was assumed 'true'. Now it must explicitly be 'true' for it to be accepted.
- Loading branch information
1 parent
5c52f73
commit 37887e4
Showing
2 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters