[PR #681] Respect basic auth and content type in renewAccessToken #718

Open
opened 2026-03-03 17:29:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/681
Author: @01100010011001010110010101110000
Created: 11/1/2021
Status: 🔄 Open

Base: masterHead: refresh-respect-settings


📝 Commits (1)

  • 3c40978 Respect basic auth and content type in renewAccessToken

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 Sources/OAuth2Swift.swift (+1 -1)

📄 Description

renewAccessToken does not currently respect contentType or accessTokenBasicAuthentification, causing certain refresh operations to fail because they lack the auth header. This fixes that by passing those parameters through in the same manner as requestOAuthAccessToken


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OAuthSwift/OAuthSwift/pull/681 **Author:** [@01100010011001010110010101110000](https://github.com/01100010011001010110010101110000) **Created:** 11/1/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `refresh-respect-settings` --- ### 📝 Commits (1) - [`3c40978`](https://github.com/OAuthSwift/OAuthSwift/commit/3c40978b5a34d65a7f6c703dc4090841430d326b) Respect basic auth and content type in renewAccessToken ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `Sources/OAuth2Swift.swift` (+1 -1) </details> ### 📄 Description `renewAccessToken` does not currently respect `contentType` or `accessTokenBasicAuthentification`, causing certain refresh operations to fail because they lack the auth header. This fixes that by passing those parameters through in the same manner as `requestOAuthAccessToken` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#718
No description provided.