Unable to read key from file file:///tmp/storage/oauth-private.key #1556
Unanswered
Gurdarshankonspot
asked this question in
Support
Replies: 1 comment 3 replies
-
Oh the new version of the Laravel Bridge moves the entire "storage" directory location to I'm not sure if we can configure Laravel Passport to look at the keys in a specific folder? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing
Unable to read key from file file:///tmp/storage/oauth-private.key
while deploying serverlessI tried
Run
php artisan passport:keys
locally to generate key files.This command will generate the storage/oauth-private.key and storage/oauth-public.key files, which need to be deployed.
Depending on how you deploy your application (from your machine, or from CI), you may want to whitelist them in serverless.yml:
package: patterns: - ... # Exclude the 'storage' directory - '!storage/**' # Except the public and private keys required by Laravel Passport - 'storage/oauth-private.key' - 'storage/oauth-public.key'
serverless deploy
serverless bref:cli --args="passport:client --personal --name 'Laravel Personal Access Client'" serverless bref:cli --args="passport:client --password --name 'Laravel Personal Access Client'".
#Laravel Framework 8.83.27
#serverless.yml
`service: app-serverless
provider:
package:
functions:
plugins:
`
#composer.json { "require": { "bref/bref": "^2.0", "bref/laravel-bridge": "^2.1", } }
Issue
Beta Was this translation helpful? Give feedback.
All reactions