Skip to content

Commit

Permalink
Add a setting for specifiying the IDM backend to be used
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelavega committed May 28, 2019
1 parent da11e5a commit 9739d0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wirecloud/fiware/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
from social_django.utils import BACKENDS, get_backend, load_strategy
FIWARE_SOCIAL_AUTH_BACKEND = get_backend(BACKENDS, 'fiware')(load_strategy())

IDM_SUPPORT_ENABLED = 'wirecloud.fiware' in settings.INSTALLED_APPS and 'social_django' in settings.INSTALLED_APPS
IDM_SUPPORT_ENABLED = 'wirecloud.fiware' in settings.INSTALLED_APPS and 'social_django' in settings.INSTALLED_APPS \
and getattr(settings, 'IDM_BACKEND', '') == 'fiware'
except:
IDM_SUPPORT_ENABLED = False

Expand Down

0 comments on commit 9739d0f

Please sign in to comment.