summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/libs/key_auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/api/graphql/libs/key_auth.py')
-rw-r--r--src/services/api/graphql/libs/key_auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/services/api/graphql/libs/key_auth.py b/src/services/api/graphql/libs/key_auth.py
index 9e49a1203..ffd7f32b2 100644
--- a/src/services/api/graphql/libs/key_auth.py
+++ b/src/services/api/graphql/libs/key_auth.py
@@ -14,7 +14,8 @@
# along with this library. If not, see <http://www.gnu.org/licenses/>.
-from ... session import SessionState
+from ...session import SessionState
+
def check_auth(key_list, key):
if not key_list:
@@ -25,6 +26,7 @@ def check_auth(key_list, key):
key_id = k['id']
return key_id
+
def auth_required(key):
state = SessionState()
api_keys = None