From fa5132991f70960de183f21dd63f9a0dd72ffec9 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 5 Jul 2018 11:12:00 -0400 Subject: [PATCH] Require certpair for SAML. --- awx/sso/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/sso/conf.py b/awx/sso/conf.py index 75178d6d12..3849c7c2d3 100644 --- a/awx/sso/conf.py +++ b/awx/sso/conf.py @@ -977,7 +977,7 @@ register( 'SOCIAL_AUTH_SAML_SP_PUBLIC_CERT', field_class=fields.CharField, allow_blank=True, - default='', + required=True, validators=[validate_certificate], label=_('SAML Service Provider Public Certificate'), help_text=_('Create a keypair for Tower to use as a service provider (SP) ' @@ -991,7 +991,7 @@ register( 'SOCIAL_AUTH_SAML_SP_PRIVATE_KEY', field_class=fields.CharField, allow_blank=True, - default='', + required=True, validators=[validate_private_key], label=_('SAML Service Provider Private Key'), help_text=_('Create a keypair for Tower to use as a service provider (SP) '