[GH-ISSUE #40] oauth_token in request? #22

Closed
opened 2026-03-03 16:44:53 +03:00 by kerem · 1 comment
Owner

Originally created by @gabriel-jones on GitHub (Mar 26, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/40

Under the OAuthSwiftClient, authorizationHeaderForMethod function, the authorisation parameters do not include oauth_token when I try to do a request. I tested it out, and oauth_token is an empty string, so it's not being included. I think this is why my request is not working -- can anybody tell me how to include the oauth_token into the request?

I'm initialising the OAuth1Swift class in my main View Controller. Therefore I don't think I can get the oauth_token until I initialise it, which is not happening before the authorizationHeaderForMethod, so I don't get a value. Any ideas?

Originally created by @gabriel-jones on GitHub (Mar 26, 2015). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/40 Under the OAuthSwiftClient, authorizationHeaderForMethod function, the authorisation parameters do not include oauth_token when I try to do a request. I tested it out, and oauth_token is an empty string, so it's not being included. I think this is why my request is not working -- can anybody tell me how to include the oauth_token into the request? I'm initialising the OAuth1Swift class in my main View Controller. Therefore I don't think I can get the oauth_token until I initialise it, which is not happening before the authorizationHeaderForMethod, so I don't get a value. Any ideas?
kerem closed this issue 2026-03-03 16:44:53 +03:00
Author
Owner

@Berdikhan commented on GitHub (Apr 7, 2015):

I have a same issue...
I want to do a GET request, but I got token_rejected error message (I did authentication before and I have an access token)

<!-- gh-comment-id:90471142 --> @Berdikhan commented on GitHub (Apr 7, 2015): I have a same issue... I want to do a GET request, but I got token_rejected error message (I did authentication before and I have an access token)
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#22
No description provided.