jeremy379 / laravel-openid-connect

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

Adding well-known configuration and JWKS routes in Laravel #12

Closed GewoonYorick closed 7 months ago

GewoonYorick commented 7 months ago

When using Laravel with Passport, we have enough knowledge of the environment to be able to provide 2 useful routes our of the box:

a discovery endpoint at /.well-known/openid-configuration. a JWKS endpoint at /oauth/jwks. This greatly eases integrating with Laravel since clients can now use auto-discovery to integrate with Laravel + PassPort + OpenID.

This PR has been successfully tested using the Javascript openid-client package. This PR is based on https://github.com/ronvanderheijden/openid-connect/pull/16

Ref: https://github.com/jeremy379/laravel-openid-connect/issues/9 Thanks go to @moufmouf

jeremy379 commented 7 months ago

Thanks for submitting this :) Looks good, it's merged. I'll issue a release so the version is updated