Skip to content

Commit c05216a

Browse files
committed
Security HTTP provider fix
1 parent 89ec335 commit c05216a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

openapi_core/security/providers.py

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import warnings
33

44
from openapi_core.security.exceptions import SecurityError
5-
from openapi_core.security.util import b64decode
65

76

87
class BaseProvider(object):
@@ -40,7 +39,5 @@ def __call__(self, request):
4039
if auth_type.lower() != self.scheme.scheme.value:
4140
raise SecurityError(
4241
'Unknown authorization method %s' % auth_type)
43-
try:
44-
return b64decode(encoded_credentials).decode('latin1')
45-
except binascii.Error:
46-
raise SecurityError('Invalid base64 encoding.')
42+
43+
return encoded_credentials

openapi_core/security/util.py

-9
This file was deleted.

0 commit comments

Comments
 (0)