jeremy379 / laravel-openid-connect

Implement OpenID Connect inside Laravel
MIT License
26 stars 13 forks source link

Use private key contensts instead of key path #7

Closed georgeboot closed 1 year ago

georgeboot commented 1 year ago

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.

georgeboot commented 1 year ago

@jeremy379 rebased

coffe4u commented 1 year ago

Nice update @georgeboot!