google / android-kerberos-authenticator

Apache License 2.0
27 stars 10 forks source link

Kerberos Authenticator app stop working on Android 10 #1

Open arturjakubiec opened 4 years ago

arturjakubiec commented 4 years ago

Kerberos Authenticator app work properly on Android below 10 but the same has stopped working on Android 10. App crashed immediately after authentication try.

Here is the place where app stop working: https://github.com/JetBrains/jdk8u_jdk/blob/master/src/share/classes/sun/security/krb5/internal/util/KerberosFlags.java#L64

Additional information from logcat: Caused by: java.lang.NoSuchMethodError: No direct method <init>(I)V in class Lsun/security/util/BitArray; or its super classes (declaration of 'sun.security.util.BitArray' appears in /apex/com.android.runtime/javalib/core-oj.jar)

nguyenjefflee commented 4 years ago

is it working now for Android 10?

AJB78 commented 2 years ago

Hi Gents,

any solution here on this Topic? - i face the same issue.

Thanks

eranmes commented 2 years ago

Sorry, but AFAIK this app is no longer in active development. We can take pull requests to fix the issue. A simple solution would be to include the BitArray source in the classes we bundle with the project.

AJB78 commented 2 years ago

Hi Eranmes,

many many thanks for your very fast answer. It were very helpfull when you can fix this issue by including this BitArray source.

Many thanks and Best regards, Andre

AJB78 commented 2 years ago

Hi Eranmes,

after including the bundled openjdk-kerberos source into the project directly and changing the conflicting namespaces of Bitarray classes the kerberos Authenticator app is working again on Android 11.

The first kerberos authentication request succeeded but the next service is called throws an exception as you can see here in the screenshot :

image

On Android 8, after the first authentication request there pops up a window with "choose an account" and then i can choose the account and all other kerberos requests are working fine. On Android 11 this popup is missing. It looks like there is something different on Android 11 Account Manager ?

Here is the Screenshot of the popup window what is missing on Android 11 :

image

Thanks and Best Regards, Andre

eranmes commented 2 years ago

@AJB78 if you have a fix for the issue I suggest you send a pull request, then we can handle the permission error you're encountering separately.

AJB78 commented 2 years ago

Hi Eran,

i only changed the namespace conflict in your openjdk-kerberos project classes. So i think we need the pull request on the openjdk-kerberos project there is allready the issue described by mhadidg.

Please tell me if its okay for you and i can make this pull request and we can go over to the permission problem we facing actuaklly.

Thanks and best regards, Andre

pixeriksen commented 1 year ago

I was struggling with the same issue. We ended up going for a commercial solution which is well supported.

AJB78 commented 1 year ago

Hi pixeriksen,

i fixed this issue and its working fine ...

BR Andre

ars-osipov commented 1 year ago

Hi pixeriksen,

i fixed this issue and its working fine ...

BR Andre

Hi Andre,

How did you fix this? Maybe you could share fixed source code or a compiled apk if possible?

Thanks in advance.

BR, Ars

ars-osipov commented 1 year ago

Gents, could anyone be so kind to share a working APK for Android 11+ please?

Thanks!

pixeriksen commented 1 year ago

Gents, could anyone be so kind to share a working APK for Android 11+ please?

Thanks!

This might not be the answer you are looking for, but as mentioned above, we switched to a commercial solution: Hypergate they offer commercial support for an Android kerberos authenticator, which works with any recent Android version. Furthermore it offers certificate based authentication which is a must for our use case.

nguyenjefflee commented 1 year ago

we used the same Hypergate and certificate based auth at my company. works very well. if you want to connect to a reseller we used me know. I can shared.

On Wed, Sep 27, 2023 at 10:00 AM Alix Eriksen @.***> wrote:

Gents, could anyone be so kind to share a working APK for Android 11+ please?

Thanks!

This might not be the answer you are looking for, but as mentioned above, we switched to a commercial solution: Hypergate https://hypergate.com/authenticator/ they offer commercial support for an Android kerberos authenticator, which works with any recent Android version. Furthermore it offers certificate based authentication which is a must for our use case.

— Reply to this email directly, view it on GitHub https://github.com/google/android-kerberos-authenticator/issues/1#issuecomment-1737461723, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQSCIKL3TIDJ4COJEWG3C7LX4QWQJANCNFSM4MDDAWIA . You are receiving this because you commented.Message ID: @.***>