AzureActiveDirectoryUtility Class
Shared routines for Azure Active Directory conventions.
Namespace
Songhay
Base Types
  • object
graph BT Type-->Base0["object"] Type["AzureActiveDirectoryUtility"] class Type type-node

Syntax

public class AzureActiveDirectoryUtility

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

Name Return Value Summary
GetActiveDirectoryAccessMetadata(string) RestApiMetadata
Returns the RestApiMetadata corresponding to the conventional property name "ActiveDirectoryAccess".
static
GetAzureKeyVaultMetadata(string) RestApiMetadata
Returns the RestApiMetadata corresponding to the conventional property name "ActiveDirectoryAccess".
static

Extension Methods

Name Value Summary
IsAssignableToISerializable<AzureActiveDirectoryUtility>() bool
Determines whether the specified type can be assigned to System.Runtime.Serialization.ISerializable.
ToObjectOrDbNull<AzureActiveDirectoryUtility>() object
Boxes the nullable in object or returns DBNull.
ToReferenceTypeValueOrThrow<AzureActiveDirectoryUtility>(string) T
Returns the non-null value of the specified, nullable reference type or throws an ArgumentNullException when the value is null.