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

Use private key contensts instead of key path #7

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

georgeboot
Copy link
Contributor

This PR changes the way the pass the private key into the IdTokenResponse.

Because some people deploy the Passport keypair as env variables (and not have them in a physical file), the old situation didn't work.

Since Laravel has already loaded the key into memory, we might as well grab the raw contents of the key and pass that along. This PR changes the behaviour to do exactly that.

Copy link
Owner

@jeremy379 jeremy379 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey
Thanks for your PR.
You may want to rebase on Main as I've added improvement on the CI (I'd like the test to pass before merging).

Thanks

src/Laravel/PassportServiceProvider.php Show resolved Hide resolved
@georgeboot
Copy link
Contributor Author

@jeremy379 rebased

@jeremy379 jeremy379 merged commit 4f96ec5 into jeremy379:main Oct 5, 2023
@coffe4u
Copy link
Contributor

coffe4u commented Oct 6, 2023

Nice update @georgeboot!

@jeremy379 jeremy379 mentioned this pull request Nov 13, 2023
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.

3 participants