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

[Question] Authorization header work? #16

Closed
MaicolBen opened this issue Dec 1, 2014 · 7 comments
Closed

[Question] Authorization header work? #16

MaicolBen opened this issue Dec 1, 2014 · 7 comments

Comments

@MaicolBen
Copy link

I'm test the authentication with Postman, when I send the token as querystring work, but as Authorization header not.

screen

There is a problem with my header config?

Thanks

@tymondesigns
Copy link
Owner

The header looks fine to me, are you running the latest version? Also I assume you are using the built in filter in your example?

@MaicolBen
Copy link
Author

I'm using the 0.3.11 version and in the route use the filter ['before' => 'jwt-auth'

@tymondesigns
Copy link
Owner

hmm.. I can't seem to reproduce this. I will try again tomorrow with a fresh look

@MaicolBen
Copy link
Author

It's a problem with Symfony\Component\HttpFoundation\HeaderBag when get the headers .
It's solved in this post of stackoverflow modifying the .htaccess

Thanks!

@tymondesigns
Copy link
Owner

Ah ok, that explains it!

@DeanWard
Copy link

I spent a fair amount of time trying to work this out last night. Might it be an idea to include this fix in the setup guide?

@tymondesigns
Copy link
Owner

@DeanWard yea good point, I will add this known issue to the wiki I'm currently working on

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

3 participants