i have web app uses usual https://www.googleapis.com/auth/analytics.readonly
scope on oauth button, , it's working fine. however, ability users sign in via google don't have make new login , password app. when implement that, i'd not require them hit login google, followed authorize app button - not best user experience right out of gate.
is possible add google analytics permission scope google sign-in button? if matters, it's flask app of stuff happening on front-end javascript @ moment.
need spend more time in docs. can accomplish adding scope scope:
list google's example:
var startapp = function() { gapi.load('auth2', function(){ auth2 = gapi.auth2.init({ client_id: client_id, cookiepolicy: 'single_host_origin', scope: 'email https://www.googleapis.com/auth/analytics.readonly' }); attachsignin(document.getelementbyid('custombtn')); }); };
the relevant doc page: https://developers.google.com/identity/sign-in/web/build-button
Comments
Post a Comment