本文介绍了使用AppAuth在swift4中进行身份验证时会显示其他警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用AppAuth 0.90.0通过外部身份验证服务器进行身份验证,用户可以在该服务器上登录,以便该应用接收适当的身份验证令牌.从最近开始(升级到Swift 4之后),我收到了以下警报,然后才发送到身份验证服务器:

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:

这允许应用程序和网站共享有关您的信息.

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?

推荐答案

之所以会这样,是因为AppAuth默认使用SFAuthenticationSession而不是iOS11上的SFSafariViewController.不幸的是,使用SFAuthenticationSession时,我们目前无法更改或删除这些警报.您可以按照 Github线程进行讨论,该主题讨论了在iOS11上使用AppAuth时的问题和更改. .

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.

这篇关于使用AppAuth在swift4中进行身份验证时会显示其他警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 06:50