summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authord42 <d42@users.noreply.github.com>2018-10-10 21:38:44 +0200
committerd42 <d42@users.noreply.github.com>2018-10-10 21:38:44 +0200
commit638ea2a2aa1a90a2bdd6c7b795a2e89ed572d2e8 (patch)
treed249f358032d02fbf71bd2c4a18d3abab5b80f8c
parent1f8dadcf18f45c830436b851dec05382aeb815bf (diff)
downloadspejstore-638ea2a2aa1a90a2bdd6c7b795a2e89ed572d2e8.tar.gz
spejstore-638ea2a2aa1a90a2bdd6c7b795a2e89ed572d2e8.tar.bz2
spejstore-638ea2a2aa1a90a2bdd6c7b795a2e89ed572d2e8.tar.xz
spejstore-638ea2a2aa1a90a2bdd6c7b795a2e89ed572d2e8.zip
unnecessary code
-rw-r--r--auth/backend.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/auth/backend.py b/auth/backend.py
index 2a343a2..25c6d65 100644
--- a/auth/backend.py
+++ b/auth/backend.py
@@ -37,20 +37,3 @@ class HSWawOAuth2(BaseOAuth2):
params.update(self.auth_extra_arguments())
params = urlencode(params)
return '{0}?{1}'.format(self.authorization_url(), params)
-
- def get_user(self, user_id):
- """
- Return user with given ID from the User model used by this backend.
- This is called by django.contrib.auth.middleware.
- """
- return self.strategy.get_user(user_id)
-
- def pipeline(self, pipeline, pipeline_index=0, *args, **kwargs):
- out = self.run_pipeline(pipeline, pipeline_index, *args, **kwargs)
- if not isinstance(out, dict):
- return out
- user = out.get('user')
- if user:
- user.social_user = out.get('social')
- user.is_new = out.get('is_new')
- return user