@@ -1555,10 +1555,6 @@ public class WebAuthProviderTest {
15551555 .start(activity, authCallback)
15561556 val managerInstance = WebAuthProvider .managerInstance as OAuthManager
15571557 managerInstance.currentTimeInMillis = JwtTestUtils .FIXED_CLOCK_CURRENT_TIME_MS
1558- // Hardcoded RS256 JWT with kid="key123". Avoids calling JwtTestUtils.createTestJWT("RS256")
1559- // which invokes KeyFactory.getInstance("RSA") — this crashes under Conscrypt on Linux CI.
1560- // The JWKS mock returns empty keys, so the key lookup fails before any RSA operations.
1561- // Header: {"alg":"RS256","typ":"JWT","kid":"key123"}, Payload: {"sub":"test"}
15621558 val expectedIdToken = " eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImtleTEyMyJ9.eyJzdWIiOiJ0ZXN0In0.fakesignature"
15631559 val intent = createAuthIntent(
15641560 createHash(
@@ -1582,7 +1578,6 @@ public class WebAuthProviderTest {
15821578 Date (),
15831579 " codeScope"
15841580 )
1585- // Mock JWKS response with empty keys (no matching RSA key for kid)
15861581 val emptyJwksJson = """ {"keys": []}"""
15871582 val jwksInputStream: InputStream = ByteArrayInputStream (emptyJwksJson.toByteArray())
15881583 val jwksResponse = ServerResponse (200 , jwksInputStream, emptyMap())
@@ -1720,10 +1715,6 @@ public class WebAuthProviderTest {
17201715 Date (),
17211716 " codeScope"
17221717 )
1723- // Use empty JWKS to avoid JwksDeserializer calling KeyFactory.getInstance("RSA") on every
1724- // key in rsa_jwks.json — that call crashes under Conscrypt on Linux CI.
1725- // An empty JWKS still yields PublicKeyNotFoundException(null) since no key with kid=null
1726- // is found, which is exactly what this test asserts.
17271718 val emptyJwksJson = """ {"keys": []}"""
17281719 val jwksInputStream: InputStream = ByteArrayInputStream (emptyJwksJson.toByteArray())
17291720 val jwksResponse = ServerResponse (200 , jwksInputStream, emptyMap())
0 commit comments