# Azure Data Lake Storage authentication method

1. To add the reusable authentication method, click the **Libraries** > **Authentication Methods** > **Add Authentication Method** > **Azure Data Lake Storage**.
2. Provide a unique name for the authentication method.
3. Optionally, enter a description to help identify the purpose or scope of this method.
4. Select the **Authentication Type**:
   * **Azure Secret Key**: Use a storage account access key for authentication. Enter the following information:
     * **Secret Key**: Enter the Azure Data Lake storage account's access key.

       Using an access key grants full access to all containers in the storage account.

   * **OAuth 2.0**: Use [Azure Active Directory (Azure AD)](https://www.progress.com/automate-mft/documentation/libraries/authentication-methods/azure-data-lake-storage-authentication-method#section_j3k_3ld_kjc) for authentication. Enter the following information:
     * **Client ID**: Enter the client ID issued by the OAuth provider.
     * **Client Secret**: Enter the client secret.
     * **Tenant Id**: Enter the Azure AD tenant ID associated with the storage account.
5. **Save** the new authentication method.

## Azure configuration requirements (OAuth 2.0)

To use OAuth 2.0 authentication, complete the following setup in the Azure portal:

1. Create an App Registration
   * Register an application in Azure AD.
   * Create a **client secret** (do not use a certificate).
   * Record the **Client ID**, **Tenant ID**, and **Client Secret value**.
2. Assign permissions to the storage account
   * Open the storage account and navigate to the target Data Lake container.
   * In **Access control (IAM)**, add a **Role Assignment**.
   * Assign the App Registration to one of the following roles:
     * **Storage Blob Data Reader**
     * **Storage Blob Data Contributor**
     * **Storage Blob Data Owner**
