From 72259f64795e6211b0bcd366d116b99cf66a67b6 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Mon, 14 Feb 2022 23:15:45 +0100 Subject: [PATCH] events: fix lint Signed-off-by: Jens Langhammer --- authentik/events/geo.py | 2 -- authentik/providers/oauth2/views/authorize.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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.")