Constructor IAMAuthorizationProvider
IAMAuthorizationProvider()
Initializes a new instance of
IAMAuthorizationProvider with default configuration.
Declaration
public IAMAuthorizationProvider()
Remarks
Upon using this constructor, you may set the properties described
to create the desired configuration. Otherwise, the default
configuration is used, which obtains credentials from the OCI
configuration file using default OCI configuration file path and
the default profile name as indicated in ConfigFile
and ProfileName.
See Also
IAMAuthorizationProvider(String)
Initializes a new instance of
IAMAuthorizationProvider using the default OCI
configuration file and the specified profile name.
Declaration
public IAMAuthorizationProvider(string profileName)
Parameters
Type | Name | Description |
---|---|---|
String | profileName | The profile name within the default OCI configuration file. |
Remarks
This constructor uses the OCI configuration file at the default
path specified in ConfigFile.
See Also
IAMAuthorizationProvider(String, String)
Initializes a new instance of
IAMAuthorizationProvider using specified OCI
configuration file and profile name.
Declaration
public IAMAuthorizationProvider(string configFile, string profileName)
Parameters
Type | Name | Description |
---|---|---|
String | configFile | The path (absolute or relative) to the OCI configuration file. |
String | profileName | Name of the profile within the OCI
configuration file. If null , default profile name will be
used (see ProfileName). |
See Also
IAMAuthorizationProvider(IAMCredentials)
Initializes a new instance of
IAMAuthorizationProvider with the specified
credentials.
Declaration
public IAMAuthorizationProvider(IAMCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
IAMCredentials | credentials | Credentials for the specific user identity. |
See Also
IAMAuthorizationProvider(Func<CancellationToken, Task<IAMCredentials>>)
Initializes a new instance of
IAMAuthorizationProvider using specified credentials
provider delegate.
Declaration
public IAMAuthorizationProvider(Func<CancellationToken, Task<IAMCredentials>> credentialsProvider)
Parameters
Type | Name | Description |
---|---|---|
Func<CancellationToken, Task<IAMCredentials>> | credentialsProvider | Credentials provider delegate used to obtain the user's credentials. |