Skip to content

Commit

Permalink
Extended the signature of login_user function.
Browse files Browse the repository at this point in the history
  • Loading branch information
VJalili committed Dec 16, 2017
1 parent 60d2794 commit ed77f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/authnz/psa_authnz.py
Expand Up @@ -112,7 +112,7 @@ def load_backend(self, strategy, redirect_uri):
backend = get_backend(backends, BACKENDS_NAME[config['provider']])
return backend(strategy, redirect_uri)

def login_user(self, user):
def login_user(self, backend, user, social_user):
config['user'] = user

def authenticate(self, trans):
Expand All @@ -131,7 +131,7 @@ def callback(self, state_token, authz_code, trans):
backend.redirect_uri = config['redirect_uri']
# this is also temp; it is required in login_user. Find a method around using login_user -- I should not need it -- then remove the following line.
self.trans = trans
redirect_url = do_complete(backend, login=lambda backend, user, social_user: self.login_user(user), user=self.get_current_user(trans), state=state_token)
redirect_url = do_complete(backend, login=lambda backend, user, social_user: self.login_user(backend, user, social_user), user=self.get_current_user(trans), state=state_token)
return redirect_url, config.get('user', None)

def disconnect(self, provider, trans, redirect_url=None, association_id=None):
Expand Down

0 comments on commit ed77f12

Please sign in to comment.