Skip to content

Commit

Permalink
Don't follow redirects for OkHttp
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdeepnanua-okta committed Dec 18, 2024
1 parent 6b51a4a commit f00765b
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 f00765b

Please sign in to comment.