question

newuser-076affb7-e350-4762-a328-60df80f8ff21 avatar image

java.lang.IllegalArgumentException: Invalid API Key (Android 9)

The issue occurs only on Android 9 +.

Please see below details.

com.amazon.identity.auth.device.utils.JWTDecoder: Failed to decode: The BC provider no longer provides an implementation for Signature.SHA256withRSA. Please see https://android-developers.googleblog.com/2018/03/cryptography-changes-in-android-p.html for more details.

report
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Levon@Amazon avatar image
Levon@Amazon answered

Hi there,

Please describe your setup. It's not clear what software, OS, device and Amazon service you are using (I assume it's Login with Amazon, but please provide as much details as possible).

If you are using Login with Amazon and specifying a provider (in this case BC or Bouncy Castle), then to resolve this issue, you should stop specifying a provider and use the default implementation. Thanks!

Reference:

https://android-developers.googleblog.com/2018/03/cryptography-changes-in-android-p.html

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.