How to dismiss ADAuthentication web view controller programmatically?

喜欢而已 提交于 2019-12-07 21:33:44

问题


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?

Thanks


回答1:


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



来源:https://stackoverflow.com/questions/27786447/how-to-dismiss-adauthentication-web-view-controller-programmatically

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!