alangrainger / obsidian-google-photos

Connect to Google Photos from Obsidian
GNU General Public License v3.0
93 stars 5 forks source link

Some gmail accounts don't work #15

Closed rveciana closed 1 year ago

rveciana commented 1 year ago

I don't know if it's related to the plugin or the API configuration or the accounts, but some gmail accounts work, but others show a white page when logging in, instead of the buttons to give persmission.

Open Photos API auth -> A dialog appears where you put the email -> Blank dialog that doesn't change

Do you know what can that be?

dchirst commented 1 year ago

I'm also having this issue! My hunch is that this is something to do with Passkeys/non-password ways of authentication, but switching off these settings are not working.

alangrainger commented 1 year ago

Are there any useful looking error messages in the console of the login window?

rveciana commented 1 year ago

I don't see anything strange. The auth calls this endpoint: https://ssl.gstatic.com/accounts/static/_/js/k=gaia.gaiafe_signin.ca.2AYFzSMYyV4.O/am=AISXDAAAAAAAAAAAQNQE/d=0/rs=ABkqax13wJkKLOIr7fZrvc685cDBALDIxQ/m=sy2,sy3,sy4,nCyKU

The response is something, but the screen has no content. Response: this._G=this.G||{};(function(){var window=this; try{ var MA,fha,gha,PA,QA;.KA=function(a){if(0<a.Ya.length)return .Ro(a.Ya[0])}; .LA=function(a,b){a.xb(function(c){var d=c.type;switch("string"===typeof d&&d.toLowerCase()){case "checkbox":case "radio":c.checked=b;break;case "select-one":c.selectedIndex=-1;if("string"===typeof b)for(var e=0;d=c.options[e];e++)if(d.value==b){d.selected=!0;break}break;case "select-multiple":d=b;"string"===typeof d&&(d=[d]);for(var f=0;e=c.options[f];f++)if(e.selected=!1,d)for(var g,h=0;g=d[h];h++)e.value==g&&(e.selected=!0);break;default:c.value=null!=b?b:""}})}; MA=function(a){this.l=a;this.i=new .Rc;this.g=null};MA.prototype.init=function(a){this.g||(this.g=.ho(new .ne(this.l.map(function(b){return b(a)})),this.i));return this.g};MA.prototype.done=function(){return this.i};.NA=function(a){return a.ra.i?a.ra.i:a.ra.i=new .dd(a)};fha=function(a,b){b&&(a[.ke]=new MA(b),a[.ke].done().addCallback(function(){a[.ke]=null}))};.OA=function(a,b,c){a=b(c||{},.Yz(a));return String(a)};gha={Yd:.Je};PA=function(a,b){a.o||(a.o=[]);a.o.push(b)}; QA=function(a,b,c,d){a=.Kt.call(this,a,void 0,d)||this;a.l=b;a.i=c;a.da=new .sw;a.o=null;return a};.A(QA,.Kt);.k=QA.prototype;.k.ic=function(){return this.i.g};.k.Cc=function(){return this.i.g||void 0};.k.getContext=function(a){return .je(this.l,a)};.k.ta=function(){return this.da.g?this.da.g:this.da.g=new .ov(this.l)};.k.getData=function(a){return this.ta().getData(a)}; .k.Yd=function(a,b){var c=this;return .Tf(gha.Yd(b||this.l,a,this.Cc()),function(d){d instanceof .Ie&&(d.message+=" requested by "+c);return d})};.k.Hc=function(a,b){if(a.tagName){var c=this.i.Hc(a),d=c.kc();PA(this,function(e){return d.addCallback(function(f){return .me(f,e)})});b&&c.addCallback(b);return c}return this.Ge(a).addCallback(function(e){if(0==e.length)throw Error("nb"+a+""+this);b&&b(e[0]);return e[0]},this)}; .k.Ge=function(a,b){var c=[],d=.tw(this.l,a),e=this.ta().ha();if(0==d.size()&&"loading"==e.ownerDocument.readyState){var f=new .Rc;.ml(e.ownerDocument,"readystatechange",function(){.On(this.Ge(a,b),function(h){f.callback(h)},function(h){f.g(h)})},!1,this);return f}d.xb((0,.Kc)(function(h){c.push(this.i.Hc(h))},this));d=.it(c);var g=d.kc();PA(this,function(h){return g.addCallback(function(m){return .it(m.map(function(n){return .me(n,h)}))})});b&&d.addCallback(b);return d}; .RA=function(a,b){.It(b);b.prototype.Dd||(b.prototype.Dd={});a&&(.Ce.Oa().register(a,b),b.create=function(c,d,e){var f=new QA(c,d,e,b);return .Me(c,b,f).addCallback(function(g){fha(g,f.o)})})}; }catch(e){_.DumpException(e)} try{ .u("nCyKU"); var cya=.w("nCyKU");var q9=function(a){.J.call(this,a.Fa);this.o=this.ia("J2uaq")};.A(q9,.J);q9.xa=.J.xa;q9.prototype.i=function(){return .KA(this.o).toString()};q9.prototype.l=function(){var a=this.i();a=.Wp(new .kf(window.location.href),"hl",a).toString();.yd(window.location,.Gd(a))};.K(q9.prototype,"iktSbe",function(){return this.l});.K(q9.prototype,"TsEH4c",function(){return this.i});.RA(cya,q9); .v(); }catch(e){_._DumpException(e)} })(this._G); // Google Inc.

dchirst commented 1 year ago

@rveciana I just retried it and the Google account that wasn't working started working for me! Would you try again? Maybe this was a Google issue.

rveciana commented 1 year ago

Yes, it works now, thank you! I didn't do anything, just try to authenticate again.