-
Notifications
You must be signed in to change notification settings - Fork 136
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
Add Okta auth method #206
base: master
Are you sure you want to change the base?
Add Okta auth method #206
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).