benbjurstrom / passport-custom-jwt-claims

Customize the JWT claims in Laravel/Passport access tokens
MIT License
33 stars 14 forks source link

Send CryptKey instance to oauth2 with new permission check disabled #3

Open jonathonsim opened 6 years ago

jonathonsim commented 6 years ago

When running in some development environments, eg Vagrant on Windows (or most other methods you might use to develop in windows, eg docker or a local PHP install) it's impossible to make the oauth-private.key file match the exact permissions that thephpleague/oauth2-server now checks for, and this means everything will fail with an exception

Passport fixed this in this PR https://github.com/laravel/passport/pull/454 and this code implements a similar solution in benbjurstrom/passport-custom-jwt-claims