Skip to content

Commit

Permalink
Fix missing auth for OGP tags
Browse files Browse the repository at this point in the history
See commit 381a5e4
This refs WEB-4121
  • Loading branch information
laulaz committed Sep 10, 2024
1 parent a983cc9 commit 4594499
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Changelog
1.2.69 (unreleased)
-------------------

- WEB-4121 : Fix missing auth for OGP tags
See commit 381a5e422d8705f86c434d2f0d4bd099938b9cc3
[laulaz]

- WEB-3995 : Add temporary debug annotation to verify section hash updates
[laulaz, remdub]

Expand Down
2 changes: 1 addition & 1 deletion src/imio/smartweb/core/viewlets/ogptags.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def set_ogp_informations_for_item(self):
client_secret = os.environ.get("RESTAPI_NEWS_CLIENT_SECRET")
auth = get_wca_token(client_id, client_secret)
auth_source_url = f"{auth_source_url}/{endpoint}?UID={uid}&{params}"
result_json = get_json(auth_source_url, auth=None)
result_json = get_json(auth_source_url, auth=auth)
if result_json:
self._item = result_json["items"][0]
self._set_image()
Expand Down

0 comments on commit 4594499

Please sign in to comment.