auth0 / Auth0.Android

Android toolkit for Auth0 API
https://auth0.com
MIT License
208 stars 130 forks source link

UnsupportedOperationException thrown on Chromebooks #710

Open vrozin opened 6 months ago

vrozin commented 6 months ago

Checklist

Description

Hey folks, I've gotten an UnsupportedOperationException thrown exclusively on Intel Gemini Lake Chromebook and Mediatek MT8183 Chromebook.

The stack-trace is as follows:

Fatal Exception: java.lang.UnsupportedOperationException:
       at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:492)
       at java.security.KeyStore.getEntry(KeyStore.java:1560)
       at com.auth0.android.authentication.storage.CryptoUtil.getKeyEntryCompat(CryptoUtil.java:221)
       at com.auth0.android.authentication.storage.CryptoUtil.getRSAKeyEntry(CryptoUtil.java:108)
       at com.auth0.android.authentication.storage.CryptoUtil.RSADecrypt(CryptoUtil.java:272)
       at com.auth0.android.authentication.storage.CryptoUtil.getAESKey(CryptoUtil.java:372)
       at com.auth0.android.authentication.storage.CryptoUtil.decrypt(CryptoUtil.java:416)
       at com.auth0.android.authentication.storage.SecureCredentialsManager.continueGetCredentials$lambda-3(SecureCredentialsManager.kt:467)

Reproduction

Unfortunately, there's no Chromebook in sight, so couldn't replicate the issue.

Additional context

No response

Auth0.Android version

2.9.3

Android version(s)

Android 11 (API 30)