Jump to content

You're browsing the 2004-2023 VATSIM Forums archive. All content is preserved in a read-only fashion.
For the latest forum posts, please visit https://forum.vatsim.net.

Need to find something? Use the Google search below.
PLEASE READ - Webmaster Support Forum
This forum will be retired in the near future. Please direct all queries to our dedicated GitHub support page https://github.com/vatsimnetwork/developer-info/discussions 
Here you can find documentation on our services and we are continuing to migrate pertinent information into the Wiki pages https://github.com/vatsimnetwork/developer-info/wiki

Dev Environment - missing "client_id"


Will Smart
 Share

Recommended Posts

Will Smart
Posted
Posted

Hi all,

I'm currently testing one of our division's web apps, but when POSTing to https://auth-dev.vatsim.net/oauth/token, I'm getting a 400 error "Missing parameter \"client_id\".". This has only started happening recently. I have tried creating a new oauth client in Connect, but this hasn't helped either.

Please see below screenshot for more info on the error I'm getting.

image.thumb.png.604728ecde0fb2b55e945fa434f49c89.png

Thanks in advance for any help anyone is able to offer.

Cheers,
Will

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Hi Will, we have recently pushed an update to that environment which will eventually make it to production.

Per the OAuth2 spec, you should NOT be POSTing JSON to the /oauth/token endpoint, and should be POSTing the parameters using "application/x-www-form-urlencoded" format.

All the best,

Me.

Link to comment
Share on other sites

Will Smart
Posted
Posted

Cheers Nestor, thanks for getting back to me

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Anytime!

P.D: If you're not in the Development Discord feel free to drop me an email for an invite. I announced the update I pushed last night in there 😛

  • Thanks 1

Me.

Link to comment
Share on other sites

Martijn Rammeloo
Posted
Posted

@Nestor Perez, is that the VATSIM development & tech discord? I must have missed that message then :-(.

Martijn

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

It is indeed! Check the #tech-announcements channel 🙈😆

Me.

Link to comment
Share on other sites

Martijn Rammeloo
Posted
Posted

Weird, no such channel...

 

 

Knipsel.PNG

Link to comment
Share on other sites

Nestor Perez
Posted
Posted (edited)

Pokes people

Now you can 🙂

Figuring stuff out, 1 sec

Sorted

Edited by Nestor Perez
  • Thanks 1

Me.

Link to comment
Share on other sites

Daniel Lange
Posted
Posted

If there's a #tech-announcement channel, it sounds like something I should have access to as well? 😅

I saw the post in #network-notices but it didn't elaborate much on what exactly has been changed.

Daniel Lange

Web Services Director
Vatsim Scandinavia

[email protected]

Link to comment
Share on other sites

Nestor Perez
Posted
Posted

Yeah because nothing's technically changed for the users, but it's a complete rewrite on the backend.

Me.

Link to comment
Share on other sites

  • 2 weeks later...
Nestor Perez
Posted
Posted

Update: In case of POSTing an invalid content type the error message now specifies that the error is the content type instead of a missing parameter.

Me.

Link to comment
Share on other sites

 Share