Skip to main content

Customize and upload your custom policies

TrustFrameworkBase.xml

  1. In your editor, navigate to the policy folder.
  2. Open the TrustFrameworkBase.xml file.
  3. Replace yourtenant with your Azure tenant account name in the TenantId.
  4. Replace yourtenant with your Azure tenant account name in PublicPolicyUri.
  5. Replace all @authentication_cloud_url@ instances with the URL of your Nevis Admin console (https://<instance_id>.mauth.nevis.cloud/).
  6. Save the changes to your file.
note

Syntax

Watch out for the correct syntax and delimiting when you copy the paste URL from Authentication Cloud: One slash between the hostname and the URI section in the URL No trailing slash before the colon of the port number 443

For example:

<InputClaim ClaimTypeReferenceId="url" DefaultValue="https://sandbox-qw234.mauth.nevis.cloud:443/" />
<Item Key="ServiceUrl">https://sandbox-qw234.mauth.nevis.cloud/api/v1/status</Item>

TrustFrameworkExtensions.xml

  1. In your editor, navigate to the policy folder.
  2. Open the TrustFrameworkExtensions.xml file.
  3. Replace yourtenant with your Azure tenant account name in the TenantId.
  4. Replace yourtenant with your Azure tenant account name in PublicPolicyUri.
  5. Under BasePolicy, in the TenantId, also replace yourtenant with your Azure tenant account name.
  6. Under BuildingBlocks, replace @LoadUri@ with the blob link URL of your nevis.html in your blob storage account.
  7. Replace both instances of IdentityExperienceFrameworkAppId with the application ID of the IdentityExperienceFramework application that you created earlier.
  8. Replace both instances of ProxyIdentityExperienceFrameworkAppId with the application ID of the ProxyIdentityExperienceFramework application that you created earlier.
  9. Save the file.

SignUpOrSignin.xml

  1. In your editor, navigate to the policy folder.
  2. Open the SignUpOrSignin.xml file.
  3. Replace yourtenant with your Azure tenant account name in the TenantId.
  4. Replace yourtenant with your Azure tenant account name in PublicPolicyUri.
  5. Under BasePolicy, in the TenantId, also replace yourtenant with your Azure tenant account name.
  6. Save the file.

Upload your custom policies to Azure:

  1. Open your Azure AD B2C tenant home.
  2. Click Identity Experience Framework.
  3. Click Upload custom policy.
  4. Select the TrustFrameworkBase.xml file you just modified.
  5. Select the Overwrite the custom policy if it already exists checkbox.
  6. Click Upload.
  7. Do the same for TrustFrameworkExtensions.xml.
  8. Do the same for SignUpOrSignin.xml.
Verification

To verify the that the policies are correctly in place in the AD B2C tenant, check the following settings:

  1. After uploading the three custom policy files, they are listed as follows:
Uploaded policy files
  1. You can find the copy URL link on the following screen:
B2C_1A_signup_signin custom policy details