Using JWT Authentication with OpenResty Lua

In this post i’ll show how to authenticate nginx using jwt by OpenResty Lua.

First of all what is openresty?
OpenResty is a web application server which uses nginx as a core. With that you can leverage all nginx modules and using lua modules to gain more feature.

We are using authenticator lua. So we need to get our file by cloning this repository.https://github.com/ubergarm/openresty-nginx-jwt

After that just like basic authentication we need to configre our nginx.conf to add these

After that we can send our request using Bearer authorization to our server

This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *