Token-based and API key-based authentication
To use access token authorization:
- Provide the credential (Authorization) details in the ociconfig.properties file, as per your respective provider.
- Update Authorization header Bearer value. Here <token> is just for reference.
- You can also authorize via api_key.
- For example:
[AUTH] Authorization=api_key <value>
- Import the necessary certificates if required in your environment or as mandated by
the provider.
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>