Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LineLoginApi.getLoginIntent throws javax.crypto.KeyGenerator.generateKey exception #167

Open
kightsonsanom opened this issue May 8, 2024 · 0 comments

Comments

@kightsonsanom
Copy link

What did you do?

Tried to create login intent:

val authParams = LineAuthenticationParams.Builder()
            .scopes(listOf(Scope.PROFILE, Scope.OPENID_CONNECT, Scope.OC_EMAIL))
            .build()

val intent = LineLoginApi.getLoginIntent(context, "mychannelId", authParams)

The issue happens only to some users, in most cases it works fine. Happens on different devices and Android version, we couldn't find any relation between them.

What did you expect?

Intent created properly

What happened actually?

Exception is thrown

android.security.keystore2.AndroidKeyStoreKeyGeneratorSpi.engineGenerateKey (AndroidKeyStoreKeyGeneratorSpi.java:413)
javax.crypto.KeyGenerator.generateKey (KeyGenerator.java:612)
com.linecorp.android.security.encryption.StringAesCipher.createAesKey (StringAesCipher.kt:132)
com.linecorp.android.security.encryption.StringAesCipher.getAesSecretKey (StringAesCipher.kt:98)
com.linecorp.android.security.encryption.StringAesCipher.initialize (StringAesCipher.kt:36)
com.linecorp.linesdk.internal.EncryptorHolder$EncryptorInitializationTask.run (EncryptorHolder.java:48)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1137)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:637)
java.lang.Thread.run (Thread.java:1012)

Your environment?

Line SDK version: 5.10.0
Android Studio version: Android Studio Iguana | 2023.2.1
Happens on different devices and android versions. Highest Android version of reported crash is Android 13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant