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

Auth with https://github.com/tymondesigns/jwt-auth #80

Closed
taos-thiagoaos opened this issue Aug 29, 2016 · 7 comments
Closed

Auth with https://github.com/tymondesigns/jwt-auth #80

taos-thiagoaos opened this issue Aug 29, 2016 · 7 comments
Assignees
Labels
not related question Further information is requested

Comments

@taos-thiagoaos
Copy link

taos-thiagoaos commented Aug 29, 2016

Hi,

I want to add the jwt.auth midleware but this middleware wait for a token, don´t use the session. How can i integrate your package with jwt auth package to works in internall calls like http://localhost:5000/log-viewer/logs/2016-08-29

@arcanedev-maroc
Copy link
Member

arcanedev-maroc commented Aug 29, 2016

Try to add your middleware to your 'config/log-viewer.php' config file: https://github.com/ARCANEDEV/LogViewer/blob/master/config/log-viewer.php#L41

Check also this issue #69

@arcanedev-maroc arcanedev-maroc self-assigned this Aug 29, 2016
@arcanedev-maroc arcanedev-maroc added the question Further information is requested label Aug 29, 2016
@taos-thiagoaos
Copy link
Author

I already did that. But this middleware waiting for a token in header of each request and your package won´t send that.

@arcanedev-maroc
Copy link
Member

Did you get a Token not provided error ??

@arcanedev-maroc
Copy link
Member

Honestly, i have no clue about the JWT package you're using and how to solve your issue.

You need to post this issue in their repo instead because is unrelated to this package.

@taos-thiagoaos
Copy link
Author

Yes. {"error":"token_not_provided"}

@taos-thiagoaos
Copy link
Author

No, both package works very well alone, but i would like to use your package with your already done views but with his auth or any other token based auth.

@arcanedev-maroc
Copy link
Member

What i mean by unrelated to the LogViewer package, is that your middleware is working in log-viewer routes. Your issue is related to JWT package, because you need to pass a token to your middleware, so you need to read their documentation and check their issues/solutions in JWT repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not related question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants