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

Laravel login problem


Aleksa Eric
 Share

Recommended Posts

Aleksa Eric
Posted
Posted (edited)

I'm trying to implement VATSIM OAuth2 login to my laravel app by the instructions form here: https://github.com/vatsimnetwork/documentation/blob/master/connect.md, but I get this error: 

{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization
server.","hint":"Check that all required parameters have been provided","message":"The authorization grant
type is not supported by the 
authorization server."}

 

Any idea what could be a problem. 

Edited by Aleksa Eric 1400612
Link to comment
Share on other sites

Jordan Jolenaar
Posted
Posted
On 2/24/2021 at 5:55 AM, Aleksa Eric 1400612 said:

I'm trying to implement VATSIM OAuth2 login to my laravel app by the instructions form here: https://github.com/vatsimnetwork/documentation/blob/master/connect.md, but I get this error: 


{"error":"unsupported_grant_type","error_description":"The authorization grant type is not supported by the authorization
server.","hint":"Check that all required parameters have been provided","message":"The authorization grant
type is not supported by the 
authorization server."}

 

Any idea what could be a problem. 

Hi Aleksa,

The error tells you exactly what the issue is, there is an issue with the grant type you provided. We can't really help you further unless you are able to show some code. You want to look specifically at your request when you POST to /oauth/token. You need to provide "grant_type" as "authorization_code".

More information can be found here: documentation/connect.md at master · vatsimnetwork/documentation (github.com)

Jordan Jolenaar 
VATSIM Senior Developer     
VATSIM Network Supervisor  
##  [email protected]
## www.vatsim.net
   
MeyrHZn.jpg
Link to comment
Share on other sites

  • 3 weeks later...
Aleksa Eric
Posted
Posted (edited)
On 2/26/2021 at 5:20 PM, Jordan Jolenaar said:

Hi Aleksa,

The error tells you exactly what the issue is, there is an issue with the grant type you provided. We can't really help you further unless you are able to show some code. You want to look specifically at your request when you POST to /oauth/token. You need to provide "grant_type" as "authorization_code".

More information can be found here: documentation/connect.md at master · vatsimnetwork/documentation (github.com)

I checked that, but it's provided as autorization_code.

Edit: It worked. Thanks for help 🙂

 

Edited by Aleksa Eric
Link to comment
Share on other sites

 Share