如何以编程方式关闭ADAuthentication Web视图控制器?

如何以编程方式关闭ADAuthentication Web视图控制器?

问题描述:

在以编程方式将webveiwcontroller从ADAL中解雇后,我遇到了以下问题,下一次当我重新启动登录流程时,出现以下错误:

I met the following issue after dismiss the webveiwcontroller from ADAL programmably, and next time when I re-launch the sign in flow, I was given the following errors:

error=Error with code: 13 Domain: ADAuthenticationErrorDomain ProtocolCode:(null)
Details:The user is currently prompted for credentials as result of another acquireToken request.
Please retry the acquireToken call later..
Inner error details: Error Domain=ADAuthenticationErrorDomain Code=13
"The operation couldn’t be completed. (ADAuthenticationErrorDomain error 13.)"

如果我完全关闭应用程序并重新打开,登录流程将再次起作用。这是一个已知问题吗?有什么方法可以用来解决此问题?

If I close the app completely and reopen it, the sign in flow works again. Is this a known issue and what could be used to work around this?

谢谢

您应该调用ADAuthenticationBroker-> cancel确保所有锁都正确释放。

You should call ADAuthenticationBroker->cancel to make sure all the locks are released correctly.