问题
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