Skip to content

Commit

Permalink
Merge pull request #442 from okta/follow_redirects_fix
Browse files Browse the repository at this point in the history
Don't follow redirects for OkHttp
  • Loading branch information
rajdeepnanua-okta authored Dec 18, 2024
2 parents 6b51a4a + f00765b commit 73420cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 2.17.0
- Don't follow redirects for OkHttp. This fixes MFA issues when using classic Okta and session token login.

# 2.16.0
- Fix vulnerabilities and remove jsonpath-plus. Thanks to [vero1024](https://github.com/vero1024) for contribution in this release!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ protected Request buildRequest(Uri uri, ConnectionParameters param) {
sOkHttpClient = new OkHttpClient.Builder()
.connectTimeout(connectTimeoutMs, TimeUnit.MILLISECONDS)
.readTimeout(readTimeoutMs, TimeUnit.MILLISECONDS)
.followRedirects(false)
.build();
}
Request.Builder requestBuilder = new Request.Builder().url(uri.toString());
Expand Down

0 comments on commit 73420cc

Please sign in to comment.