auth_oidc_jwt

Function auth_oidc_jwt 

Source
pub async fn auth_oidc_jwt(
    vault_base_url: &str,
    shasta_token: &str,
    site_name: &str,
) -> Result<String, Error>
Expand description

Authenticate to Vault using a JWT token and return a Vault client token.

Posts the caller’s CSM bearer token to /v1/auth/jwt-manta-<site_name>/login against the manta role configured at the per-site auth mount.

§Errors

  • [Error::NetError] when the request itself fails or Vault responds with a non-success status (via error_for_status()).
  • [Error::MissingField] when the response body omits the server-issued auth.client_token field.