oracle/oci-typescript-sdk

Are there any alternatives for OCI config file?

Closed this issue · 2 comments

I'm receiving the credentials dynamically through HTTP, there is no config file. So, the following code won't work for me:

const provider: common.ConfigFileAuthenticationDetailsProvider = new common.ConfigFileAuthenticationDetailsProvider();
const client = new identity.IdentityClient({ authenticationDetailsProvider: provider });

I need to set up the ConfigFileAuthenticationDetailsProvider in another way.

I found this doc that says:

If you're using one of the Oracle SDKs or tools, supply the required credentials in either a configuration file or a config object in the code.

How could I authenticate by passing a config object instead of a config file?

Thanks, that is what I was looking for.