allow setting authentication_header to empty string (disabling the header)

This commit is contained in:
Jens Langhammer 2019-04-11 15:29:01 +02:00
parent 146edb45d4
commit f69f959bdb
2 changed files with 19 additions and 1 deletions

View File

@ -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'),
),
]

View File

@ -15,7 +15,7 @@ class ApplicationGatewayProvider(Provider):
upstream = ArrayField(models.TextField()) upstream = ArrayField(models.TextField())
enabled = models.BooleanField(default=True) 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') default_content_type = models.TextField(default='application/octet-stream')
upstream_ssl_verification = models.BooleanField(default=True) upstream_ssl_verification = models.BooleanField(default=True)