okta / okta-oidc-js

okta-oidc-js
https://github.com/okta/okta-oidc-js
Other
395 stars 232 forks source link

using @okta/okta-react-native . In android app is not getting redirected back from okta login page. After Sign click on browser it stays there. #925

Closed shweta-itilite closed 2 years ago

shweta-itilite commented 4 years ago

I'm submitting this issue for the package(s):

I'm submitting a:

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

Extra information about the use case/user story you are trying to implement

Environment

aarongranick-okta commented 4 years ago

@shweta-itilite thanks for the submission. Are you able to see any messages in the browser console? https://developer.android.com/guide/webapps/debugging

shweta-itilite commented 4 years ago

Thanks for responding. No, I cannot see any message in browser console. signInSuceess event is not triggered after successful signIn in android but same function is working n iOS.

shweta-itilite commented 4 years ago

I have installed using yarn add @okta/okta-react-native. Did the configuration as per README.

shweta-itilite commented 4 years ago

![Uploading Screenshot 2020-10-01 at 12.08.53 AM.png…]()

robertjd commented 4 years ago

Hi @shweta-itilite , can you compare your application to our sample applications, these are working examples of how to achieve login with react native: https://github.com/okta/samples-js-react-native

shweta-itilite commented 4 years ago

Hi Robert, I have compared the application used it in the same way.Sample application is working fine but cannot figure out why is is not working in my app. I will list out the steps I have followed. It is redirecting me to okta page but not getting me back after login. Please help me if I am missing anything. 1) yarn add @okta/okta-react-native 2) added in android/build.gradle maven { url("https://dl.bintray.com/okta/com.okta.android") } 3) manifestPlaceholders.appAuthRedirectScheme='callback url'

shweta-itilite commented 4 years ago

Hi, The issue has been resolved. It was very small issue. I was using part of callback URL in Capital letter which was creating problem. Please do mention the same in the official document. Although It is small things but, fresher like me or anyone without experience may fail to observe this. Thanks.

oleggnidets-okta commented 2 years ago

The comment above provides a solution.

Thanks for using Okta!