-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
question: Add multiple emails to a user transform #246
Comments
Yes, please read https://authp.github.io/docs/authenticate/user-transforms and experiment with regex patterns. The conditional match is based on https://authp.github.io/docs/authorize/acl-rbac#conditions There is also a way to have multiple match statements and then say match any of them. However, I don't remember how I did it. It is probably something like this.
|
Thank you, I will try the regex patterns and report back. I was not aware of the "default match any" statement, can this be found in the docs? Also if I would like to prevent issuance of a token unless they are matched by a user transform, how could I go about doing that. Kind of like a catch-all. Would you recommend the regex here as well, or might there be a better way?
Thank you very much! |
I formatted a space separated list of allowed emails like this, though I couldn't find documentation suggesting a line continuation syntax for Caddyfile. match email \
bob@example.com \
alice@example.org |
@qrkourier , idk. One thing that comes to mind is creating a function.
Then use it.
Which would be result in:
Hope this helps. |
@sandstormkeshav , I would probably use |
I would like to add multiple emails within a user transform block. This would be useful for giving multiple email addresses the same role. Is this possible?
The text was updated successfully, but these errors were encountered: