Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Current »

The following functions for Azure described here are:

acquireAzureOAuthToken

Contacts Azure to set up an OAuth Token based on the stated parameters.

AzureOAuthToken acquireAzureOAuthToken( 
string tenantID, 
string resourceID, 
string clientID, 
string certificate, 
string certifcatePassword )

Parameters

ParameterDescription

tenantID

The Tenant ID is a GUID for your instance, or domain.

resourceID

The Resource ID is the App ID uri of the Azure application that you want to receive an OAuth Token for.

clientIDAlso known as an Application ID, a GUID that identifies the Azure application that is requesting the OAuth Token.
certificateThe full path and filename to the certificate. Must be set up on the EC that the workflow is running on. Only a PFX formatted certificate can be used.
certificatePasswordThe password to the certificate.

Returns

An AzureOAuthToken UDR, or an exception if the parameters/credentials were incorrect.

Example

AzureOAuth.AzureOAuthToken = AzureOAuth.acquireAzureOAuthToken("733f2c27-a0ca-45e1-a3b7-014bd4518ea3", "https://storage.azure.com/", "69bca157-2362-4ca7-adf3-6a26f6bd842f", "/opt/azure/certificate/appaccesscert.pfx", "verysecretpass");

acquireAzureOAuthTokenCustomAuthority

Contacts Azure to set up an OAuth Token based on the stated parameters with authorityHost.

AzureOAuthToken acquireAzureOAuthToken( 
string tenantID, 
string resourceID, 
string clientID, 
string certificate, 
string certifcatePassword,
string authorityHost )

Parameters

ParameterDescription

tenantID

The Tenant ID is a GUID for your instance, or domain.

resourceID

The Resource ID is the App ID uri of the Azure application that you want to receive an OAuth Token for.

clientIDAlso known as an Application ID, a GUID that identifies the Azure application that is requesting the OAuth Token.
certificateThe full path and filename to the certificate. Must be set up on the EC that the workflow is running on. Only a PFX formatted certificate can be used.
certificatePasswordThe password to the certificate.
authorityHostThe URL for the directory that Microsoft Authentication Library will request tokens from.

Returns

An AzureOAuthToken UDR, or an exception if the parameters/credentials were incorrect.

Example

AzureOAuth.AzureOAuthToken = AzureOAuth.acquireAzureOAuthToken("733f2c27-a0ca-45e1-a3b7-014bd4518ea3", "https://storage.azure.com/", "69bca157-2362-4ca7-adf3-6a26f6bd842f", "/opt/azure/certificate/appaccesscert.pfx", "verysecretpass", "https://login.microsoftonline.com/");


This chapter includes the following section:

  • No labels