pub struct ImdsManagedIdentityCredential { /* private fields */ }
Expand description

Attempts authentication using a managed identity that has been assigned to the deployment environment.

This authentication type works in Azure VMs, App Service and Azure Functions applications, as well as the Azure Cloud Shell

Built up from docs at https://docs.microsoft.com/azure/app-service/overview-managed-identity#using-the-rest-protocol

Implementations§

Creates a new ImdsManagedIdentityCredential using the given HttpClient.

Specifies the object id associated with a user assigned managed service identity resource that should be used to retrieve the access token.

The values of client_id and msi_res_id are discarded, as only one id parameter may be set when getting a token.

Specifies the application id (client id) associated with a user assigned managed service identity resource that should be used to retrieve the access token.

The values of object_id and msi_res_id are discarded, as only one id parameter may be set when getting a token.

Specifies the ARM resource id of the user assigned managed service identity resource that should be used to retrieve the access token.

The values of object_id and client_id are discarded, as only one id parameter may be set when getting a token.

Trait Implementations§

Creates an instance of the TransportOptions using the default HttpClient.

Gets a TokenResponse for the specified resource

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more