api: fix linting error

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-04-13 21:49:41 +02:00
parent 3d9874be69
commit 85c9fbe763
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ from authentik.core.models import Token, TokenIntents, User
LOGGER = get_logger() LOGGER = get_logger()
# pylint: disable=too-many-return-statements
def token_from_header(raw_header: bytes) -> Optional[Token]: def token_from_header(raw_header: bytes) -> Optional[Token]:
"""raw_header in the Format of `Basic dGVzdDp0ZXN0`""" """raw_header in the Format of `Basic dGVzdDp0ZXN0`"""
auth_credentials = raw_header.decode() auth_credentials = raw_header.decode()