How to allow google login from Android Studio

Discussions about the Application Boundaries Enforcer (ABE) module
chacham

How to allow google login from Android Studio

Post 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?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to allow google login from Android Studio

Post 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]".
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1623.0 Safari/537.36
chacham

Re: How to allow google login from Android Studio

Post 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
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to allow google login from Android Studio

Post 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/*
*Always* check the changelogs BEFORE updating that important software!
ELinks/0.9.3 (textmode; Linux 2.6.9-kanotix-8 i686; 127x41)
chacham

Re: How to allow google login from Android Studio

Post 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?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
barbaz
Senior Member
Posts: 10847
Joined: Sat Aug 03, 2013 5:45 pm

Re: How to allow google login from Android Studio

Post 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)
*Always* check the changelogs BEFORE updating that important software!
Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0
chacham

Re: How to allow google login from Android Studio

Post by chacham »

Thank you again for your most informative posts.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Firefox/28.0
Post Reply