[PR #335] [MERGED] Make requestOAuthAccessToken open #605

Closed
opened 2026-03-03 16:49:40 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/335
Author: @wesley-dynamicowl
Created: 2/10/2017
Status: Merged
Merged: 2/14/2017
Merged by: @phimage

Base: masterHead: patch-1


📝 Commits (2)

  • ed6cf96 Make requestOAuthAccesToken open
  • 6c329a7 Add parameters parameter to renewAccessToken

📊 Changes

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

View changed files

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

📄 Description

We have an interesting use case with Microsoft's OAuth (Azure AD, Graph API, Outlook API, etc)

Oauth tokens are scoped to a single resource. However, Microsoft allows refresh tokens to be used to request additional tokens for other resources. The easiest way to do this is to call requestOAuthAccessToken for each additional resource we intend to use with the additional resource parameters we need to specify.

Opening requestOAuthAccessToken makes it much simpler for us to request additional access tokens.


🔄 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/335 **Author:** [@wesley-dynamicowl](https://github.com/wesley-dynamicowl) **Created:** 2/10/2017 **Status:** ✅ Merged **Merged:** 2/14/2017 **Merged by:** [@phimage](https://github.com/phimage) **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (2) - [`ed6cf96`](https://github.com/OAuthSwift/OAuthSwift/commit/ed6cf9669d881775dcb420b6bd34814d19ca2c84) Make requestOAuthAccesToken open - [`6c329a7`](https://github.com/OAuthSwift/OAuthSwift/commit/6c329a7c01c87c202594f1b0ad3f9411e1a9d1a8) Add `parameters` parameter to renewAccessToken ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Sources/OAuth2Swift.swift` (+2 -2) </details> ### 📄 Description We have an interesting use case with Microsoft's OAuth (Azure AD, Graph API, Outlook API, etc) Oauth tokens are scoped to a single resource. However, Microsoft allows refresh tokens to be used to request additional tokens for other resources. The easiest way to do this is to call requestOAuthAccessToken for each additional resource we intend to use with the additional resource parameters we need to specify. Opening requestOAuthAccessToken makes it much simpler for us to request additional access tokens. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:49:40 +03:00
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#605
No description provided.