06.
Authenticate a Request with JWT
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
8 Comments
Is there going to be a tutorial on how to use this api from another symfony project to authenticate users?
Hey Michael,
Probably our "OAuth2 in 8 steps" could be interesting for you: https://knpuniversity.com/s... . But for now, we do not plan any API courses, you can spy on your upcoming tutorials on this page: https://knpuniversity.com/c...
Cheers!
Hey Nicholas!
Hmm, are you sure? Since we're using the Guzzle client in this tutorial, we should be able to send the raw HTTP header names (i.e. Authorization) and not need to prefix them. But, something may have changed. Are you possibly using the Symfony built-in Client instead? I'm trying to figure out what the difference is :).
Cheers!
Where is the /login redirection covered? How does it happen?
Thanks
Hi Vlad!
That's explained a few chapters from here - it's caused by what's called an "entry point": https://knpuniversity.com/s...
Hope that helps!
I'm following this tutorial and working on parallel project and for some reason I don't get the /login redirection. What am I missing?
Just saw this message :). What behavior *are* you getting? Ultimately, the /login redirection is caused by the "form_login" system in the firewall. It's possible that you don't have that (or have some other behavior). Check out the entry point chapter, but let me know if you have questions - the "entry point" idea can be tricky.
Thank you! That was it. I needed to add the firewall configs. I'll check the entry point chapter. Thanks again.
"Houston: no signs of life"
Start the conversation!