Page 1 of 1

How to allow google login from Android Studio

Posted: Thu Dec 11, 2014 8:07 pm
by chacham
Android Studio has an icon in the upper right corner to login to Google. Clicking it brings up the usual Google authorize sharing information page. Clicking Accept is denied by ABE. The option button brings up the configuration screen but i don;t know what to do. How can i allow the login?

Re: How to allow google login from Android Studio

Posted: Thu Dec 11, 2014 9:51 pm
by barbaz
Please reproduce the problem and post here the message(s) you then see in the Browser Console (Ctrl-Shift-J) that start with "[NoScript" or "[ABE]".

Re: How to allow google login from Android Studio

Posted: Fri Dec 12, 2014 2:05 pm
by chacham
ctrl-shift-j didn't know that one. Thanx!
[ABE] <LOCAL> Deny on {GET http://localhost:55883/Callback?code=4/ ... tiQhaN9lAI <<< https://accounts.google.com/o/oauth2/ap ... Sid3RtwAmz, https://accounts.google.com/o/oauth2/au ... fo%23email - 6}
SYSTEM rule:
Site LOCAL
Accept from LOCAL
Deny

Re: How to allow google login from Android Studio

Posted: Fri Dec 12, 2014 9:04 pm
by barbaz
add at the very top of NoScript Options > Advanced > ABE > SYSTEM

Code: Select all

Site http://localhost:55883/*
Accept from https://accounts.google.com/o/oauth2/*

Re: How to allow google login from Android Studio

Posted: Mon Dec 15, 2014 2:40 pm
by chacham
I added that and retried (note this is after the weekend) and got the same message with a different port. So, i changed the port in the Site directive, hit OK, reloaded the page, and it worked well. Thank you!

If the application changes the port each time i try to login (or on different days, sessions, or whatever) is changing the port each time to best way to allow it to work?

Re: How to allow google login from Android Studio

Posted: Mon Dec 15, 2014 7:52 pm
by barbaz
chacham wrote:I added that and retried (note this is after the weekend) and got the same message with a different port. So, i changed the port in the Site directive, hit OK, reloaded the page, and it worked well. Thank you!
You're welcome
chacham wrote:If the application changes the port each time i try to login (or on different days, sessions, or whatever) is changing the port each time to best way to allow it to work?
Depends how it changes the port. If it cycles through a small set of ports consistently, use something like

Code: Select all

Site http://localhost:55883/* http://localhost:57777/* http://localhost:54321/*
Accept from https://accounts.google.com/o/oauth2/*
If port number seems random, you could either just change the port each time (safest? but kind of a hassle) or you could make a regex matching any port it might pick but not those it won't (possibly more dangerous but it will be more convenient long term; post back here for help, giving as many actual port numbers it's used as possible, if you don't know how to make regex and want to go that route)

Re: How to allow google login from Android Studio

Posted: Tue Dec 16, 2014 4:43 pm
by chacham
Thank you again for your most informative posts.