Skip to content

[18.0][IMP] delivery_ups_oca: add token refresh#1190

Open
KDRdev wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-imp-add-token-refresh
Open

[18.0][IMP] delivery_ups_oca: add token refresh#1190
KDRdev wants to merge 1 commit into
OCA:18.0from
Nitrokey:18.0-imp-add-token-refresh

Conversation

@KDRdev
Copy link
Copy Markdown

@KDRdev KDRdev commented May 20, 2026

No description provided.

@KDRdev KDRdev force-pushed the 18.0-imp-add-token-refresh branch from 86da059 to ca3fd7e Compare May 27, 2026 13:59
@jans23
Copy link
Copy Markdown

jans23 commented May 29, 2026

@carlos-lopez-tecnativa it would be great if you could review this.

self._get_new_token()
status = self._send_request(url, json, data, headers, method)
status = status.json()
headers["Authorization"] = f"Bearer {self.token}"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change the only code that actually does something?

All the remaining code is only adding debug logging. If that is correct, then to minimize the diff and avoid logging this data, please remove all code related to logging.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean it's better to create a separate PR for logging? I think it's still needed, but would gladly read your opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants