I integrating Okta auth in my iOS app, but I catching this error:
error: "Authorization Error: The operation couldn’t be completed. (org.openid.appauth.general error -6.)"
In my dev Domain without multifactor authentication the app works fine and I get the token Response OK.
but in our customer’s okta domain with multifactor Auth (SMS) I get the error.
I can’t find any documentation about this. I read some post about this org.openid response that I need to pass additional parameters, is this true? or possible?
I’m using the sample in the dev okta page with OktaAuth (OktaAuth.login().start…), works fine with my dev Okta app, but with our customers (client) Okta app I’m getting that error. I try with the demo link ( preconfigured sample app, is using OktaOidc [oktaOidc?.signInWithBrowser…] ) in our applications dashboard, and works fine with our DevOkta App, but again with the customer issuer we get an error: “Authorization Error: invalid_client: Client authentication failed. Either the client or the client credentials are invalid.” But if we try to access in a web browser in my mac the cretentials (including the mutifactor auth SMS) works fine.
My questions is, if we need to configure something in the app dashboard or user permission.
@Anibal Can you please clarify which sample you are using now? It would be better to add a link.
I did some research. Can this similar issue give you a hint?
OktaAuth.login()
.start(self) {
response, error in
print(response)
if error != nil {
print(error!)
self.lblStatusOkta.text = "No ha iniciado sesión con su cuenta de Okta.\n presione INICIAR SESIÓN para intentar de nuevo."
self.activityIndicator.stopAnimating()
self.btnLogin.setTitle("INICIAR SESIÓN", for: .normal)
}
I get the error: error: "Authorization Error: The operation couldn’t be completed. (org.openid.appauth.general error -6.)"