Connect OAuth2 credentials request issue #18
-
I have the organization setup, and the iP entered. I can GET the authorization code, then able to PUT to obtain the token, no errors. But at the last step, when doing a final GET I just get the main VATSIM signin screen rather than a json string. From the docs you need for the final step ...
There appears to be a missing single quote in the description, which may be the ambiguity I'm hitting. With my urlencoded GET call, let's just (way) shorten the token to 0123, I have ...
I have also tried using:
What am I doing wrong? Seems I'm just one step away.
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 5 replies
-
I have not used that API, but the problem is probably that you are trying to encapsulate the data in the URL, but it is meant to be sent as HTTP headers. |
Beta Was this translation helpful? Give feedback.
header("Authorization: Bearer 01234");
That looks like PHP. Have you checked out ready-to-use VATSIM provider that already implemented /user (haven't tried it but looks like what you need).