You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When logging in using brokered authentication (using Microsoft authenticator) I get an infinite loop. When calling the login function it will open Microsoft authenticator and I can select my account, and it will start loading, but the loading animation of the Authenticator app rapidly appears and disappears. At the same time in Logcat I see a bunch of error being thrown. I believe Authenticator tries to call back to the app but fails to do so. When it stops showing the loading animation it will say on Authenticator it can't log me in and prompts me for my user credentials. At this moment nothing is being thrown anymore in Logcat and this error is present
E FATAL EXCEPTION: main
Process: MYBUNDLEID, PID: 25699
java.lang.RuntimeException: Unable to instantiate application MYBUNDLEID.MainActivity package MYBUNDLEID: java.lang.ClassCastException: MYBUNDLEID.MainActivity cannot be cast to android.app.Application
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1466)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1395)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6816)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:227)
at android.os.Looper.loop(Looper.java:327)
at android.app.ActivityThread.main(ActivityThread.java:7995)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
Caused by: java.lang.ClassCastException: MYBUNDLEID.MainActivity cannot be cast to android.app.Application
at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:76)
at androidx.core.app.CoreComponentFactory.instantiateApplication(CoreComponentFactory.java:52)
at android.app.Instrumentation.newApplication(Instrumentation.java:1233)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1458)
at android.app.LoadedApk.makeApplicationInner(LoadedApk.java:1395)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6816)
at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2155)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:227)
at android.os.Looper.loop(Looper.java:327)
at android.app.ActivityThread.main(ActivityThread.java:7995)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:942)
--------- beginning of kernel
I appended the activity block in the manifest file as per shown on the docs and registered the plugin like so:
When logging in using brokered authentication (using Microsoft authenticator) I get an infinite loop. When calling the login function it will open Microsoft authenticator and I can select my account, and it will start loading, but the loading animation of the Authenticator app rapidly appears and disappears. At the same time in Logcat I see a bunch of error being thrown. I believe Authenticator tries to call back to the app but fails to do so. When it stops showing the loading animation it will say on Authenticator it can't log me in and prompts me for my user credentials. At this moment nothing is being thrown anymore in Logcat and this error is present
I appended the activity block in the manifest file as per shown on the docs and registered the plugin like so:
Thanks in advance!
The text was updated successfully, but these errors were encountered: