Skip to content
Snippets Groups Projects
Verified Commit 721c14ff authored by Quentin Duchemin's avatar Quentin Duchemin
Browse files

[MapCareTech] Remove OSM OAuth for simplicity

parent eb5bce2b
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,3 @@ SECRET_KEY= ...@@ -4,6 +4,3 @@ SECRET_KEY=
ADMIN_EMAIL= ADMIN_EMAIL=
# Database URL # Database URL
DATABASE_URL=postgis://user:password@umap-db-caretech/caretech 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) ...@@ -35,14 +35,6 @@ ENABLE_ACCOUNT_LOGIN = env.bool('ENABLE_ACCOUNT_LOGIN', default=True)
AUTHENTICATION_BACKENDS = () 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 += ( AUTHENTICATION_BACKENDS += (
'django.contrib.auth.backends.ModelBackend', 'django.contrib.auth.backends.ModelBackend',
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment