-
Notifications
You must be signed in to change notification settings - Fork 29
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
Strava asking for 'client_secret' field #23
Comments
To be sure, the Strava Authentication guide gives this example.
|
I added this line to makeTokenRequest and Strava is happy now.
Perhaps this should be an option somehow? |
Jeez... One more major provider which can't read the specs 😭 ... From the OAuth 2.0 RFC - section 2.3.1:
In this context the "authorization server" is the Strava API. This library sticks to the former approach and always provides the client secret as a HTTP Authentication header as it should since the server MUST support it. I'd suggest contacting Strava about this if you can because that's a fault on their side. In the meantime, your work-around would do indeed. |
I came to the same conclusion, but without knowledge of the standards. I shall contact Strava. Who knows, they may fix it. Thank you for confirming that my change was valid. I have to say, it was very easy to find the right place - your code is better organised than mine! |
In their case it's easy to fix because it'll be an additive change. It's not like Facebook who has it completely broken from the start using non standard naming and deviating from the specs in many aspects. They can't change anything without inducing a breaking change in all their clients.
Thank you! Keep in mind it's version 7.x.x 😄 ... that has been refined a few times already! |
Hi. Getting to grips with this code, with the aim of connecting my Elm app to Strava (popular with runners and cyclists, you may know). I am using OAuth.AuthorizationCode and getting as far as requesting a token. I am supplying my client secret in getAccessToken
but Strava's response is
Looking at your code, it seems to append the secret to the id :.
What am I missing? Could I just append another field to the url?
Pete Ward
The text was updated successfully, but these errors were encountered: