Additional alert shows up using AppAuth to authenticate in swift4

送分小仙女□ 提交于 2019-12-10 14:40:06

问题


I am using AppAuth 0.90.0 for authentication using an external authentication server where a user can log in so the app receives appropriate authentication tokens. Since recently (after upgrade to swift 4) I get the following alert before I get sent to the authentication server:

"App Name" Wants to Use "externalAuthentication.com" to Sign in"

This allows the app and website to share information about you.

Has someone experienced the same issue and/or has a solution so the user does not need to press continue each time a request to that server is made?


回答1:


This is happening because AppAuth uses SFAuthenticationSession by default instead of SFSafariViewController on iOS11. There is unfortunately nothing we can do at the moment to either change or remove these alerts when using SFAuthenticationSession. You can follow this Github thread that discusses the issues and changes when using AppAuth on iOS11.



来源:https://stackoverflow.com/questions/46666795/additional-alert-shows-up-using-appauth-to-authenticate-in-swift4

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