简体   繁体   English

Laravel 未认证护照

[英]Laravel Unauthenticated passport

My Postman request with dd() in Authenticate.php我的 Postman 请求在 Authenticate.php 中带有 dd()

I am not sure where the problem is when I have it withoud dd I just get unauthenticated which doesnt makes sence since it should not go to the route(login) but I cannot continue on it since I dont know where it goes after this so I cant even trace where this happens.我不确定问题出在哪里,当我没有 dd 时,我只是未经身份验证,这没有任何意义,因为它不应该 go 到路由(登录)但我不能继续它,因为我不知道它在这之后去哪里所以我甚至无法追踪发生这种情况的地方。

Barear Token Barear 令牌

OAuthAcessTokens In DB数据库中的 OAuthAcessTokens

Middleware Groups中间件组

RouteMiddleware路由中间件

Authenticate.php Api.php验证.php Api.php

Auth service provider认证服务提供者

protected function redirectTo($request)
{
    if (! $request->expectsJson()) {
        return route('login');
    }
    
}

can you attach the image of your Authenticate.php file?你能附上你的 Authenticate.php 文件的图像吗?

你加了这个吗? Try this if you haven't added yet.如果你还没有添加,试试这个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM