I’m using the example in the applications section:
the version is 3.9.2
the issue that you mention is the same error, but I need the webview login without passing values in the Login()
the example use these sentences to show the webview login (version is 3.9.2):
oktaOidc?.signInWithBrowser(from: self, callback: { [weak self] stateManager, error in
if let error = error {
let alert = UIAlertController(title: "Error SignInWBrowser", message: error.localizedDescription, preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
self?.present(alert, animated: true, completion: nil)
return
}
self?.stateManager?.clear()
self?.stateManager = stateManager
self?.stateManager?.writeToSecureStorage()
self?.performSegue(withIdentifier: "show-details", sender: self)
})
I get the same error that the issue.
When I use the AppAuth (“0.3.0”):
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.)"