max-lt / nginx-jwt-module

NGINX module to check for a valid JWT.
MIT License
93 stars 38 forks source link

auth_jwt_require against nginx embedded variable? #37

Closed slushpuppy closed 1 month ago

slushpuppy commented 3 months ago

Hi,

 I am looking for a way to verify jwt claims against a dynamic runtime nginx embedded variable, e.g. cookie or uri? is that a possibility? I have tried using map regex trick but nginx server crashes which leads me to believe it isn't a supported feature

Thanks

max-lt commented 3 months ago

Hi, this is a possibility, you can find an example un the documentation. Can you post your configuration and the crash log please?