Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1616 from johngian/fix-auth0-dev
Browse files Browse the repository at this point in the history
Fix auth0 credentials for mozillians-dev.
  • Loading branch information
johngian committed Feb 20, 2017
2 parents ad4adb4 + 1404597 commit 9bd3419
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions mozillians/settings/base.py
Expand Up @@ -565,15 +565,7 @@ def _username_algo(email):
return calculate_username(email)


def lazy_oidc_op_domain():
from django.conf import settings

if settings.SITE_URL == 'https://mozillians-dev.allizom.org':
return 'auth-dev.mozilla.auth0.com'
return 'auth.mozilla.auth0.com'


OIDC_USERNAME_ALGO = _username_algo
OIDC_RP_CLIENT_SECRET_ENCODED = True
OIDC_OP_DOMAIN = lazy(lazy_oidc_op_domain, str)()
OIDC_STORE_ACCESS_TOKEN = True
OIDC_OP_DOMAIN = 'auth.mozilla.auth0.com'

0 comments on commit 9bd3419

Please sign in to comment.