# Azure Active Directory B2C Configuration

**About Azure Directory B2C** : [https://docs.microsoft.com/en-us/azure/active-directory-b2c/overview](https://docs.microsoft.com/en-us/azure/active-directory-b2c/overview)

CrushFTP requires : **Tenant name**, **User flow name**, **Client ID** of the App registration.\
![B2c azure settings](CrushOAuth/b2c_azure_settings.png)

**Applications Legacy**:\
![Legacy](Azure-Active-Directory-B2C-Configuration/legacy.png)

Create a new application. Set yes for "**Include web app**". Provide the redirect URL (**https://<\<your crushftp domain>>/WebInterface/login.html**)

![New application](Azure-Active-Directory-B2C-Configuration/new_application.png)

![Copy application id](Azure-Active-Directory-B2C-Configuration/copy_application_id.png)

Go to the **Preferences-> Ip/Servers** and select the HTTP or HTTPS port item(**OAuth Sign in** Tab) where you want to enable the **Azure Active Directory B2C** button. Check the "**Enable Azure Active Directory B2C Sign in**" flag and provide the **Tenant name**, **User flow name**, **Application ID** (mentioned above).\
![Port item settings b2c](CrushOAuth/port_item_settings_b2c.png)

Configure the CrushOAuth plugin and enable the flag: "**Enable Azure Active Directory B2C Auth**".

**Continue on:** [CrushOAuth](CrushOAuth.md)
