facebook - disable automatic authentication for Google+ social sign-in -
i'm looking way avoid user automatically authenticated in web app when refreshes page.
for example, user connects web app using google+ account , uses app while. later, when comes back, want app ask him click login button again, instead of automatically recognizing him authenticated.
with facebook, i'm able set status
property false
when calling fb.init()
, not automatically authenticate user upon initialization.
is possible google+ sdk?
thanks in advance!
i found how it, in case wants know:
gapi.signin.render('botaologinusuariogoogle', { 'callback': googleplussignincallback, 'clientid': '-----------------------------', 'cookiepolicy': 'single_host_origin', 'requestvisibleactions': 'http://schemas.google.com/addactivity', 'scope': 'https://www.googleapis.com/auth/userinfo.email', 'approvalprompt': "force" });
according documentation, approvalprompt
attribute "allows control on when user re-prompted consent. when set auto, user sees oauth consent dialog if have not authorized application. when set force, user shown oauth consent dialog each time click sign-in button."
https://developers.google.com/+/web/signin/#sign-in_button_attributes
Comments
Post a Comment