Method CreateWithInstancePrincipalForDelegationFromFile
CreateWithInstancePrincipalForDelegationFromFile(String, String)
Creates a new instance of IAMAuthorizationProvider
using an instance principal with a delegation token using the
specified delegation file.
Declaration
public static IAMAuthorizationProvider CreateWithInstancePrincipalForDelegationFromFile(string delegationTokenFile, string federationEndpoint = null)
Parameters
Type | Name | Description |
---|---|---|
String | delegationTokenFile | Path to the delegation token file. |
String | federationEndpoint | (Optional) The federation endpoint. If not specified, the federation endpoint is auto-detected. Most applications do not need to specify this parameter. |
Returns
Type | Description |
---|---|
IAMAuthorizationProvider | A new instance of IAMAuthorizationProvider that uses the instance principal and the specified delegation token file. |
Remarks
The delegation token allows the instance to assume the privileges
of the user for which the token was created. The delegation token
file will be read to obtain the delegation token each time the
request signature is renewed.