Laravel Passport - Grant Type Not supported

0
{
"error": "unsupported_grant_type",
"message": "The authorization grant type is not supported by the authorization server.",
"hint": "Check the 'grant_type' parameter"

}

Reply when making the request by post, the grant_type is not supported, any idea of the solution?

    
asked by YILMAR ANDRES VEGA GOMEZ 03.05.2018 в 23:16
source

1 answer

0
      entrar(usuario:Usuario){

    let datos = {
      'grant_type':'password',
      'client_id' : '1',
      'client_secret' : '5ecVgDAqCV5hgBBREbOhnJMwKC2eGq7ffv4VwPyM',
      'username':usuario.username,
      'password':usuario.password,
      'scope':'*'
    }


    return this.http.post<any>(this.url+"/oauth/token", datos);
  }

This I do from ionic, is the method to access ..

    
answered by 03.05.2018 в 23:57