Skip to content

Commit 5e3b605

Browse files
committed
Robolectric 4.14+ uses Conscrypt as the crypto provider on Linux,
which causes NullPointerException at OpenSSLKey.java:242 when handling RSA keys created from PEM/PKCS8 specs.
1 parent 14838a9 commit 5e3b605

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auth0/src/test/java/com/auth0/android/provider/WebAuthProviderTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import org.mockito.MockitoAnnotations
5656
import org.robolectric.Robolectric
5757
import org.robolectric.RobolectricTestRunner
5858
import org.robolectric.annotation.Config
59+
import org.robolectric.annotation.ConscryptMode
5960
import org.robolectric.shadows.ShadowLooper
6061
import java.io.ByteArrayInputStream
6162
import java.io.InputStream
@@ -1538,7 +1539,7 @@ public class WebAuthProviderTest {
15381539
}
15391540

15401541

1541-
// TODO: https://auth0team.atlassian.net/browse/SDK-7752
1542+
@ConscryptMode(ConscryptMode.Mode.OFF)
15421543
@Test
15431544
@Throws(Exception::class)
15441545
public fun shouldFailToResumeLoginWhenRSAKeyIsMissingFromJWKSet() {
@@ -1678,7 +1679,7 @@ public class WebAuthProviderTest {
16781679
}
16791680

16801681

1681-
//TODO: https://auth0team.atlassian.net/browse/SDK-7752
1682+
@ConscryptMode(ConscryptMode.Mode.OFF)
16821683
@Test
16831684
@Throws(Exception::class)
16841685
public fun shouldFailToResumeLoginWhenKeyIdIsMissingFromIdTokenHeader() {

0 commit comments

Comments
 (0)