You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It works when I am checking the boxes initially, but it is always keeping the scopes that were checked once, because of line 678 in google-signin-aware.html adding new scopes but not removing old ones :
The comment on the requestScopes says /** request additional scopes */ so it actually does not remove older scopes.
I am not into AuthEngine so I don't know if there is any method for resetting the scopes, but I think something like this is needed there.
The text was updated successfully, but these errors were encountered:
There is no way to do it. This was a conscious design decision. Google's signin library gapi.auth2 only supports revoking all scopes, and no partials. So our architecture does not support dropping scopes:
<google-signin> keeps a global registry of requested scopes, and does not keep count of how many times scope has been registered.
when signinAware drops a scope, we can't remove it, because it could have been registered multiple times
The only time when partial revoke would be useful is before pemissions were granted. As a workaround, you can delay creating the signin-aware elements until user clicks on the signin button.
Thanks for the response, but if this is the case I have another problem that might be caused by this behavior :
Even if I leave the scopes-property empty it requests the scopes openid, profile and email and I am not able to do something against it - what can I do to prevent this behavior?
I am trying to set the scopes by checkboxes, so my code looks like this :
It works when I am checking the boxes initially, but it is always keeping the scopes that were checked once, because of line 678 in google-signin-aware.html adding new scopes but not removing old ones :
The comment on the requestScopes says /** request additional scopes */ so it actually does not remove older scopes.
I am not into AuthEngine so I don't know if there is any method for resetting the scopes, but I think something like this is needed there.
The text was updated successfully, but these errors were encountered: