Skip to content

Commit

Permalink
Fixed a bug redirecting after successfully handling a call-back.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Dec 20, 2017
1 parent 3ae1552 commit a17d8dd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/galaxy/webapps/galaxy/controllers/authnz.py
Expand Up @@ -26,7 +26,18 @@ def callback(self, trans, provider, **kwargs):
raise
success, message, (redirect_url, user) = trans.app.authnz_manager.callback(provider, kwargs['state'], kwargs['code'], trans, login_redirect_url=url_for('/'))
trans.handle_user_login(user)
return trans.response.send_redirect(redirect_url)
return trans.fill_template('/user/login.mako',
login=user.username,
header="",
use_panels=False,
redirect_url="http://localhost:8080/",
redirect='http://localhost:8080/',
refresh_frames='refresh_frames',
message="You are now logged in as user0@eee.com",
status='done',
openid_providers=trans.app.openid_providers,
form_input_auto_focus=True,
active_view="user")

@web.expose
@web.require_login("authenticate against Google identity provider")
Expand Down

0 comments on commit a17d8dd

Please sign in to comment.