Skip to content

Commit

Permalink
Merge pull request #329 from luqmansen/develop
Browse files Browse the repository at this point in the history
refactor(auth): Use `self.authenticate_header()` in `authenticate()` method to get auth header prefix
  • Loading branch information
giovannicimolin authored Jan 28, 2024
2 parents ad1eca6 + 4015993 commit 271179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knox/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TokenAuthentication(BaseAuthentication):

def authenticate(self, request):
auth = get_authorization_header(request).split()
prefix = knox_settings.AUTH_HEADER_PREFIX.encode()
prefix = self.authenticate_header(request).encode()

if not auth:
return None
Expand Down

0 comments on commit 271179a

Please sign in to comment.