I tried to run the Andriod sample app located at:
And I can see the LOGIN button, but after I click the button, it shows: Failed to login.
The information from Log is:
2023-10-10 09:52:36.983 6180-6180 BrowserSig…odel$login com…droid.samples.browser_sign_in E Failed to login.
com.okta.authfoundation.client.OidcClientResult$Error$OidcEndpointsNotAvailableException: OIDC Endpoints not available.
at com.okta.authfoundation.client.OidcClient.endpointNotAvailableError(OidcClient.kt:258)
at com.okta.oauth2.AuthorizationCodeFlow.start$oauth2_release(AuthorizationCodeFlow.kt:129)
at com.okta.oauth2.AuthorizationCodeFlow$start$2.invokeSuspend(Unknown Source:20)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
2023-10-10 09:52:37.019 6180-6200 OpenGLRenderer com…droid.samples.browser_sign_in E Unable to match the desired swap behavior.
2023-10-10 09:52:37.119 6180-6180 WindowOnBackDispatcher com…droid.samples.browser_sign_in W sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$ExternalSyntheticLambda17@d4ebbff
2023-10-10 09:52:37.680 6180-6200 EGL_emulation com…droid.samples.browser_sign_in D app_time_stats: avg=5.55ms min=2.37ms max=16.44ms count=33
The okta.properties file content is:
discoveryUrl=https://dev-95731101.okta.com/oauth2/default/.well-known/openid-configuration
clientId=0oaccivsg01E7Kv4e5d7
signInRedirectUri=com.okta.dev-95731101:/callback
signOutRedirectUri=com.okta.dev-95731101:/logout
Information from Admin console App Integration:
App integration name: okta-android-kotlin-sample
Client ID: 0oaccivsg01E7Kv4e5d7
Sign-in redirect URIs:
com.okta.dev-95731101:/callback
Sign-out redirect URIs :
com.okta.dev-95731101:/logout
Do you have any idea and help me about this?
Thanks