Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth1 does not work for paginated request #23

Closed
MitjaBezensek opened this issue Oct 16, 2015 · 6 comments
Closed

OAuth1 does not work for paginated request #23

MitjaBezensek opened this issue Oct 16, 2015 · 6 comments

Comments

@MitjaBezensek
Copy link
Owner

The pagination seems to break the OAuth1 authentication. The problem is that the url is just appened to the base url of the resource. For OAuth1 this is problematic since oauth_signature is calculated based on it.

The solution might be quite simple. We should pass a List of parameters to the ExecuteRequest method which will then just add them as parameters like so: request.AddParameter("pagelen", 30);

I have tested this and it works. @0x1mason are you up for this one since you might be the most familiar with the logic of pagingation?

@0x1mason
Copy link

I'll try to take a look at it next week.
On Oct 16, 2015 4:56 PM, "Mitja Bezenšek" notifications@github.com wrote:

The pagination that @0x1mason https://github.com/0x1mason added seems
to break the OAuth1 authentication. The problem is that the url is just
appened to the base url of the resource. For OAuth1 this is problematic
since oauth_signature is calculated based on it.

The solution might be quite simple. We should pass a List of parameters to
the ExecuteRequest method which will then just add them as parameters
like so: request.AddParameter("pagelen", 30);

I have tested this and it works. @0x1mason https://github.com/0x1mason
are you up for this one since you might be the most familiar with the logic
of pagingation?


Reply to this email directly or view it on GitHub
#23.

@MitjaBezensek
Copy link
Owner Author

Great 👍

@MitjaBezensek
Copy link
Owner Author

Did you maybe start on this? I'll have some time tomorrow and could take this on, but don't want to duplicate the effort :)

@0x1mason
Copy link

I'll have time next week. Sorry, been quite busy.
On Oct 31, 2015 3:27 AM, "Mitja Bezenšek" notifications@github.com wrote:

Did you maybe start on this? I'll have some time tomorrow and could take
this on, but don't want to duplicate the effort :)


Reply to this email directly or view it on GitHub
#23 (comment)
.

@0x1mason
Copy link

However, if you think you can knock it out quickly, then by all means, go
ahead. I'm no longer working at the company that requires this library, so
I won't be contributing as much, unfortunately.
On Oct 31, 2015 3:27 AM, "Mitja Bezenšek" notifications@github.com wrote:

Did you maybe start on this? I'll have some time tomorrow and could take
this on, but don't want to duplicate the effort :)


Reply to this email directly or view it on GitHub
#23 (comment)
.

@MitjaBezensek
Copy link
Owner Author

Yeah, no problem. I have some spare time so I'll tackle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants