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

How to dismiss ADAuthentication web view controller programmatically?

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

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.)"

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

谢谢

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