title: Vault authentication with Okta
body: <p>We have a setup of Vault cluster and we are trying to authenticate Vault with Okta. Have enabled auth and configured it: </p>
  
  <pre><code>vault auth enable okta
  vault write auth/okta/config base_url="BASE_URL" organization="ORG" token="TOKEN"
  </code></pre>
  
  <p>Whenever I trying to authenticate against Okta in the Vault UI, I am getting this error:</p>
  
  <blockquote>
    <p>Authentication failed: Okta auth failed: HTTP Method: POST - URL:
    <a href="https://org.okta.com/api/v1/authn" rel="nofollow noreferrer">https://org.okta.com/api/v1/authn</a>: - HTTP Status Code: 401, OKTA Error
    Code: E0000004, OKTA Error Summary: Authentication failed, OKTA Error
    Causes: []</p>
  </blockquote>
  
  <p>The catch is we are using Google as IdP. Login requests are being sent to Google. In Okta we configured Google as IDP. </p>
  
  <p>If I save a user's credentials in the Okta itself then it works. So, is there a way to authenticate via Okta when IDP is Google?</p>