Are there any alternatives for OCI config file?
samuelastech opened this issue · 2 comments
samuelastech commented
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?
jodoglevy commented
@samuelastech I think you'd want to use the SimpleAuthenticationDetailsProvider. See the following for examples:
samuelastech commented
Thanks, that is what I was looking for.