terraform-provider-keycloak icon indicating copy to clipboard operation
terraform-provider-keycloak copied to clipboard

Incorrect example in user profile documentation

Open mrpatrickpilch opened this issue 2 years ago • 1 comments

I'm leveraging the feature introduced in #636 and enjoying it!

But I noticed the documentation has the following example for the pattern validator:

validator {
  name   = "pattern"
  config = {
    pattern       = "^[a-z]+$"
    error_message = "Nope"
  }
}

But the config should state error-message instead. See https://github.com/keycloak/keycloak/blob/20.0.1/server-spi-private/src/main/java/org/keycloak/validate/validators/PatternValidator.java#L49

mrpatrickpilch avatar Dec 13 '22 20:12 mrpatrickpilch

@mrpatrickpilch Is the pattern in Java language? I could not find any place that tell me in what language I am allowed to enter this regex for keycloak when i am using Terraform

kasir-barati avatar Apr 01 '23 23:04 kasir-barati