diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-06-23 21:17:14 +0000 |
---|---|---|
committer | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2020-06-23 21:17:14 +0000 |
commit | 57d1635845df4a8b045805b66e8fbec5010ce97f (patch) | |
tree | 530cb98a14268da5710b21b070b21e1428b8a5e9 /src/account | |
parent | 596664b37c17b31f2b5faa0d5144e4317179e0ba (diff) |
Revert "Enable OpenID"
This reverts commit 596664b37c17b31f2b5faa0d5144e4317179e0ba.
Reason for revert: seems to break things when keys aren't defined on fresh container build
Change-Id: I4ef788062c8a6967afad4eb3695af85bc3a4718b
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/account')
-rw-r--r-- | src/account/views.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/account/views.py b/src/account/views.py index f883338..d1cc813 100644 --- a/src/account/views.py +++ b/src/account/views.py @@ -28,7 +28,6 @@ from django.views.generic import RedirectView, TemplateView, UpdateView from django.shortcuts import render from jira import JIRA from rest_framework.authtoken.models import Token -from mozilla_django_oidc.auth import OIDCAuthenticationBackend from account.forms import AccountSettingsForm @@ -59,20 +58,6 @@ class AccountSettingsView(UpdateView): return context -class MyOIDCAB(OIDCAuthenticationBackend): - def filter_users_by_claims(self, claims): - email = claims.get(email=email) - if not email: - return self.UserModel.objects.none() - - try: - profile = Profile.objects.get(email=email) - return profile.user - - except Profile.DoesNotExist: - return self.UserModel.objects.none() - - class JiraLoginView(RedirectView): def get_redirect_url(self, *args, **kwargs): consumer = oauth.Consumer(settings.OAUTH_CONSUMER_KEY, settings.OAUTH_CONSUMER_SECRET) |