laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.

Home Page:https://laravel.com/docs/passport

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Passport 11.8.6

zucandu opened this issue · comments

Passport Version

11.8.6

Laravel Version

9.52.7

PHP Version

8.1.13

Database Driver & Version

10.3.38-MariaDB-0ubuntu0.20.04.1 Ubuntu 20.04

Description

Hello,

I'm using multiple guards from Laravel Passport. For the new version, I can't login to my admin panel, it shows the error message: "Unauthenticated".

Then I tested it with 2 old versions of Laravel Passport:

11.3.1 and 10.4.1 and all works fine so I think there is some problem with the new version of Laravel Passport.

Best regards,

Chu

Steps To Reproduce

This is a closed source so I can't share it however I can provide any info if you need.

@zucandu does 11.8.5 work for you?

Hello,

Based on the information you provided, it seems that there might be an issue with the latest version of Laravel Passport. However, to help you better, I would need more details on how you are using multiple guards with Laravel Passport, and whether you are using a custom function for login or not.

And if you can create a new repository for your code example make that

Please let me know if you have any further questions or if you need any more assistance.

Hello Mike,

Thank you for replied. I will make a details.

Before, I tried to install again with 11.3.1 and it works. I will try to install with 11.8.5 and show you, too.

I will update you after a few hours.

Best regards,

Chu

Hello,

I tried to install the Laravel Passport 11.8.5 and it works well. I attached 3 images files so that you can check it. If you need more information, please let me know.

I will try to install again with the latest Laravel Passport and show you the result.

1
2
3

11.8.6 not working. I attached the images for more information.
4
5

Hello,

However, you can try using api-apps as the provider and see if it works for your use case. If you encounter any issues or errors, please provide more details so that I can assist you better.

And can take a screenshot of table oauth_clients can be helpful in identifying any issues related to you.

If you have any further questions or concerns, please feel free to let me know.

Best regards,

Michael

Thank you Mike,

For the api-apps, I did not try however I tried to use with admin and customer. When I login, it does not work. When I try to register a new account, it does not work, too. The same error with admin: Unauthenticated.

I will show you the oauth_clients table.

I have an example website, you can use it here

https://6dep.com/admin/
cvhainb@gmail.com
EWL8FtHm

You can try to create a new customer account at https://6dep.com/register

Best regards,

Chu

I'm fixed this issue and now can test the multi auth

Follow the example application with PR: https://github.com/michaelnabil230/multi-auth-laravel-passport

We've reverted the PR for now.