GIDSignIn requires a password

I’m developing an internal application that will use our corporate Google Drive accounts and will be used on shared devices (iPad with teachers and students on school sites).

Is there a way to force GIDSignInme to require a password with every login attempt? Right now, even after calling GIDSIgnIn.sharedInstance().signOut()(or GIDSignIn.sharedInstacne().disconnect()) the user does not need to enter a password at the next access to the application. This means that when the device is accepted by the next user, they can very easily access another user account.

Am I missing something? Do I need to somehow clear the cookie store in UIWebViewthat the process is using GIDSignIn?

+4
source share
1 answer

Where available, the login process GIDSignInuses SFSafariViewController, not UIWebView. It uses cookies (as well as passwords) stored in Safari for faster login.

I don’t think you can clear these cookies. However, you can get Google to log out by opening https://www.google.com/accounts/Logoutin SFSafariViewController, although interacting with the rest of your application can be a little weird. See the Logout link with a return URL (OAuth) to provide a return URL that you can try to use to control the process (you will need to use the URL scheme to return, though).

, iOS , . → Safari →

, iOS .

+4

Source: https://habr.com/ru/post/1620766/


All Articles