StorageLink is a web transfer service that you host in your own cloud environment (AWS, Azure, Google Cloud).
There are two types of roles in StorageLink: (1) web user, and (2) admin user.
In some environments, you want to block admin users from logging in via the web portal.
This video walks you through blocking admin authentication using Lua. When an admin logs in, the authentication response token is blotted out if their role is an admin type.
The Lua code requires a custom install of Nginx, called OpenResty. OpenResty acts as a wrapper around a custom Nginx setup that supports Lua.
This video covers OpenResty installation. It also walks you through making config changes to wire OpenResty to the Lua code that blocks the admin token.
Learn more about StorageLink: https://thorntech.com/storagelink.