Interface IManagedIdentityApplication
Component to be used with managed identity applications for Azure resources.
public interface IManagedIdentityApplication : IApplicationBase
Methods
AcquireTokenForManagedIdentity(string)
Acquires token for a managed identity configured on Azure resource. See https://aka.ms/msal-net-managed-identity.
AcquireTokenForManagedIdentityParameterBuilder AcquireTokenForManagedIdentity(string resource)
Parameters
resource
stringresource requested to access the protected API. For this flow (managed identity), the resource should be of the form "{ResourceIdUri}" or {ResourceIdUri/.default} for instance
https://management.azure.net
or, for Microsoft Graph,https://graph.microsoft.com/.default
.
Returns
- AcquireTokenForManagedIdentityParameterBuilder
A builder enabling you to add optional parameters before executing the token request
Remarks
You can also chain the following optional parameters: WithForceRefresh(bool)