mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-27 05:05:51 +03:00
[PR #37] [MERGED] Allow base authorizeUrl to contain query string #494
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/37
Author: @danielhill
Created: 3/20/2015
Status: ✅ Merged
Merged: 3/21/2015
Merged by: @dongri
Base:
master← Head:master📝 Commits (2)
9ba3bd4If authorizeUrl contains a query string already, append an ampersand23e9502Change FitBit authorizeUrl to pass in display=touch parameter, for📊 Changes
3 files changed (+3 additions, -3 deletions)
View changed files
📝
OAuthSwift/OAuth1Swift.swift(+1 -1)📝
OAuthSwift/OAuth2Swift.swift(+1 -1)📝
OAuthSwiftDemo/ViewController.swift(+1 -1)📄 Description
Currently, OAuth1Swift and OAuth2Swift append query string parameters to authorizeUrl with no regard as to whether a query string already exists, resulting in URL's like http://example.com/oauth/authorize?display=touch?oauth_token=12345
This pull request changes this functionality to check to see if a ? is already present in the URL. If so, it will append a & before further parameters, otherwise a ? is used.
I've also updated the FitBit demo to pass in the display=touch parameter, as making that work was the whole point of this modification.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.