Conversation
|
The problem with that PR is the same as problem #197 raises. You cannot assume |
|
@robkinyon-roivant I believe what you're looking for is to pass the mount point via the custom options hash when using the auth method. Here's an example using the userpass auth method: vault-ruby/spec/integration/api/auth_spec.rb Line 147 in e53f8ec Have you tried this way of specifying the mount point with LDAP auth? |
I have. The code doesn't look at The broken line is vault-ruby/lib/vault/api/auth.rb Line 142 in e53f8ec Instead, that line (in mount = options[:mount] || 'ldap'
json = client.post("/v1/auth/#{mount}/login/#{encode_path(username)}", JSON.fast_generate(payload))And then (with appropriate default) in The mistake in the auth specs is that the vault-ruby/spec/integration/api/auth_spec.rb Line 151 in e53f8ec |
Add functionality from here: https://www.vaultproject.io/docs/auth/okta.html to authenticate with Okta. Includes unit test (I believe integration tests would require an Okta account).