如何以编程方式关闭ADAuthentication Web视图控制器? [英] How to dismiss ADAuthentication web view controller programmatically?

查看:83
本文介绍了如何以编程方式关闭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.

这篇关于如何以编程方式关闭ADAuthentication Web视图控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆