diff --git a/authentik/enterprise/license.py b/authentik/enterprise/license.py index 20d249021e..8ef3b4df60 100644 --- a/authentik/enterprise/license.py +++ b/authentik/enterprise/license.py @@ -117,7 +117,7 @@ class LicenseKey: our_cert.public_key(), algorithms=["ES512"], audience=get_license_aud(), - options={"verify_exp": check_expiry}, + options={"verify_exp": check_expiry, "verify_signature": check_expiry}, ), ) except PyJWTError: @@ -134,7 +134,7 @@ class LicenseKey: exp_ts = int(mktime(lic.expiry.timetuple())) if total.exp == 0: total.exp = exp_ts - total.exp = min(total.exp, exp_ts) + total.exp = max(total.exp, exp_ts) total.license_flags.extend(lic.status.license_flags) return total diff --git a/authentik/providers/saml/models.py b/authentik/providers/saml/models.py index 5cf410728a..928493b6d5 100644 --- a/authentik/providers/saml/models.py +++ b/authentik/providers/saml/models.py @@ -164,7 +164,7 @@ class SAMLProvider(Provider): ) sign_assertion = models.BooleanField(default=True) - sign_response = models.BooleanField(default=True) + sign_response = models.BooleanField(default=False) @property def launch_url(self) -> str | None: