Method CreateWithOKEWorkloadIdentity
CreateWithOKEWorkloadIdentity(String)
Creates a new instance of IAMAuthorizationProvider
using OKE workload identity.
Declaration
public static IAMAuthorizationProvider CreateWithOKEWorkloadIdentity(string serviceAccountToken = null)
Parameters
Type | Name | Description |
---|---|---|
String | serviceAccountToken | (Optional) Service account token string. |
Returns
Type | Description |
---|---|
IAMAuthorizationProvider | A new instance of IAMAuthorizationProvider using OKE workload identity. |
Remarks
For more information see UseOKEWorkloadIdentity.
This method allows you to specify optional service account token
string. If not specified, the service account token will be read
from the default file path
/var/run/secrets/kubernetes.io/serviceaccount/token
.
See Also
CreateWithOKEWorkloadIdentity(Func<CancellationToken, Task<String>>)
Creates a new instance of IAMAuthorizationProvider
using OKE workload identity and specified service account token
provider delegate.
Declaration
public static IAMAuthorizationProvider CreateWithOKEWorkloadIdentity(Func<CancellationToken, Task<string>> serviceAccountTokenProvider)
Parameters
Type | Name | Description |
---|---|---|
Func<CancellationToken, Task<String>> | serviceAccountTokenProvider | The service Account token provider delegate. |
Returns
Type | Description |
---|---|
IAMAuthorizationProvider | A new instance of IAMAuthorizationProvider using OKE workload identity and specified service account token provider delegate. |
Remarks
For more information see UseOKEWorkloadIdentity.
This method allows you to specify service account token provider
delegate used to obtain the service account token.