From 43909c94fb348c0858e05d48e7bee1e638a067d2 Mon Sep 17 00:00:00 2001 From: Yogesh Beniwal <7325107+yogeshbeniwal@users.noreply.github.com> Date: Mon, 7 Nov 2022 22:13:39 +0530 Subject: [PATCH] Remove MFA from initial setup --- GettingStarted/Az.ADB2C.psm1 | 6 +++--- GettingStarted/AzureADB2C-Scripts.psm1 | 6 +++--- GettingStarted/README.md | 2 +- .../B2CIEFSetupWeb/Utilities/B2CSetup.cs | 12 ++++++------ .../B2CIEFSetupWeb/Views/Home/Index.cshtml | 6 +++--- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/GettingStarted/Az.ADB2C.psm1 b/GettingStarted/Az.ADB2C.psm1 index 392c941..7f0577b 100644 --- a/GettingStarted/Az.ADB2C.psm1 +++ b/GettingStarted/Az.ADB2C.psm1 @@ -311,7 +311,7 @@ function Connect-AzADB2C Filename if only downloading a single file. .EXAMPLE - Get-AzADB2CStarterPack -PolicyType "SocialAndLocalAccountsWithMfa" + Get-AzADB2CStarterPack -PolicyType "SocialAndLocalAccounts" #> function Get-AzADB2CStarterPack( [Parameter(Mandatory=$false)][Alias('p')][string]$PolicyPath = "", @@ -373,10 +373,10 @@ function Get-AzADB2CStarterPack( New-AzADB2CPolicyProject -PolicyPrefix "demo" .EXAMPLE - New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalWithMfa" + New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccounts" .EXAMPLE - New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalWithMfa" -NoCustomAttributes:$True + New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccounts" -NoCustomAttributes:$True #> function New-AzADB2CPolicyProject ( diff --git a/GettingStarted/AzureADB2C-Scripts.psm1 b/GettingStarted/AzureADB2C-Scripts.psm1 index 448dfb7..7bf1d6a 100644 --- a/GettingStarted/AzureADB2C-Scripts.psm1 +++ b/GettingStarted/AzureADB2C-Scripts.psm1 @@ -15,7 +15,7 @@ Filename if only downloading a single file. .EXAMPLE - Get-AzureADB2CStarterPack -PolicyType "SocialAndLocalAccountsWithMfa" + Get-AzureADB2CStarterPack -PolicyType "SocialAndLocalAccounts" #> function Get-AzureADB2CStarterPack( [Parameter(Mandatory=$false)][Alias('p')][string]$PolicyPath = "", @@ -72,10 +72,10 @@ function Get-AzureADB2CStarterPack( New-AzureADB2CPolicyProject -PolicyPrefix "demo" .EXAMPLE - New-AzureADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalWithMfa" + New-AzureADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccounts" .EXAMPLE - New-AzureADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalWithMfa" -NoCustomAttributes:$True + New-AzureADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccounts" -NoCustomAttributes:$True #> function New-AzureADB2CPolicyProject ( diff --git a/GettingStarted/README.md b/GettingStarted/README.md index ec98d70..d07ad73 100644 --- a/GettingStarted/README.md +++ b/GettingStarted/README.md @@ -126,7 +126,7 @@ New-AzADB2CPolicyProject -PolicyPrefix "demo" The default PolicyType is `SocialAndLocalAccounts` and if you would like to base your policies on another type, you specify that on the command line. ```powershell -New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccountsWithMfa" +New-AzADB2CPolicyProject -PolicyPrefix "demo" -PolicyType "SocialAndLocalAccounts" ``` After you have run `New-AzADB2CPolicyProject`, you can directly push them to your tenant and test them diff --git a/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Utilities/B2CSetup.cs b/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Utilities/B2CSetup.cs index a43d34c..77fdbef 100644 --- a/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Utilities/B2CSetup.cs +++ b/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Utilities/B2CSetup.cs @@ -254,15 +254,15 @@ private Dictionary GetPolicyFiles(bool removeFb, string dirDomai { var policyFileList = new List(); - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/localization/SocialAndLocalAccountsWithMfa/TrustFrameworkBase.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/localization/SocialAndLocalAccounts/TrustFrameworkBase.xml")); if (!removeFb) { - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccountsWithMfa/TrustFrameworkLocalization.xml")); - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccountsWithMfa/TrustFrameworkExtensions.xml")); - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccountsWithMfa/SignUpOrSignin.xml")); - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccountsWithMfa/PasswordReset.xml")); - policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccountsWithMfa/ProfileEdit.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccounts/TrustFrameworkLocalization.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccounts/TrustFrameworkExtensions.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccounts/SignUpOrSignin.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccounts/PasswordReset.xml")); + policyFileList.Add(new WebClient().DownloadString("https://raw.githubusercontent.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack/master/SocialAndLocalAccounts/ProfileEdit.xml")); } if (removeFb) { diff --git a/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Views/Home/Index.cshtml b/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Views/Home/Index.cshtml index 9ec59a0..69ea82f 100644 --- a/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Views/Home/Index.cshtml +++ b/IEFTenantSetupV2/B2CIEFSetupWeb/B2CIEFSetupWeb/Views/Home/Index.cshtml @@ -13,7 +13,7 @@