Initializes a new instance of IAMAuthorizationProvider.
if the configuration is has invalid properties
Optional
config: IAMConfigConfiguration to create IAMAuthorizationProvider specified as IAMConfig. You may omit this parameter (use no-argument constructor) if using cloud service with the default OCI configuration file with default profile name that contains credentials and region identifier, as described in IAMConfig.
Asynchronously acquires authorization information. This method is only used by the driver. You do not need to call this method. This method can only be used after onInit is called.
Promise resolved with authorization information or rejected with an error
Gets the region as determined by the provider. It may be provided in Config as region when creating NoSQLClient instance to connect to this region.
The meaning of the returned region is determined by the authentication method used by this provider:
Promise of Region. If the region cannot be determined, the promise resolves with undefined.
If using Resource Principal, gets the claims information in the resource principal session token (RPST) such as the resource tenant and compartment OCIDs.
If using Resource Principal, promise of ResourcePrincipalClaims containing RPST claim information, otherwise promise of undefined.
Config object used to create NoSQLClient instance.
Static
withA convenience method to create new instance of IAMAuthorizationProvider using Instance Principal.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using Instance Principal
Optional
federationEndpoint: stringOptional federation endpoint. See federationEndpoint.
Static
withOverload
A convenience method to create new instance of IAMAuthorizationProvider using Instance Principal with delegation token.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using Instance Principal and specified delegation token
Delegation token
Optional
federationEndpoint: stringOptional federation endpoint. See federationEndpoint
Overload
A convenience method to create new instance of IAMAuthorizationProvider using Instance Principal with delegation token provider.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using Instance Principal and specified delegation token provider
Delegation token provider
Optional
federationEndpoint: stringOptional federation endpoint. See federationEndpoint
Static
withA convenience method to create new instance of IAMAuthorizationProvider using Instance Principal with delegation token file.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using Instance Principal and specified delegation token file
Delegation token file
Optional
federationEndpoint: stringOptional federation endpoint. See federationEndpoint
Static
withOKEWorkloadA convenience method to create new instance of IAMAuthorizationProvider using Oracle Engine for Kubernetes (OKE) workload identity.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using OKE workload identity
Optional
serviceAccountToken: string | ServiceAccountTokenProvider | (() => Promise<string>)Optional service Account Token string or ServiceAccountTokenProvider
Static
withOKEWorkloadA convenience method to create new instance of IAMAuthorizationProvider using Oracle Engine for Kubernetes (OKE) workload identity. This method takes parameter to specify a path to the service account token file.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using OKE workload identity
Path to the service account token file
Static
withA convenience method to create new instance of IAMAuthorizationProvider using Resource Principal.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using Resource Principal
Optional
useResourcePrincipalCompartment: booleanWhether to use the resource compartment as default compartment for NoSQL Database operations. Defaults to false. See useResourcePrincipalCompartment
Static
withOverload
A convenience method to create new instance of IAMAuthorizationProvider for session token-based authentication using default OCI configuration file and specified or default profile name.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using session token-based authentication
Optional
profileName: stringOptional profile name in the default OCI configuration file. Defaults to value "DEFAULT"
Overload
A convenience method to create new instance of IAMAuthorizationProvider for session token-based authentication using specified OCI configuration file and profile name.
Other applicable properties are initialized to their defaults as described in IAMConfig.
New instance of IAMAuthorizationProvider using session token-based authentication
OCI configuration file path. See configFile
Optional
profileName: stringOptional profile name in the default OCI configuration file. Defaults to value "DEFAULT"
Generated using TypeDoc
Authorization provider used to to authorize operations using Oracle Cloud Infrastructure Identity and Access Management (IAM).
The driver uses this class internally for authorization with the Cloud Service. Normally, you do not need to use this class. Instead, create NoSQLClient instance by specifying iam property in AuthConfig as part of auth, as described in IAMConfig.
You may use this class as an alternative to specifying iam, as this may allow additional operations, e.g. retrieving resource principal claim information. Use this class as a value for provider property when creating NoSQLClient instance. This is shown in the example.
See
Example