From 54de5c981e4e553e2f87b1894869032651744899 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 11 Nov 2020 22:35:26 +0100 Subject: [PATCH] providers/saml: fix signatures being required --- .../migrations/0008_auto_20201111_2135.py | 25 +++++++++++++++++++ passbook/providers/saml/models.py | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 passbook/providers/saml/migrations/0008_auto_20201111_2135.py diff --git a/passbook/providers/saml/migrations/0008_auto_20201111_2135.py b/passbook/providers/saml/migrations/0008_auto_20201111_2135.py new file mode 100644 index 000000000..4106bb461 --- /dev/null +++ b/passbook/providers/saml/migrations/0008_auto_20201111_2135.py @@ -0,0 +1,25 @@ +# Generated by Django 3.1.3 on 2020-11-11 21:35 + +from django.db import migrations, models +import django.db.models.deletion + + +class Migration(migrations.Migration): + + dependencies = [ + ('passbook_crypto', '0002_create_self_signed_kp'), + ('passbook_providers_saml', '0007_samlprovider_verification_kp'), + ] + + operations = [ + migrations.AlterField( + model_name='samlprovider', + name='signing_kp', + field=models.ForeignKey(blank=True, default=None, help_text='Singing is enabled upon selection of a Key Pair.', null=True, on_delete=django.db.models.deletion.SET_NULL, to='passbook_crypto.certificatekeypair', verbose_name='Signing Keypair'), + ), + migrations.AlterField( + model_name='samlprovider', + name='verification_kp', + field=models.ForeignKey(blank=True, default=None, help_text="If selected, incoming assertion's Signatures will be validated.", null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='passbook_crypto.certificatekeypair', verbose_name='Verification Keypair'), + ), + ] diff --git a/passbook/providers/saml/models.py b/passbook/providers/saml/models.py index e0ff57286..7888c11e6 100644 --- a/passbook/providers/saml/models.py +++ b/passbook/providers/saml/models.py @@ -91,6 +91,7 @@ class SAMLProvider(Provider): CertificateKeyPair, default=None, null=True, + blank=True, help_text=_("If selected, incoming assertion's Signatures will be validated."), on_delete=models.SET_NULL, verbose_name=_("Verification Keypair"), @@ -100,6 +101,7 @@ class SAMLProvider(Provider): CertificateKeyPair, default=None, null=True, + blank=True, help_text=_("Singing is enabled upon selection of a Key Pair."), on_delete=models.SET_NULL, verbose_name=_("Signing Keypair"),