Skip to content

Commit 5b452af

Browse files
Merge #239
239: Using 'Authorization: Bearer' according to rfc6750 r=alallema a=buehlmann # Pull Request ## What does this PR do? This pr fixes the authorization header when authenticating against resources protected by gatekeeper. According to https://datatracker.ietf.org/doc/html/rfc6750#section-2.1 the authorization header must follow the convention `Authorization: Bearer <token>` Co-authored-by: Benjamin Bühlmann <[email protected]>
2 parents 5863acb + a94b8fc commit 5b452af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scraper/src/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def run_config(config):
7777
client_secret=os.getenv("KC_CLIENT_SECRET"))
7878
token_response = oidc_client.client_credentials()
7979
token = token_response["access_token"]
80-
headers.update({"Authorization": 'bearer ' + token})
80+
headers.update({"Authorization": 'Bearer ' + token})
8181

8282
DEFAULT_REQUEST_HEADERS = headers
8383

0 commit comments

Comments
 (0)