Skip to content

Commit 73420cc

Browse files
Merge pull request #442 from okta/follow_redirects_fix
Don't follow redirects for OkHttp
2 parents 6b51a4a + f00765b commit 73420cc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 2.17.0
2+
- Don't follow redirects for OkHttp. This fixes MFA issues when using classic Okta and session token login.
3+
14
# 2.16.0
25
- Fix vulnerabilities and remove jsonpath-plus. Thanks to [vero1024](https://github.com/vero1024) for contribution in this release!
36

android/src/main/java/com/oktareactnative/HttpClientImpl.java

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ protected Request buildRequest(Uri uri, ConnectionParameters param) {
6262
sOkHttpClient = new OkHttpClient.Builder()
6363
.connectTimeout(connectTimeoutMs, TimeUnit.MILLISECONDS)
6464
.readTimeout(readTimeoutMs, TimeUnit.MILLISECONDS)
65+
.followRedirects(false)
6566
.build();
6667
}
6768
Request.Builder requestBuilder = new Request.Builder().url(uri.toString());

0 commit comments

Comments
 (0)