Hello Guys, I have been trying to connect to OpenL...
# talk-kratos
m
Hello Guys, I have been trying to connect to OpenLdap via web hooks. Please correct me If I have written something wrong here. I'm getting error like The configuration contains values or keys are invalid: I have attached error message and configuration screenshot.
b
Hi, the documentation for this is a bit lacking, as it doesn’t show any full example. This is actually documented here: https://www.ory.sh/docs/kratos/self-service/hooks#web-hook-authentication-and-authorization-mechanisms , though it is a bit obscure. The configuration needs to be this:
Copy code
before:
        hooks:
          - hook: web_hook
            config: 
              url: <ldap://127.0.0.1:389>
              method: POST
              auth:
                type: basic_auth
                config:
                  user: admin
                  password: admin_pass
Note the
auth.config
instead of
auth.user
and
auth.password
keys. Hope this helps!
m
Hey @bland-eye-99092 , Thanks, it helps me to manage the configuration. I don't see any error in console.