strava-oauth icon indicating copy to clipboard operation
strava-oauth copied to clipboard

Redirect uri error

Open GoNzCiD opened this issue 6 years ago • 5 comments

Hi, I've build the docker image and run container.

If I setup environment variable APP_URL to my service url, the method /authorize always return the error:

{
  "message": "Bad Request",
  "errors": [
    {
      "resource": "Application",
      "field": "redirect_uri",
      "code": "invalid"
    }
  ]
}

If not it try to redirect to localhost, and It doesn't work, if I rewrite the url to my correct ip of docker host It shows correctly the expected json result.

GoNzCiD avatar Oct 26 '19 15:10 GoNzCiD

Hi,

the quick cross-check - does the domain of redirect url corresponds to the domain you set in the Strava application settings?

Otherwise, I've fixed some inconsistencies and updated the Readme. Please git pull and let me know whether new instructions helped to solve your problem.

sladkovm avatar Oct 28 '19 19:10 sladkovm

Yes, I set the domain in strava app. I'll try and comment with the new changes.

GoNzCiD avatar Nov 08 '19 08:11 GoNzCiD

@GoNzCiD have you succeeded ?

akpamaboris avatar Jun 02 '21 12:06 akpamaboris

@zeliwipin it was some time ago, and I can't remember... I was finding the OAuth for a concrete sample, but I don't remember if I use this or other implementations, or any adaptation... sorry :(

GoNzCiD avatar Jun 03 '21 18:06 GoNzCiD

@GoNzCiD : thank you, good news, my team finally succeeded implementing the Oauth system with Strava

akpamaboris avatar Jun 03 '21 18:06 akpamaboris