Table of Contents

Class AzureActiveDirectoryUtility

Namespace
Songhay
Assembly
SonghayCore.dll

Shared routines for Azure Active Directory conventions.

public class AzureActiveDirectoryUtility
Inheritance
AzureActiveDirectoryUtility
Inherited Members
Extension Methods

Remarks

These utilities are expecting a JSON string of the form:

 {
    "ActiveDirectoryAccess": {
        "ApiBase": "https://login.microsoftonline.com/",
        "ClaimsSet": {
            "grant_type": "client_credentials",
            "scope": "https://vault.azure.net/.default",
            "client_id": "active-directory-registration-app-id",
            "client_secret": "active-directory-registration-app-secret",
            "tenantOrDirectoryId": "active-directory-registration-app-directory-id"
        },
        "UriTemplates": {
            "UriPathTemplateForToken": "{tenantOrDirectoryId}/oauth2/v2.0/token"
        }
    },
    "AzureKeyVault": {
        "ApiBase": "https://your-secrets.vault.azure.net/",
        "ClaimsSet": {
            "queryPairForApiVersion": "api-version=2016-10-01",
            "secretNameForMySecret": "my-secret"
        },
        "UriTemplates": {
            "UriPathTemplateForSecret": "secrets/{secretName}"
        }
    }
}

For security reasons, a very small precaution, this class will not hold any fields.

Methods

GetActiveDirectoryAccessMetadata(string?)

Returns the RestApiMetadata corresponding to the conventional property name "ActiveDirectoryAccess".

public static RestApiMetadata GetActiveDirectoryAccessMetadata(string? json)

Parameters

json string

JSON of the format shown in the remarks of this class definition.

Returns

RestApiMetadata

GetAzureKeyVaultMetadata(string?)

Returns the RestApiMetadata corresponding to the conventional property name "ActiveDirectoryAccess".

public static RestApiMetadata GetAzureKeyVaultMetadata(string? json)

Parameters

json string

JSON of the format shown in the remarks of this class definition.

Returns

RestApiMetadata