Skip to content
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

When using Laravel Passport the storage is overridden to /tmp before the keys are loaded #144

Open
rockfreak opened this issue Nov 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@rockfreak
Copy link

Having migrated from bref v1 to v2 I found an edge case where if using Laravel Passport the storage area is changed to the /tmp directory by laravel bridge before the passport keys have been loaded.

This was disucssed on slack with @mnapoli.

I have solved this for now by adding the following to the AuthServiceProvider in the boot function.

Passport::loadKeysFrom('directory of keys);

@georgeboot
Copy link
Contributor

I personally put the keys in environment variables to work around this issue.

@mnapoli
Copy link
Member

mnapoli commented Nov 27, 2023

Yeah this is a breaking change we figured out from v1 to v2. Ideally this should keep working out of the box, I'm not sure yet how to make that happen since we automatically move the entire storage directory to /tmp 🤔

@tillkruss tillkruss added the bug Something isn't working label Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants