Skip to content

An option to return a boolean value from Allow method #95

Description

@pokeghosst

Currently, Allow method calls ngx.exit regardless of the bouncer's decision, which prevents any other scripts inside access_by_lua_block to be executed after the bouncer.

It would be very handy to have another version of Allow that either:

  • Returns boolean value regardless of the decision, similarly to allowIp;
  • Simply returns on successful pass. In this case, the bouncer would handle all rejections and if the request passes by the bouncer, it can be handled by one of the next scripts.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions