ToAzureActiveDirectoryAccessTokenData(RestApiMetadata) Method
Converts the specified RestApiMetadata to the data required by Songhay.AzureKeyVaultRestApiUtility.GetAccessTokenAsync(System.Nullable{Uri},System.Nullable{Dictionary{System.String,System.String}}).
Namespace
Songhay.Extensions
Containing Type
RestApiMetadataExtensions

Syntax

public static Dictionary<string, string> ToAzureActiveDirectoryAccessTokenData(this RestApiMetadata meta)

Remarks

As of this writing, this member should return data of the form:
"grant_type": "client_credentials",
"scope": "https://vault.azure.net/.default",
"client_id": "active-directory-registration-app-id",
"client_secret": "active-directory-registration-app-secret"
where client_id is the value of the appId property in the output of az ad app list; client_secret is the secret exposed under the App registration in the Azure Portal. 🔬☔ test coverage of this member further documents how the RestApiMetadata should be formatted

Parameters

Name Type Description
meta RestApiMetadata the RestApiMetadata

Return Value

Type Description
Dictionary<string, string>