Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement AnyAuth Proxy Authentication support
* includes refactorings for improved testability Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: add go get to download gomock Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: check in generated mock Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: added additional test cases refactored common test code Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: add simple minimal test for GetToken() Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: added comment Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: improve proxy tests Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: introduce case insensitive mechanisms and … … support for AnyAuth, which selects out of multiple mechanisms proposed by the proxy Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: updating cache file which expired … … will look into a more permanent solution later Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: minor improvements Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: fix and add tests Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: adapt/fix test Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: adapt to handle tcp reconnect on anyauth Any initial connection without authorization values will be closed by the proxy and a new connection has to be established * some minor refactorings and logging improvements Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: improve docker checks in acceptance tests Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: add ntlm and basic fake auth to proxy config Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: simplify proxy test * includes renaming of IsSupportMechanism() Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: move mock server out of specific test … … for better re-use Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: move some things into httpauth to enable … … creating a module from it Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: use docker based proxy if possible … … to avoid expired checked in files Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: fix and improve test Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: increase timeout and add log message Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: attempt to make test run in CI Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: attempt to make test run in CI Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: attempt to make test run in CI Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: attempt to make test run in CI Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: apply prettier Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> test: added unit test for AuthenticationHandler Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> chore: run go mod tidy Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com> Signed-off-by: Peter Schäfer <101886095+PeterSchafer@users.noreply.github.com>
- Loading branch information
1 parent
a05a766
commit 467b621
Showing
21 changed files
with
1,480 additions
and
258 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
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
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
Oops, something went wrong.