You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to match and drop roles named as GUIDs, using:
transform user {
regex match role "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}"
action drop matched role
}
However, this conflicts with Caddy's use of placeholders, and the {4} are stripped out, meaning that this matching rule does not work as expected. The correct syntax to use here is:
regex match role "[0-9a-f]\\{8\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{4\\}-[0-9a-f]\\{12\\}"
Please can this be noted in the documentation to help other users avoid the same pitfall:
I am trying to match and drop roles named as GUIDs, using:
However, this conflicts with Caddy's use of placeholders, and the
{4}
are stripped out, meaning that this matching rule does not work as expected. The correct syntax to use here is:Please can this be noted in the documentation to help other users avoid the same pitfall:
authcrunch.github.io/docs/authenticate/42-user-transforms.md
Lines 148 to 160 in c6d0296
The text was updated successfully, but these errors were encountered: