erik
September 15, 2021, 2:39pm
10
There was one report of something similar with iOS. In that case the Okta reactive-native SDK was also being used, but it sounds like a possible culprit could have been having a debugger open.
opened 09:47PM - 07 Jan 21 UTC
closed 07:56AM - 21 Jul 21 UTC
ios
<!--
Please help us process GitHub Issues faster by providing the following inf… ormation.
Note: If you have a question, please post it on the Okta Developer Forum (https://devforum.okta.com) instead. Issues in this repository are reserved for bug reports and feature requests.
-->
## I'm submitting a:
- [x] Bug report
- [ ] Feature request
- [ ] Other (Describe below)
## Current behavior
After creating a new user in okta, calling `const tokens = await signIn({ username, password })` results in an error `"Sign in was not authorized"`. with an inner exception indicating, `Authorization Error: unsupported URL`.
## Expected behavior
Sign-in with valid credentials should return an access token.
## Minimal reproduction of the problem with instructions
<!--
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem.
You could use one of our sample applications to build a reproduction demo: https://github.com/okta?q=samples-js
-->
```js
createConfig({
clientId: OKTA_CLIENT_ID,
redirectUri: 'com.myorg.login:/callback',
endSessionRedirectUri: 'com.myorg.login:/callback',
discoveryUri: OKTA_TENANT,
scopes: ['openid', 'profile', 'offline_access']
});
```
## Extra information about the use case/user story you are trying to implement
I've verified that calls to `/authn` succeed and return a session token, and the subsequent call to `/authorize` returns a 302, but the ios native module throws an error and does not resolve tokens.
The android native module appears to work as expected and resolves tokens.
We also use the browser-based sign-in in the same application, and the browser sign in flow is working as expected on both platforms.
## Environment
- Package Version: 1.5.0
- React Native Version: 0.63.2
- OS: Catalina 10.15.7
- Node version (`node -v`): 14.15.1
- Other:
I am not sure how easy it would be for you to share a reproducible application with us?
It would still be helpful to see if you see the same issue with our sample app https://github.com/okta/samples-ios/tree/master/custom-sign-in
To troubleshoot further it would be helpful to look at your Org logs as well. If you do not want to share the Org URL in the forum could you open a case with the support team so we can collect that information.