diff --git a/authentik/events/geo.py b/authentik/events/geo.py index 55296a998..b5b75e93b 100644 --- a/authentik/events/geo.py +++ b/authentik/events/geo.py @@ -1,7 +1,5 @@ """events GeoIP Reader""" -from datetime import datetime from os import stat -from time import time from typing import Optional, TypedDict from geoip2.database import Reader diff --git a/authentik/providers/oauth2/views/authorize.py b/authentik/providers/oauth2/views/authorize.py index 0ad3e624a..424d8ec58 100644 --- a/authentik/providers/oauth2/views/authorize.py +++ b/authentik/providers/oauth2/views/authorize.py @@ -155,7 +155,7 @@ class OAuthAuthorizationParams: """Redirect URI validation.""" allowed_redirect_urls = self.provider.redirect_uris.split() # We don't want to actually lowercase the final URL we redirect to, - # we only lowercase it for comparsion + # we only lowercase it for comparison redirect_uri = self.redirect_uri.lower() if not redirect_uri: LOGGER.warning("Missing redirect uri.")