Skip to content

[5.8] Document loading keys from env file #5180

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

Merged
merged 1 commit into from
May 7, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions passport.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ If necessary, you may define the path where Passport's keys should be loaded fro
Passport::loadKeysFrom('/secret-keys/oauth');
}

Additionaly, you may load the keys from the `.env` file directly:

PASSPORT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n<private key here>\n-----END RSA PRIVATE KEY-----"
PASSPORT_PUBLIC_KEY="-----BEGIN PUBLIC KEY-----\n<public key here>\n-----END PUBLIC KEY-----\n"

<a name="configuration"></a>
## Configuration

Expand Down