[PR #645] [CLOSED] allow customization of authorizeURL #699

Closed
opened 2026-03-03 17:29:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/645
Author: @daironmichel
Created: 2/19/2021
Status: Closed

Base: masterHead: master


📝 Commits (1)

  • 00ed2d4 allow customization of authorizeURL

📊 Changes

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

View changed files

📝 Sources/OAuth1Swift.swift (+10 -5)

📄 Description

This resolves #644

This way you can subclass Oauth1Swift and return your own authorize url string

class EtradeOAuth1Swift: OAuth1Swift {
  override func getAuthorizeURLString(authorizeURL: String, requestToken: String, consumerKey: String, callbackURL: String) -> String {
    return "\(authorizeURL)?key=\(consumerKey)&token=\(requestToken)";
  }
}

🔄 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/645 **Author:** [@daironmichel](https://github.com/daironmichel) **Created:** 2/19/2021 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`00ed2d4`](https://github.com/OAuthSwift/OAuthSwift/commit/00ed2d481870f533cdffb887603196b9817cf62c) allow customization of authorizeURL ### 📊 Changes **1 file changed** (+10 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `Sources/OAuth1Swift.swift` (+10 -5) </details> ### 📄 Description This resolves #644 This way you can subclass `Oauth1Swift` and return your own authorize url string ``` class EtradeOAuth1Swift: OAuth1Swift { override func getAuthorizeURLString(authorizeURL: String, requestToken: String, consumerKey: String, callbackURL: String) -> String { return "\(authorizeURL)?key=\(consumerKey)&token=\(requestToken)"; } } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 17:29:44 +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#699
No description provided.