Jwt-auth: Installing in Lumen 5.3

Created on 9 Sep 2016  路  7Comments  路  Source: tymondesigns/jwt-auth

After taking more than 10 hours, it seems there is no way to install this module in Lumen 5.3. Has anyone installed this package in Lumen 3? Any tutorials?

Most helpful comment

Hi all!

This lib saved me tons of time. Thanks a lot tymondesigns!

I did have some trouble setting up 1.0.0-beta.1 with Lumen 5.3, so I ended up deciding to write the steps down and create a repo with an example (all free as in beer).

You can check it out in http://www.akaita.com/post/json-web-token-authentication-for-lumen-5-tymon-jwt-auth

Cheers!

All 7 comments

This tutorial states Lumen 5.2 but has worked perfectly for me on 5.3

P.s. don't forget to uncomment the AppServiceProvider in your bootstrap/app.php

https://iwader.co.uk/post/tymon-jwt-auth-with-lumen-5-2

@hpaknia Was your issue similar to #843?

If so, feel free to try this little package put together on Lumen 5.3 and see if that works for you. If it does please let me know so I can update the documentation to include Lumen installation instructions.

@lukevear not sure if you are aware but this package _does_ have a Guard implementation, although not documented just yet. via the 1.0.0 alpha releases.

here it is in the flesh

@tymondesigns Ha! Well that's fun! I did not see that at all (I've only been looking at 0.5.*). I'll update my package incase someone is stuck on 0.5.* for whatever reason), and update my code to use the 1.0.0-alpha releases.

Cheers!

@lukevear I ended up with creating my own middleware (and my own middleware decodes received token using jwt-auth methods.

Hi all!

This lib saved me tons of time. Thanks a lot tymondesigns!

I did have some trouble setting up 1.0.0-beta.1 with Lumen 5.3, so I ended up deciding to write the steps down and create a repo with an example (all free as in beer).

You can check it out in http://www.akaita.com/post/json-web-token-authentication-for-lumen-5-tymon-jwt-auth

Cheers!

@paxku Thank you very much for the share....

Was this page helpful?
0 / 5 - 0 ratings

Related issues

phamduong picture phamduong  路  3Comments

gamelife1314 picture gamelife1314  路  3Comments

therealmjk picture therealmjk  路  3Comments

kofi1995 picture kofi1995  路  3Comments

aofdev picture aofdev  路  3Comments