From f69f959bdb9274c0f776be25a86bb27cbd8ec635 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 11 Apr 2019 15:29:01 +0200 Subject: [PATCH] allow setting authentication_header to empty string (disabling the header) --- .../migrations/0003_auto_20190411_1314.py | 18 ++++++++++++++++++ passbook/app_gw/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 passbook/app_gw/migrations/0003_auto_20190411_1314.py diff --git a/passbook/app_gw/migrations/0003_auto_20190411_1314.py b/passbook/app_gw/migrations/0003_auto_20190411_1314.py new file mode 100644 index 000000000..28434b016 --- /dev/null +++ b/passbook/app_gw/migrations/0003_auto_20190411_1314.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2 on 2019-04-11 13:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('passbook_app_gw', '0002_auto_20190321_1521'), + ] + + operations = [ + migrations.AlterField( + model_name='applicationgatewayprovider', + name='authentication_header', + field=models.TextField(blank=True, default='X-Remote-User'), + ), + ] diff --git a/passbook/app_gw/models.py b/passbook/app_gw/models.py index 1bdf2b80b..dec46bdc0 100644 --- a/passbook/app_gw/models.py +++ b/passbook/app_gw/models.py @@ -15,7 +15,7 @@ class ApplicationGatewayProvider(Provider): upstream = ArrayField(models.TextField()) enabled = models.BooleanField(default=True) - authentication_header = models.TextField(default='X-Remote-User') + authentication_header = models.TextField(default='X-Remote-User', blank=True) default_content_type = models.TextField(default='application/octet-stream') upstream_ssl_verification = models.BooleanField(default=True)