diff options
| author | John Estabrook <jestabro@vyos.io> | 2024-09-30 20:40:02 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2024-09-30 21:56:06 -0500 |
| commit | 7e23fd9da028b3c623b69fda8a6bcfd887f1c18c (patch) | |
| tree | b3b4e32a845f7635a1107feaa6a287eb9121818f /src/services/api/graphql/libs/key_auth.py | |
| parent | 40d966310cb5d8d758f7fa801facd0a560795783 (diff) | |
| download | veeos-1x-7e23fd9da028b3c623b69fda8a6bcfd887f1c18c.tar.gz veeos-1x-7e23fd9da028b3c623b69fda8a6bcfd887f1c18c.zip | |
http-api: T6736: normalize formatting
Diffstat (limited to 'src/services/api/graphql/libs/key_auth.py')
| -rw-r--r-- | src/services/api/graphql/libs/key_auth.py | 4 |
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 |
