liftoff / GateOne

Gate One is an HTML5-powered terminal emulator and SSH client
http://liftoffsoftware.com/Products/GateOne
Other
6.28k stars 925 forks source link

Google OpenID 2 doesn't work anymore. #534

Open omata-metamax opened 9 years ago

omata-metamax commented 9 years ago

Hello,

Recently Google deprecated OpenID 2 and is using a new Google Connect, Since that I can't login to my GO server anymore, There is any way to fix this?

BTW Was GO removed from PyPy index? because I installed it using pip but now it can find gateone in the index. My installed version is 1.2.0

Best regards,

Xat59 commented 9 years ago

Hi guys,

Personally I'm not able to use Google authentication (OAuth) with recent GateOne, like @omata-metamax said

Thank folks !

omata-metamax commented 9 years ago

OpenID 2 was dicontinued since Apr 20.

omata-metamax commented 9 years ago

I just did see that Google auth mechanism is handled by Tornado, I'm guessing that New Google auth metodology must be updated first on Tornado framework. :(

omata-metamax commented 9 years ago

Hi,

I asked for Google Connect implementation on tornado's github repo and they replied that they will not support soon Google Connect but instead Oauth2 can be used because Google still support it. I don't know If a change in the code is needed for this issue.

Regards,

omata-metamax commented 9 years ago

Nevermind,

I just comapred the code installed on my computer and the one available on the repo and mine is outdated, I will find the way to update it.

Thanks.

omata-metamax commented 9 years ago

Issue solved,

Upgraded to the latest version by issuing:

sudo pip install https://github.com/liftoff/GateOne/archive/master.zip

P.D.: My previous version was installed by the same command above, if you use a different procedure for upgrade it will not work.

Then I reconfigured all again and done! auth is migrated from OpenID2 to Oauth2.

Regards, Oscar

omata-metamax commented 9 years ago

@Xat59 My issue wasn't that, I was using an old version of GateOne without support for Oauth2, I just upgraded to latest and now I can use Oauth2 protocol. I just followed all directions from log file asking for user ID and user secret and all is set. You must create a Google Project first to generate these IDs.

Regards, Oscar

Xat59 commented 9 years ago

@omata-metamax I have a Google projet with ID and secret, but they don't work .

On the web interface I get "The authentication object was denied by the server. Click OK to reload the page."

In logs I get : [E 150517 22:15:51 web:1407] Uncaught exception GET /auth?code=4/8YfqovmGzIZMK54-ksC0i6JuQZOD1sRdlf7P8ihl_Mc.IqO43CunwS8boiIBeO6P2m_6pBPHmgI (192.168.1.1) HTTPServerRequest(protocol='https', host='blabla.net:4443', method='GET', uri='/auth?code=4/8YfqovmGzIZMK54-ksC0i6JuQZOD1sRdlf7P8ihl_Mc.IqO43CunwS8boiIBeO6P2m_6pBPHmgI', version='HTTP/1.1', remoteip='192.168.1.1', headers={'Accept-Language': 'en-US,en;q=0.8,fr;q=0.6', 'Accept-Encoding': 'gzip, deflate, sdch', 'Host': 'blabla.net:4443', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,/_;q=0.8', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36', 'Connection': 'keep-alive', 'Cookie': 'JSESSIONID=1w092kw7p4vfx; player-786174=5; utma=216242207.1197496179.1429783887.1431521428.1431530793.8; utmc=216242207; __utmz=216242207.1429783887.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)', 'Cache-Control': 'max-age=0', 'Allow-Chrome-Signin': '1'}) Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/tornado-4.0.2-py2.6-linux-x86_64.egg/tornado/web.py", line 1334, in _execute result = yield result File "/usr/local/lib/python2.6/dist-packages/tornado-4.0.2-py2.6-linux-x86_64.egg/tornado/gen.py", line 628, in run value = future.result() File "/usr/local/lib/python2.6/dist-packages/tornado-4.0.2-py2.6-linux-x86_64.egg/tornado/concurrent.py", line 109, in result raise_exc_info(self._exc_info) File "/usr/local/lib/python2.6/dist-packages/tornado-4.0.2-py2.6-linux-x86_64.egg/tornado/gen.py", line 633, in run yielded = self.gen.send(value) File "/usr/local/lib/python2.6/dist-packages/gateone-1.2.0-py2.6.egg/gateone/auth/authentication.py", line 350, in get self._on_auth(user) File "/usr/local/lib/python2.6/dist-packages/gateone-1.2.0-py2.6.egg/gateone/auth/authentication.py", line 379, in _on_auth self.user_login(user) File "/usr/local/lib/python2.6/dist-packages/gateone-1.2.0-py2.6.egg/gateone/auth/authentication.py", line 159, in user_login user_dir = os.path.join(self.settings['user_dir'], upn) UnboundLocalError: local variable 'upn' referenced before assignment [E 150517 22:15:51 web:1811] 500 GET /auth?code=4/8YfqovmGzIZMK54-ksC0i6JuQZOD1sRdlf7P8ihl_Mc.IqO43CunwS8boiIBeO6P2m_6pBPHmgI (192.168.1.1) 837.92ms

omata-metamax commented 9 years ago

Can you post your configuration file 50terminal.conf?