Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,11 @@ def set_authorization_header(self, request, challenge):
challenge.get_authorization_server(),
challenge.get_resource(),
challenge.get_scope())
request.headers['Authorization'] = '{} {}'.format(auth[0], auth[1])

# Due to limitations in the service we hard code the auth scheme to 'Bearer' as the service will fail with any other
# scheme or a different casing such as 'bearer', once this is fixed the following line should be replace with:
# request.headers['Authorization'] = '{} {}'.format(auth[0], auth[1])
request.headers['Authorization'] = '{} {}'.format('Bearer', auth[1])


class KeyVaultAuthentication(OAuthTokenAuthentication):
Expand Down