Skip to main content
Solved

I can't log in to Swagger Playground


Forum|alt.badge.img

Hello. 

I created app. According to the instructions, I filled it out for testing to Swagger Playground. 

But when I try to log in, I get an error in the response:

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

request url:

https://www.strava.com/api/v3/oauth/authorize?response_type=code&client_id=117684&redirect_uri=https%3A%2F%2Fdevelopers.strava.com%2Foauth2-redirect%2F&scope=read&state=U3VuIERlYyAwMyAyMDIzIDIxOjA3OjQzIEdNVCswNzAwICjQndC%2B0LLQvtGB0LjQsdC40YDRgdC6LCDRgdGC0LDQvdC00LDRgNGC0L3QvtC1INCy0YDQtdC80Y8p

What am I doing wrong?

Best answer by selimy

Hello @SkippyVasquez,

Unfortunately, the issue is still there. I guess I could discover the reason;

  • Go to page: Swagger UI
  • Use the “Authorize” button at top-right
  • Then the “Available authorizations” modal box opens.
  • Fill-in Client_id and Client_secret
  • If you select multiple “scopes” at the bottom, you’ll see that the selected scope options are merged by “space” in the URL and not by comma as suggested.

SAMPLE:

https://www.strava.com/api/v3/oauth/authorize?response_type=code&client_id=******&redirect_uri=https%3A%2F%2Fdevelopers.strava.com%2Foauth2-redirect%2F&scope=profile%3Aread_all%20activity%3Aread_all&...

 

Hope this helps. And hope you can fix is fast :).

Merry Christmas….

 

View original
Did this topic help you find an answer to your question?

SkippyVasquez
Community Manager
Forum|alt.badge.img+21

Hey miv,

Thanks for the post. Can you tell me if you are still experiencing this issue?

 


Forum|alt.badge.img+1
  • Hub Starter
  • December 26, 2024

Hello @SkippyVasquez,

Unfortunately, the issue is still there. I guess I could discover the reason;

  • Go to page: Swagger UI
  • Use the “Authorize” button at top-right
  • Then the “Available authorizations” modal box opens.
  • Fill-in Client_id and Client_secret
  • If you select multiple “scopes” at the bottom, you’ll see that the selected scope options are merged by “space” in the URL and not by comma as suggested.

SAMPLE:

https://www.strava.com/api/v3/oauth/authorize?response_type=code&client_id=******&redirect_uri=https%3A%2F%2Fdevelopers.strava.com%2Foauth2-redirect%2F&scope=profile%3Aread_all%20activity%3Aread_all&...

 

Hope this helps. And hope you can fix is fast :).

Merry Christmas….

 


Forum|alt.badge.img+1
  • Hub Rookie
  • December 29, 2024

@selimy, Thank you.  I had the same issue yesterday on the Swagger UI site (https://developers.strava.com/playground/). 

 

I had clicked on the unlocked “Authorize” button and selected two scopes.  I replaced the “%20” (space) with a “,” and it allowed my user to be Authorized successfully (the lock icon closed).

 

If I recall, this workaround was not necessary when I used the site a few months ago.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept, you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings