mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #226] Setting scope for OAuth1 #124
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#124
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?
Originally created by @nsbarr on GitHub (May 8, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/226
I'm sorry if this isn't the right place to post this question, but I don't understand how to set permissions with the authorizeWithCallbackURL method for oauth1swift.
My specific need is to set scope:"read,write" for Trello. Trello uses oauth1. How would I set this and other parameters (eg., "name")?
@phimage commented on GitHub (May 8, 2016):
There is no scope in oauth version 1 protocol, that's why there is no specific parameter
You can add in the url scope=...
Or maybe there is 'parameters' dictionary (i can't check now)
@nsbarr commented on GitHub (May 8, 2016):
Thank you for the help. In case anyone else runs into this:
Trello docs: https://developers.trello.com/authorize
I was able to set parameters via the authorizeURL parameters, like this:
authorizeUrl: "https://trello.com/1/OAuthAuthorizeToken?name=helloapp&expiration=30days&scope=read,write",