Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

Access token from Authorization Code Flow requires specific parameter order

Access token from Authorization Code Flow requires specific parameter order

Plan

Premium

Country

France

Operating System

Windows 10

My Question or Issue

Hello,

I'm new to the Spotify community. I'm trying to implement Oauth2 in my application and it seems like I found a bug. Normally speaking, HTTP parameters does not have any order and you can provide them in the order you want. When asking to retrieve an Access Token form the Authorization Code Flow, I found out that order is important with the same valid parameters in different orders you can obtain either a 400 HTTP error with no info or a 200 valid response with a token.

https://developer.spotify.com/documentation/general/guides/authorization/code-flow/#request-access-t...

 

Can you either fix this bug and allow to pass parameters in any order or at explicitly write in the page that parameter order has meaning and give more information in the response than a raw 400 error ? 

I linked some screenshot from my Python test requests.

 

Thanks for your time,

Hylectrif 

valid_request.PNG
invalid_request.PNG
Reply
0 Replies

Suggested posts