From ed8db2419e3c519bc087bef88009260995e27958 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Mon, 31 Jul 2017 09:28:52 -0400 Subject: [PATCH] make specific saml fields required --- awx/sso/conf.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/awx/sso/conf.py b/awx/sso/conf.py index b7bb4734a6..4a12de9d9f 100644 --- a/awx/sso/conf.py +++ b/awx/sso/conf.py @@ -970,13 +970,7 @@ register( register( 'SOCIAL_AUTH_SAML_ORG_INFO', field_class=fields.SAMLOrgInfoField, - default=collections.OrderedDict([ - ('en-US', collections.OrderedDict([ - ('name', 'example'), - ('displayname', 'Example'), - ('url', 'http://www.example.com'), - ])), - ]), + required=True, label=_('SAML Service Provider Organization Info'), help_text=_('Configure this setting with information about your app.'), category=_('SAML'), @@ -995,10 +989,7 @@ register( 'SOCIAL_AUTH_SAML_TECHNICAL_CONTACT', field_class=fields.SAMLContactField, allow_blank=True, - default=collections.OrderedDict([ - ('givenName', 'Technical Contact'), - ('emailAddress', 'techsup@example.com'), - ]), + required=True, label=_('SAML Service Provider Technical Contact'), help_text=_('Configure this setting with your contact information.'), category=_('SAML'), @@ -1014,10 +1005,7 @@ register( 'SOCIAL_AUTH_SAML_SUPPORT_CONTACT', field_class=fields.SAMLContactField, allow_blank=True, - default=collections.OrderedDict([ - ('givenName', 'Support Contact'), - ('emailAddress', 'support@example.com'), - ]), + required=True, label=_('SAML Service Provider Support Contact'), help_text=_('Configure this setting with your contact information.'), category=_('SAML'),