[GH-ISSUE #226] Setting scope for OAuth1 #124

Closed
opened 2026-03-03 16:45:53 +03:00 by kerem · 2 comments
Owner

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")?

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")?
kerem closed this issue 2026-03-03 16:45:53 +03:00
Author
Owner

@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)

<!-- gh-comment-id:217747381 --> @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)
Author
Owner

@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",

<!-- gh-comment-id:217748185 --> @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",
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#124
No description provided.