Passport: Passport in laravel 5.4 always return error: "Unauthenticated.",

Created on 12 Apr 2017  路  3Comments  路  Source: laravel/passport

Passport in laravel 5.4 always return error: "Unauthenticated.", I am calling this api by rest client. I have done all things according to tutorial, But ,always got same error.

Most helpful comment

Yes, it is working now. Thank you very much.

I have write down following code in conf file


RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.)
RewriteRule .
- [e=HTTP_AUTHORIZATION:%1]

All 3 comments

Yes, it is working now. Thank you very much.

I have write down following code in conf file


RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.)
RewriteRule .
- [e=HTTP_AUTHORIZATION:%1]

I use laravel 5.4.32 and the api auth middleware not run

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mehrancodes picture mehrancodes  路  3Comments

MarkVilludo picture MarkVilludo  路  3Comments

Patskimoto picture Patskimoto  路  3Comments

brryfrmnn picture brryfrmnn  路  3Comments

SwiTool picture SwiTool  路  3Comments