laravel护照不支持authorization_code授权类型?

时间:2017-07-05 06:16:45

标签: php laravel laravel-passport

这些是我从邮递员发布到/ oauth / token的字段,但响应是:

##

grant_type:authorization_code

CLIENT_ID:12

client_secret:WXIfywkQvyHzjrR17sm0xQ72sPr8T6FUDSRPJrkL

代码:WF3dQHx7Wr2Ly5UsK / r8TVgKqu6hmjfDaQnNKbHR3wJjuPiHsUPqVgmN45cMQKmopFH7zAm0vXTn5LhMms / 19WOu2diV5r04T8Y7HidiWAFDObYCGkW2a3Iaa1KG8Y26EyfYtbhhP + hk87pd12s7S03ZUSqXVcuyFnkW6ip3Up1G + MDQP8htUqu5 / cmq2zpRDLCjJZga3PIGFIglWgttcg9lYbVBG5q90FpQk4BMF4KrlOSJSU / 73AQvOrtecety1xUvtNU2n2hxiNA4YbSMhQK0SIGFSSjd7EjAS6LZON7WLPLYKgExKCgYwx5ZmsZrQr3 / 0VP2dyH0 / 70 + bOEEO054xyB2K07UfBPtg6eobUGY19Vl5kUrIaOIp0EcNnTOiycOEQqIoHzKPLNSPTfvzd1jc6F1LfEJbzzXgEmI1OAfi2VVUduRBxBmqh1lFGFHfWbKD3ipNIBsNGhvvXcw2An7iMMlxDYv + AqUGVfa0mho + Qv19EG3ZTaHs8ykE5aGFoKSOWiDeABXhnUWhHHFJ39WJDL4yWDAhO2u9LFGvEhbOHjYXDAkp5B + wbtWLpoxgyvbmlMJ8Kl77ABVKE6cxk7khjTK7XoFIMVC + zdqVireZpbBja81eEFgUoGPmKIrX / KSP + 9CQ9 / J3CfZUQWaZO5LVybSo3JYFUwkWYtoNcY =%

REDIRECT_URI:http://site.dzangocart.dev/profile

我在这里缺少什么?

1 个答案:

答案 0 :(得分:-1)

使用Postman访问端点时,设置Header Accept:application / json或Laravel Passport永远不会知道它是一个API客户端。检查

https://scotch.io/@neo/getting-started-with-laravel-passport