Jump to content

Laravel login problem


Recommended Posts

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 post
Share on other sites
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 
##  [email protected]
## www.vatsim.net
   
MeyrHZn.jpg
Link to post
Share on other sites
  • 3 weeks later...
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 post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...