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

Update AuthServiceProvider.php #44

Merged
merged 1 commit into from
Dec 18, 2020
Merged

Update AuthServiceProvider.php #44

merged 1 commit into from
Dec 18, 2020

Conversation

Athov
Copy link
Contributor

@Athov Athov commented Dec 10, 2020

I had to change the JWT Provider from Lcobucci to Namshi, but when I tried to override the config in plugins/rluders/jwtauth/config/jwt.php to config/rluders/jwtauth/jwt.php as described in the OctoberCMS Documentations https://octobercms.com/docs/plugin/settings#file-configuration nothing happened and after searching for the problem turned out the config is not using the OctoberCMS way of loading configs but with a include to fix it I had to copy the loadConfiguration() to my plugin which many people will not do. Also only setting Config::set('jwt', Config::get('rluders.jwtauth::jwt')) will throw a error.

The reason I had to change the Provider is after updating the project to 469 (including plugins, without composer). I got this error: "Could not create token: Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead.". Which is fixable by changing from Lcobucci to Namshi.

I had to change the JWT Provider from Lcobucci to Namshi, but when I tried to override the config in plugins/rluders/jwtauth/config/jwt.php to config/rluders/jwtauth/jwt.php as described in the OctoberCMS Documentations https://octobercms.com/docs/plugin/settings#file-configuration nothing happened and after searching for the problem turned out the config is not using the OctoberCMS way of loading configs but with a include to fix it I had to copy the loadConfiguration() to my plugin which many people will not do. Also only setting Config::set('jwt', Config::get('rluders.jwtauth::jwt')) will throw a error.

The reason I had to change the Providor is after updating the project to 469 (including plugins, without composer). I got this error: "Could not create token: Using integers for registered date claims is deprecated, please use DateTimeImmutable objects instead.". Which is fixable by changing from Lcobucci to Namshi.
@rluders rluders merged commit 268568c into rluders:main Dec 18, 2020
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.

2 participants