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
I have a react native app where i have integrated OKTA using this library and all seems to work good but when i tried to log out i call below method and it crash with the below exception :-
let config = createConfigOktaObject( <--- my custom function to create okta object configObject.OktaDomain, configObject.ClientId, ); createConfig(config); signOut(); <--- calling sign out of library (okta-react-native)
AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1994471877, result=-1, data=Intent { act=com.okta.oidc.OktaRedirectActivity.REDIRECT_ACTION dat=com.okta.infinitycloud:?state=NfirEe5k7ZKf5b3iYGjHgA flg=0x34400000 cmp=com.oktademo/com.okta.oidc.OktaAuthenticationActivity }} to activity {com.oktademo/com.oktademo.MainActivity}: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5340)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.handleSendResult(ActivityThread.java:5379)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2252)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7842)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)01-12 01:20:09.442 7638 7638 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.net.Uri.getQueryParameterNames(Uri.java:1616)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.retrieveResponse(AuthenticationResultHandler.java:99)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.handleAuthenticationResult(AuthenticationResultHandler.java:81)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.onActivityResult(AuthenticationResultHandler.java:70)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.OktaResultFragment.onActivityResult(OktaResultFragment.java:111)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2698)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2678)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:418)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:375)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:777)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:152)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:69)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:8385)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5333)
What is expected to happen?
Sign out should happen on proper validation the URI.
What is the actual behavior?
Crash observed
Reproduction Steps?
Call signout() on Android device
Additional Information?
No response
SDK Version
Latest SDK
Build Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug?
I have a react native app where i have integrated OKTA using this library and all seems to work good but when i tried to log out i call below method and it crash with the below exception :-
let config = createConfigOktaObject( <--- my custom function to create okta object configObject.OktaDomain, configObject.ClientId, ); createConfig(config); signOut();
<--- calling sign out of library (okta-react-native)OKTA Config Details :-
oidc: { issuer: 'https://dev-78214413.okta.com', clientId: '0oa7xa4k41rrrrDo05d7', redirectUri: 'com.okta.infinitycloud:/callback', endSessionRedirectUri: 'com.okta.infinitycloud:/', discoveryUri: 'https://dev-78214413.okta.com', scopes: ['openid', 'profile', 'offline_access'], requireHardwareBackedKeyStore: false, },
AndroidRuntime: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1994471877, result=-1, data=Intent { act=com.okta.oidc.OktaRedirectActivity.REDIRECT_ACTION dat=com.okta.infinitycloud:?state=NfirEe5k7ZKf5b3iYGjHgA flg=0x34400000 cmp=com.oktademo/com.okta.oidc.OktaAuthenticationActivity }} to activity {com.oktademo/com.oktademo.MainActivity}: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5340)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.handleSendResult(ActivityThread.java:5379)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2252)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7842)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)01-12 01:20:09.442 7638 7638 E AndroidRuntime: Caused by: java.lang.UnsupportedOperationException: This isn't a hierarchical URI.01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.net.Uri.getQueryParameterNames(Uri.java:1616)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.retrieveResponse(AuthenticationResultHandler.java:99)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.handleAuthenticationResult(AuthenticationResultHandler.java:81)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.AuthenticationResultHandler.onActivityResult(AuthenticationResultHandler.java:70)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.okta.oidc.OktaResultFragment.onActivityResult(OktaResultFragment.java:111)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2698)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentManager$8.onActivityResult(FragmentManager.java:2678)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.result.ActivityResultRegistry.doDispatch(ActivityResultRegistry.java:418)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.result.ActivityResultRegistry.dispatchResult(ActivityResultRegistry.java:375)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.activity.ComponentActivity.onActivityResult(ComponentActivity.java:777)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at androidx.fragment.app.FragmentActivity.onActivityResult(FragmentActivity.java:152)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at com.facebook.react.ReactActivity.onActivityResult(ReactActivity.java:69)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.Activity.dispatchActivityResult(Activity.java:8385)01-12 01:20:09.442 7638 7638 E AndroidRuntime: at android.app.ActivityThread.deliverResults(ActivityThread.java:5333)
What is expected to happen?
Sign out should happen on proper validation the URI.
What is the actual behavior?
Crash observed
Reproduction Steps?
Call signout() on Android device
Additional Information?
No response
SDK Version
Latest SDK
Build Information
No response
The text was updated successfully, but these errors were encountered: