After creating a new user in okta, unable to sign in “Sign in was not authorized”, with an inner exception indicating, Authorization Error: unsupported URL.
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.
Environment
Okta SDK: 3.10.6
iOS version: 14.7.1
Xcode Version: 12.5.1
OS: Big Sur 11.5.2
Hello Ram,
Is the Custom Sign-In App the Okta custom sign-in sample application or your own?
If it is your own are you doing a native login or using browser sign-in?
If the redirectURI is incorrect that is not the error I receive nor is that the error I get if I set the wrong URL for my Okta Org when creating the OktaOidc instance. Can you supply the configuration file (Okta.plist) you are using and if you are doing a browser sign-in the Info.plist as well. Additionally if you could supply the Okta calls you are making that would be helpful as well.
here one thing i need to tell you that, once error is occurred. Unable to login with new user or existing user details. If we kill the app and relaunch, then able to login.
It maybe that you need to register a custom URL Schema for your application like you do if using a browser login, but I didn’t think you should need to. I don’t need to for a native sign-in. See the bottom of our browser sample.
What type of iOS device or simulator are you using? This isn’t a desktop application is it?
Are you testing the Okta custom sample application https://github.com/okta/samples-ios/tree/master/custom-sign-in or is this your own application?
If it is your own can you test the sample and see if you see the same results. I just installed okta-oidc-sdk 3.10.6 but am still unable to reproduce with the custom sample app.
creating a new user is not from device, we just collect the data and send it to server. Server team is doing the okta registration and get back with the response. In this case android is working as expected behaviour, where as iOS not.
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.
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.