-
Notifications
You must be signed in to change notification settings - Fork 782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passport install prompt #1729
Comments
Example case of usage in tests https://stackoverflow.com/a/50243105/1202097 |
The Typically, that command should run only once per project locally (because it publishes migrations, etc). This change, of adding prompts to this install command is not mentioned in the upgrade guide because that command only serves 'fresh' new Laravel applications. |
Even if such behavior was not intended - there are many places where it can be used without user interaction. And even if this is expected behavior, the change in the operating logic is extremely significant and it would be nice to at least mention it in the change history |
Hey, just thought I'd mention that this also broke my tests during the upgrade from 10 to 11. Fixed it by publishing the passport migrations and replacing the passport:install call in my test seeder by: Artisan::call('passport:keys');
Artisan::call('passport:client', ['--personal' => true, '--name' => config('app.name') . ' Personal Access Client']);
$provider = in_array('users', array_keys(config('auth.providers'))) ? 'users' : null;
Artisan::call('passport:client', ['--password' => true, '--name' => config('app.name') . ' Password Grant Client', '--provider' => $provider]); |
@MarcEspiard |
Passport Version
12.0.0
Laravel Version
11.0.5
PHP Version
8.2
Database Driver & Version
8.0
Description
After updating the package, the command
passport:install
now has two prompts for user input.This command is used in deployments and tests and there is no possibility of a manual response. This change is not mentioned in the upgrade guide.
How can I now execute this command without user interaction?
Steps To Reproduce
The text was updated successfully, but these errors were encountered: