Token-based and API Key-based Authentication

To use access token authorization:

  1. Provide the credential (Authorization) details in the ociconfig.properties file, according to your respective provider.
  2. Update Authorization header Bearer value. Here <token> is just for reference.
  3. You can also authorize via api_key. For example: [AUTH] Authorization=api_key <value>
  4. Import the necessary certificates if required in your environment.
    Provider ociconfig.properties
    OCI
    [AUTH]
    user=<oci_user_id>
    fingerprint=<oci_user_finger_print>
    tenancy=<tenancy_id>
    region=<region>
    key_file=<.pem file path>
    
    OpenAI
    [AUTH]
    Authorization=Bearer <token>
    
    Google
    [AUTH]
    Authorization=Bearer <token>
    X-goog-user-project=<project_id>