我正在尝试使用授权码授予来登录第三方客户端并授予对我的API用户的访问权限。但是我从laravel护照中获得未认证的身份。
这是我的要求
http://serverurl/api/v1/oauth/authorize?client_id=3&scope=customer&redirect_uri=http://callbackurl&response_type=code&state=aGFtbmFtYWQ=
为什么护照在oauth / authorize上需要令牌?怎么了?
类似的问题已在Laravel Passport github存储库中列出
要解决此错误,请在Passport::$ignoreCsrfToken = true;
文件中添加AuthServiceProvider