Skip to content
Snippets Groups Projects
Commit 45772158 authored by Talia's avatar Talia
Browse files

feat: add boolean field to third_party_auth to be used to remove providers...

feat: add boolean field to third_party_auth to be used to remove providers from enterprise selection
parent 1238e5d1
Branches
Tags
No related merge requests found
# Generated by Django 2.2.24 on 2021-07-23 15:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('third_party_auth', '0004_auto_20200919_0955'),
]
operations = [
migrations.AddField(
model_name='ltiproviderconfig',
name='disable_for_enterprise_sso',
field=models.BooleanField(default=False, help_text='IDPs with this set to True will be excluded from the dropdown IDP selection in the EnterpriseCustomer Django Admin form.', verbose_name='Disabled for Enterprise TPA'),
),
migrations.AddField(
model_name='oauth2providerconfig',
name='disable_for_enterprise_sso',
field=models.BooleanField(default=False, help_text='IDPs with this set to True will be excluded from the dropdown IDP selection in the EnterpriseCustomer Django Admin form.', verbose_name='Disabled for Enterprise TPA'),
),
migrations.AddField(
model_name='samlproviderconfig',
name='disable_for_enterprise_sso',
field=models.BooleanField(default=False, help_text='IDPs with this set to True will be excluded from the dropdown IDP selection in the EnterpriseCustomer Django Admin form.', verbose_name='Disabled for Enterprise TPA'),
),
]
...@@ -212,6 +212,16 @@ class ProviderConfig(ConfigurationModel): ...@@ -212,6 +212,16 @@ class ProviderConfig(ConfigurationModel):
default=False, default=False,
help_text="Use the presence of a profile from a trusted third party as proof of identity verification.", help_text="Use the presence of a profile from a trusted third party as proof of identity verification.",
) )
disable_for_enterprise_sso = models.BooleanField(
default=False,
verbose_name='Disabled for Enterprise TPA',
help_text=_(
"IDPs with this set to True will be excluded from the dropdown IDP selection "
"in the EnterpriseCustomer Django Admin form."
)
)
prefix = None # used for provider_id. Set to a string value in subclass prefix = None # used for provider_id. Set to a string value in subclass
backend_name = None # Set to a field or fixed value in subclass backend_name = None # Set to a field or fixed value in subclass
accepts_logins = True # Whether to display a sign-in button when the provider is enabled accepts_logins = True # Whether to display a sign-in button when the provider is enabled
......
...@@ -36,7 +36,7 @@ django-storages<1.9 ...@@ -36,7 +36,7 @@ django-storages<1.9
# The team that owns this package will manually bump this package rather than having it pulled in automatically. # The team that owns this package will manually bump this package rather than having it pulled in automatically.
# This is to allow them to better control its deployment and to do it in a process that works better # This is to allow them to better control its deployment and to do it in a process that works better
# for them. # for them.
edx-enterprise==3.27.3 edx-enterprise==3.27.6
# Newer versions need a more recent version of python-dateutil # Newer versions need a more recent version of python-dateutil
freezegun==0.3.12 freezegun==0.3.12
......
...@@ -435,7 +435,7 @@ edx-drf-extensions==6.6.0 ...@@ -435,7 +435,7 @@ edx-drf-extensions==6.6.0
# edx-rbac # edx-rbac
# edx-when # edx-when
# edxval # edxval
edx-enterprise==3.27.3 edx-enterprise==3.27.6
# via # via
# -c requirements/edx/../constraints.txt # -c requirements/edx/../constraints.txt
# -r requirements/edx/base.in # -r requirements/edx/base.in
......
...@@ -528,7 +528,7 @@ edx-drf-extensions==6.6.0 ...@@ -528,7 +528,7 @@ edx-drf-extensions==6.6.0
# edx-rbac # edx-rbac
# edx-when # edx-when
# edxval # edxval
edx-enterprise==3.27.3 edx-enterprise==3.27.6
# via # via
# -c requirements/edx/../constraints.txt # -c requirements/edx/../constraints.txt
# -r requirements/edx/testing.txt # -r requirements/edx/testing.txt
......
...@@ -511,7 +511,7 @@ edx-drf-extensions==6.6.0 ...@@ -511,7 +511,7 @@ edx-drf-extensions==6.6.0
# edx-rbac # edx-rbac
# edx-when # edx-when
# edxval # edxval
edx-enterprise==3.27.3 edx-enterprise==3.27.6
# via # via
# -c requirements/edx/../constraints.txt # -c requirements/edx/../constraints.txt
# -r requirements/edx/base.txt # -r requirements/edx/base.txt
......
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