Comments (3)
Updated the code to sort the oauth parameters according to 3.5.2.
sorted form-encoded oauth parameters change.zip
from ohhauth.
Very nice, thanks.
In line 211 you just merge the two parameter dictionaries into one, so the resulting parameters would be in random order. However RFC5849 section 3.5.2 says they must appended.
The entity-body MAY include other request-specific parameters, in which case, the protocol parameters SHOULD be appended following the request-specific parameters, properly separated by an "&" character (ASCII code 38).
I have seen OAuth 1 servers to be very strict with parameter ordering before, so that could be a problem. However I have just glanced over your code, so I could be wrong. I will take a closer look when I have the time. Thanks!!
from ohhauth.
Good catch, looks like my server is more permissive than others. I'll take a look.
from ohhauth.
Related Issues (7)
- Will this be updated for Swift 4? HOT 2
- Verification of signature fails when converting request tokens to access tokens HOT 1
- cannot hit oauth/request_token endpoint HOT 4
- Request with OAuth Query parameters HOT 2
- Internal method HOT 2
- URLs with percent encoded properties in incorrect signature HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ohhauth.