Skip to content
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

Add proxy server support #24

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Add proxy server support #24

merged 4 commits into from
Oct 31, 2023

Conversation

eosmith
Copy link
Contributor

@eosmith eosmith commented Oct 25, 2023

Description

Add http proxy server support

Motivation and Context

These updates allow a Client to be created that routes requests through an http proxy server.
This will resolve issue #12

How Has This Been Tested?

This was tested using our organizations proxy server to successfully connect to an application created in our Duo account. A new test was not added as connecting through a live proxy server is organization dependent.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Restore code to display response.errorBody if it's not null.
Restore exception message format to match the format in the exchangeAuthorizationCodeFor2FAResult_error_code test.
Copy link
Contributor

@yizshi yizshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks really good! Thank you so much for adding proxy server support this this repo. I am sure a lot people would appreciate this feature too!

@yizshi yizshi merged commit 5c89d6d into duosecurity:main Oct 31, 2023
1 check passed
@eosmith
Copy link
Contributor Author

eosmith commented Oct 31, 2023

This looks really good! Thank you so much for adding proxy server support this this repo. I am sure a lot people would appreciate this feature too!

You're welcome and thank you so much for your review and help to get this added!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants