enterprise: fix incorrect comparison for latest validity date (#11109) Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Jens L. <jens@goauthentik.io>
This commit is contained in:
committed by
GitHub
parent
6ee77edcbb
commit
091e4d3e4c
@ -117,7 +117,7 @@ class LicenseKey:
|
|||||||
our_cert.public_key(),
|
our_cert.public_key(),
|
||||||
algorithms=["ES512"],
|
algorithms=["ES512"],
|
||||||
audience=get_license_aud(),
|
audience=get_license_aud(),
|
||||||
options={"verify_exp": check_expiry},
|
options={"verify_exp": check_expiry, "verify_signature": check_expiry},
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
except PyJWTError:
|
except PyJWTError:
|
||||||
@ -134,7 +134,7 @@ class LicenseKey:
|
|||||||
exp_ts = int(mktime(lic.expiry.timetuple()))
|
exp_ts = int(mktime(lic.expiry.timetuple()))
|
||||||
if total.exp == 0:
|
if total.exp == 0:
|
||||||
total.exp = exp_ts
|
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)
|
total.license_flags.extend(lic.status.license_flags)
|
||||||
return total
|
return total
|
||||||
|
|
||||||
|
|||||||
@ -164,7 +164,7 @@ class SAMLProvider(Provider):
|
|||||||
)
|
)
|
||||||
|
|
||||||
sign_assertion = models.BooleanField(default=True)
|
sign_assertion = models.BooleanField(default=True)
|
||||||
sign_response = models.BooleanField(default=True)
|
sign_response = models.BooleanField(default=False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def launch_url(self) -> str | None:
|
def launch_url(self) -> str | None:
|
||||||
|
|||||||
Reference in New Issue
Block a user