# Generated by Django 5.0.8 on 2024-08-15 14:52

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("authentik_crypto", "0004_alter_certificatekeypair_name"),
        ("authentik_providers_saml", "0015_alter_samlpropertymapping_options"),
    ]

    operations = [
        migrations.AddField(
            model_name="samlprovider",
            name="encryption_kp",
            field=models.ForeignKey(
                blank=True,
                default=None,
                help_text="When selected, incoming assertions are encrypted by the IdP using the public key of the encryption keypair. The assertion is decrypted by the SP using the the private key.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="+",
                to="authentik_crypto.certificatekeypair",
                verbose_name="Encryption Keypair",
            ),
        ),
        migrations.AddField(
            model_name="samlprovider",
            name="sign_assertion",
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name="samlprovider",
            name="sign_response",
            field=models.BooleanField(default=False),
        ),
    ]
