problem authenticating with strava
-
Hi,
After adding client ID and client secret, I click save, I get prompted to authorize from Strava side, when I am returned to WP the top of the plugin page says
“Authentication failed, please check your credentials.”I can see in the return the URL is &state&code=……… so it looks like strava is returning the auth token, but the plugin isn’t reading it?
-
Anyone available to answer these?
Hi ironmikemusing & csgaraglino,
Apologies for the delay, I can only get to these every few weeks: https://ww.wp.xz.cn/support/topic/support-every-2-weeks/
I’m not sure what version you’re on currently, but some had conflicts with PHP versions and with the Strava API itself. I updated the plugin to 1.2.0 today which has several fixes and updates. Can you update, try it out, and give some feedback?
Hi jrfoell,
I was running beta 1.2.0, have just updated to 1.2.0 and the problem persists.
“Authentication failed, please check your credentials.”
When redirected from strava Auth page the URL returned to is:
options-general.php?page=wp-strava-options&state&code=<long_return_code>My webserver is running PHP 5.6.31
@ironmikemusing – I’m looking at this today, can you email a <long_return_code> to [email protected]? I’d like to inspect it and see if there’s anything unusual.
Hi @csgaraglino and @ironmikemusing – I just noticed that another member had a similar issue to you and for whatever reason removing and reinstalling the plugin worked for him https://ww.wp.xz.cn/support/topic/application-name-not-allowed/#post-9902642
I know it sounds strange, but sometimes there are file permission issues that get messed up during installations and upgrades and it might be worth a shot for you to try as well.
-
This reply was modified 8 years, 4 months ago by
jrfoell.
I have tried many times to remove and re-add the plugin, all without success.
Any chance someone can look at this?
If this fails to get any response i’m going to have to stop (using) trying this plugin. Not that I’ve been able to use it so far, but it would be ace to have strava stats on my WP.It seems like I am getting a 302 response from Strava api, or perhaps it’s my wordpress responding to the strava api? I’m not exactly sure which direction the issue is happening.
This is the response from the debug console in chrome.
https://www.strava.com/oauth/accept_application?client_id=21426&redirect_uri=https%3A%2F%2Fwww.ironmikemusing.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-strava-options&response_type=codeGeneral:
Request URL:https://www.strava.com/oauth/accept_application?client_id=21426&redirect_uri=https%3A%2F%2Fwww.ironmikemusing.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dwp-strava-options&response_type=code
Request Method:POST
Status Code:302 Found
Remote Address:52.3.127.43:443
Referrer Policy:no-referrer-when-downgradeResponse-Headers:
Cache-Control:no-cache
Connection:keep-alive
Content-Length:209
Content-Type:text/html; charset=UTF-8
Date:Fri, 02 Mar 2018 06:45:55 GMT
Location:https://www.ironmikemusing.com/wp-admin/options-general.php?page=wp-strava-options&state=&code=309…………………………..7f5a
Status:302 Found
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN,DENY
X-Request-Id:bf57dd34-….-….-….-7ed9bb0750fb
X-UA-Compatible:chrome=1
X-XSS-Protection:1; mode=block@ironmikemusing – Looking at this today. I’m going to check the HTTPS angle to make sure there aren’t any gotchas there. Thanks for the detailed debug info.
@ironmikemusing – can you try this pre-release update?
https://www.dropbox.com/s/21wnqxu9njjmn0p/wp-strava-1.5.1-rc1.zip?dl=0
I added a urlencode to the redirect_uri – not sure how it was working before without more issues =O Let me know if that helps, if not we’ll keep at it 🙂
Hi @jrfoell I tried the RC version above but still unable to get the plugin to authenticate with the strava API.
Thanks again @ironmikemusing I’ll be releasing it as 1.5.1 soon!
-
This reply was modified 8 years, 4 months ago by
The topic ‘problem authenticating with strava’ is closed to new replies.