Comments (9)
U shoul use the provided token to make the authenticated requests
from oauth1.
Isn't this token supposed to be passed to my server via the callback? All I'm getting is page, show to the user, with the token. The callback isn't being called.
from oauth1.
I bet u r right. This is as far as i got too.
from oauth1.
@sblaz Do your commits work or just WIP? Would love to see a PR for this. Currently stuck here ourselves.
from oauth1.
I believe so, yes, although I was planning on doing a bit more testing before submitting a pull request. I was able to successfully authenticate with an OAuthSwift client after applying this and a couple of other patches - I'm not sure what happens if you just try to apply this one by itself. It's pretty simple, though, if you look at it, the oauth_callback parameter wasn't getting saved along with the other request token stuff.
from oauth1.
@sblaz Yup -- does look like that. Currently using your master branch -- removes the restrictive wp_http_validate_url looks like.
from oauth1.
Yes, that's right - I started by applying #33 but then wanted to use a custom url scheme so relaxed the validation further. Also had some issues with double-encoding of the oauth_callback parameter value. Applied #65 and then removed the two rawurlencode() calls in join_with_equals_sign() and it seems to be copacetic.
from oauth1.
Those changes got it working for me with OAuthSwift.
from oauth1.
In my case, normalize_parameters() is really messing up my already partially encoded parameters, so by removing normalize_parameters() instead, I was able to keep the rawurldecode() calls.
See: #91
@sblaz , I have created a PR which merges your changes with AlexC's and removes normalize_parameters() in favor of encoding them in the join_with_equals_sign() function: #92
If you're interested, would you mind checking out my approach and let me know if it works for you? I'll leave the callback-fix branch on my fork available for testing.
Thanks!
from oauth1.
Related Issues (20)
- OAuth signature not matched when data is url encoded HOT 4
- OPTIONS request returns 401 with OAuth parameters
- Athenticated requests return 401 when Wordpress cookies are available HOT 1
- getallheaders() may not return array
- Auth token for lifetime ?
- "nonces" cell in user meta HOT 1
- Media upload with OAuth1 HOT 1
- Post to wordpress via rest HOT 1
- Creating correct oauth signature with Java HOT 1
- Store access tokens as a post type HOT 2
- Need updated testing against recent WP versions
- I get back 404 every time if I try with rauth, but I tried with requests and it worked fine?
- oauth1/access endpoint is returning the Wordpress site index on 4.9
- ionic 3 Cors issue
- how to get dynamicaly user data with main auth token and token secrete
- Is wp_scope implemented? HOT 1
- PHP 8.0 warning thrown by normalize_parameters HOT 8
- PHP 8.3 compatibility - Deprecated: Calling get_class() without arguments is deprecated HOT 3
- 0.4.2 change summary? HOT 2
- "OAuth signature does not match" error after upgrade to 0.4.2 HOT 3
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 oauth1.