Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: negative matches #5

Closed
greenpau opened this issue Jan 21, 2022 · 0 comments
Closed

feature: negative matches #5

greenpau opened this issue Jan 21, 2022 · 0 comments
Assignees

Comments

@greenpau
Copy link
Owner

I want to be able to handle inverse matching in transforms.

  1. If email field exists in the data, and it does not match, the condition is satisfied and the authp/test role gets added.
    If the field does NOT exist, then it is also a match!
      transform user {
        no suffix match email @contoso.com if exists
        action add role authp/test
      }
  1. The condition is NOT satisfied when any:
  • email field does not exists in the data
  • the value of the email field matches
      transform user {
        no suffix match email @contoso.com
        action add role authp/test
      }

Original issue: https://github.com/greenpau/caddy-authorize/issues/80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant