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

Class 'JWTAuth' not found #24

Open
jpuck opened this issue Dec 13, 2016 · 4 comments
Open

Class 'JWTAuth' not found #24

jpuck opened this issue Dec 13, 2016 · 4 comments

Comments

@jpuck
Copy link

jpuck commented Dec 13, 2016

StudentAffairsUwm\Shibboleth\Controllers\ShibbolethController has an undocumented dependency.

tymon/jwt-auth needs to be added to the composer.json, and it would probably be more portable to reference the fully qualified class name in the controller:

use Tymon\JWTAuth\Facades\JWTAuth;

Although because the factory needs to be referenced as well it would be at least helpful to document this in the README letting users know they should add the class alias to their config/app.php

'JWTAuth'    => 'Tymon\JWTAuth\Facades\JWTAuth',
'JWTFactory' => 'Tymon\JWTAuth\Facades\JWTFactory',

as well as registering the provider:

Tymon\JWTAuth\Providers\JWTAuthServiceProvider::class,
@cjmaio
Copy link
Contributor

cjmaio commented Dec 13, 2016

Thank you for reporting this. I do fully acknowledge that this was really made for our specific use case at the University, and with that said, we did miss some things like this.

If you encounter any other issues such as this, feel free to keep opening issues. I will do my best to update it accordingly.

@jpuck jpuck mentioned this issue Feb 7, 2017
@jpuck
Copy link
Author

jpuck commented Feb 13, 2017

@cjmaio I've created a branch off of Lara5.4 which doesn't load any of the token stuff by default so it runs significantly faster and doesn't clutter the URL.

You can still fully activate the tokenizer by setting an .env variable

JWTAUTH=true

I think other institutions would benefit from it, so if it's all right with you, then I can add it to #25 or I can wait until you're done reviewing the existing PR changes just so it's not too much all at once?

@jpuck
Copy link
Author

jpuck commented Mar 16, 2017

I'm unfamiliar with the validity, but interesting related reading: https://paragonie.com/blog/2017/03/jwt-json-web-tokens-is-bad-standard-that-everyone-should-avoid

@cjmaio
Copy link
Contributor

cjmaio commented Mar 16, 2017 via email

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

No branches or pull requests

2 participants