Merge pull request #28261 from edx/trhodes/ent-1366
feat: Third Party Auth - Boolean Enable Field for Enterprise Providers
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# 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):
|
||||
default=False,
|
||||
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
|
||||
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
|
||||
|
||||
@@ -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.
|
||||
# This is to allow them to better control its deployment and to do it in a process that works better
|
||||
# for them.
|
||||
edx-enterprise==3.27.3
|
||||
edx-enterprise==3.27.6
|
||||
|
||||
# Newer versions need a more recent version of python-dateutil
|
||||
freezegun==0.3.12
|
||||
|
||||
@@ -435,7 +435,7 @@ edx-drf-extensions==6.6.0
|
||||
# edx-rbac
|
||||
# edx-when
|
||||
# edxval
|
||||
edx-enterprise==3.27.3
|
||||
edx-enterprise==3.27.6
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.in
|
||||
|
||||
@@ -528,7 +528,7 @@ edx-drf-extensions==6.6.0
|
||||
# edx-rbac
|
||||
# edx-when
|
||||
# edxval
|
||||
edx-enterprise==3.27.3
|
||||
edx-enterprise==3.27.6
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/testing.txt
|
||||
|
||||
@@ -511,7 +511,7 @@ edx-drf-extensions==6.6.0
|
||||
# edx-rbac
|
||||
# edx-when
|
||||
# edxval
|
||||
edx-enterprise==3.27.3
|
||||
edx-enterprise==3.27.6
|
||||
# via
|
||||
# -c requirements/edx/../constraints.txt
|
||||
# -r requirements/edx/base.txt
|
||||
|
||||
Reference in New Issue
Block a user