OTA-Insight / djangosaml2idp

SAML 2.0 Identity Provider in Django
Apache License 2.0
104 stars 96 forks source link

Timezone information is stripped from metadata validity timestamp #152

Open nmeheus opened 1 year ago

nmeheus commented 1 year ago

Within the ServiceProvider model, the timezone information is stripped from the metadata_expiration_dt field on multiple occasions. This causes errors when comparing to timezone aware datetimes. Ideally the meta attribute is used as is, given that it should be using a timezone aware datetime format.