[MapCareTech] Remove OSM OAuth for simplicity

parent eb5bce2b
......@@ -4,6 +4,3 @@ SECRET_KEY=
ADMIN_EMAIL=
# Database URL
DATABASE_URL=postgis://user:password@umap-db-caretech/caretech
# OpenStreetMap token
OPENSTREETMAP_KEY=
OPENSTREETMAP_SECRET=
......@@ -35,14 +35,6 @@ ENABLE_ACCOUNT_LOGIN = env.bool('ENABLE_ACCOUNT_LOGIN', default=True)
AUTHENTICATION_BACKENDS = ()
# We need email to associate with other Oauth providers
SOCIAL_AUTH_OPENSTREETMAP_KEY = env('OPENSTREETMAP_KEY', default='')
SOCIAL_AUTH_OPENSTREETMAP_SECRET = env('OPENSTREETMAP_SECRET', default='')
if SOCIAL_AUTH_OPENSTREETMAP_KEY and SOCIAL_AUTH_OPENSTREETMAP_SECRET:
AUTHENTICATION_BACKENDS += (
'social_core.backends.openstreetmap.OpenStreetMapOAuth',
)
AUTHENTICATION_BACKENDS += (
'django.contrib.auth.backends.ModelBackend',
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment