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
WordPress OAuth1 returns "No OAuth parameters supplied" #306
Comments
did you try with other API (python, php?) try in a .htaccess file
|
No I haven't tried with other languages other than Swift. However, I did tried with Postman and it worked. On WordPress, I installed |
How exactly do I edit .htaccess file? Here is the old .htaccess
With your suggestion, am I suppose to add it to the end like below?
|
332750b just tested now into the demo app using master head version (now oauthSwift >1.1.0) |
I tried the latest OAuthSwift tip 1.1.0 on my Wordpress site. The current demo project has both
|
please read code to know -11 meaning Did you see your wordpress into webview to login? (please when you describe a problem, describe all the scenario...) have you access to it from simulator |
No I did not see any internal webview that would display the wordpress login. As described above, the code took the failure path on function I will try the osx demo. |
osx demo has the same request error: (OAuthSwiftError error -11.) |
no .htaccess, it was a sugestion due to google result try to update your wordpress and plugins... |
My site is a fresh install too. I've also installed the two plugins: This still left me with OAuthSwiftError error -11. Is anyone other than phimage had a successful authentication with their wordpress? |
Looking through OAuthSwift code, particularly One other note, in Postman, I have to tick Thanks |
If your are successfully logged , post request send the token and token secret (not consumer key and secret) post functions have parameters, there is plenty of example into demo app You can fill body yourself or |
I never had a successful logged on, this is where I'm stuck at. OAuth1 protocol requires three steps:
OAuthSwift execute the first step by sending a
This is where i'm lost because when I set the breakpoint at |
you try to understand oauth1 to debug? all flow is done in https://github.com/OAuthSwift/OAuthSwift/blob/master/Sources/OAuth1Swift.swift there is self.authorizeURLHandler.handle(queryURL) this is where a view is presented to user to login and authorize app the signing process is done in request |
Could the Also, I noticed when performing |
please refer -11 as |
Eric, the Wordpress website that you had a success request before is http or https? |
see demo app : http://localhost/wordpress |
Yep i saw the demo app. I wasn't sure if you entered in a different url in your services.plist file. So seems like we're having a totally different environment. Mine is on production site and yours is on a localhost development. |
I got into the same situation where the server returns "No OAuth parameters supplied". If you made the same mistake I made, this should solve it: |
thanks @kangho99 for the advice I will close (no activity since 20 day) |
kangho99's answer was exactly my problem as well. You will get an OAuthSwiftError -11 if the "withCallbackURL" parameter does not match EXACTLY what is in WordPress under Users -> Applications -> App -> Callback |
I was having the same issue on Wordpress 4.7 with WP REST API OAuth server 1.0a Solved it by adding this line before calling the authorize function:
Where oauthswift is a OAuth1Swift instance. Hope this helps if somebody is having this issue. |
Description:
I'm running OAuth1 against wordpress but receiving 400 error code: "No OAuth parameters supplied"
Here is the test functions:
OAuth Provider (WordPress):
WP REST API - OAuth 1.0a Server
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
8.0 (Swift 3.0)
8.0 (Swift 2.3)
7.3.1
other: (8.1)
objective c
The text was updated successfully, but these errors were encountered: