providers/saml: fix signatures being required

This commit is contained in:
Jens Langhammer 2020-11-11 22:35:26 +01:00
parent a446775fe2
commit 54de5c981e
2 changed files with 27 additions and 0 deletions

View file

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

View file

@ -91,6 +91,7 @@ class SAMLProvider(Provider):
CertificateKeyPair, CertificateKeyPair,
default=None, default=None,
null=True, null=True,
blank=True,
help_text=_("If selected, incoming assertion's Signatures will be validated."), help_text=_("If selected, incoming assertion's Signatures will be validated."),
on_delete=models.SET_NULL, on_delete=models.SET_NULL,
verbose_name=_("Verification Keypair"), verbose_name=_("Verification Keypair"),
@ -100,6 +101,7 @@ class SAMLProvider(Provider):
CertificateKeyPair, CertificateKeyPair,
default=None, default=None,
null=True, null=True,
blank=True,
help_text=_("Singing is enabled upon selection of a Key Pair."), help_text=_("Singing is enabled upon selection of a Key Pair."),
on_delete=models.SET_NULL, on_delete=models.SET_NULL,
verbose_name=_("Signing Keypair"), verbose_name=_("Signing Keypair"),