Skip to content

Conversation

@hafezdivandari
Copy link
Contributor

@hafezdivandari hafezdivandari commented Aug 5, 2025

Fixes #1838

When running the passport:install command, the user is prompted to create a "personal access" grant client. If they respond with "yes", this command attempts to list the user providers from auth guards that use Passport as their driver for user to choose from. However, since Passport hasn't been fully installed at this point, there may be no such guards defined yet, resulting in an empty list and an exception.

This PR addresses the issue by falling back to list of all configured auth user providers if no Passport-based auth guards are available.

@hafezdivandari hafezdivandari changed the title [13.x] Fallback to list of auth user providers when there is no auth guard for Passport is defined [13.x] Fallback to list of auth user providers if no auth guard for Passport is defined Aug 5, 2025
@taylorotwell taylorotwell merged commit 15b8de5 into laravel:13.x Aug 6, 2025
8 checks passed
@hafezdivandari hafezdivandari deleted the 13.x-fallback-to-auth-providers branch August 6, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

passport install does not work out of the box

2 participants