ManagedIdentityTokenSource class
Token Source implementation for Azure Managed Identities.
Example
Get a list of Azure Subscriptions by calling the Azure Resource Manager HTTP API.
const df = require("durable-functions");
df.app.orchestration(function* (context) {
return yield context.df.callHttp({
method: "GET",
url: "https://management.azure.com/subscriptions?api-version=2019-06-01",
tokenSource: df.ManagedIdentityTokenSource("https://management.core.windows.net"),
});
});
Constructors
Managed |
Returns a |
Properties
resource | The Azure Active Directory resource identifier of the web API being invoked.
For example, |
Constructor Details
ManagedIdentityTokenSource(string)
Returns a ManagedIdentityTokenSource
object.
new ManagedIdentityTokenSource(resource: string)
Parameters
- resource
-
string
The Azure Active Directory resource identifier of the web API being invoked.
Property Details
resource
The Azure Active Directory resource identifier of the web API being invoked.
For example, https://management.core.windows.net/
or https://graph.microsoft.com/
.
resource: string
Property Value
string