Skip to content

Commit

Permalink
Policy preview
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelhor committed Jan 23, 2022
1 parent 7758e48 commit 129ad8b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## January 2022

- Policy upload with preview. When you upload a single policy you can run the policy with a URL you reconfigure in the `aadb2c.previewUrl` setting.
- Auto-replace the 'yourtenant' with your tenant name. When you upload a single policy you can configure the Azure AD B2C extension to replace the 'yourtenant' tenant name that comes with the B2C samples with your tenant name. To change the settings, configure the `aadb2c.graph.replaceSamplesYourTenantWit` setting key.


## August 2021

- Check if the [XML](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml), or the [XML Tools
Expand Down
17 changes: 14 additions & 3 deletions src/help/policy-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ In the **Graph: ClientId**, set the value of the application ID you created earl

![vscode-settings-msgraph.png](media/vscode-settings-msgraph.png)

## Upload a policy
## Upload a single policy

To upload a policy
To upload the current policy you are working on:

- `CTRL` + `SHIFT + P`
- `CTRL` + `SHIFT + U`
- Type **B2C Upload Policy**
- You will then see the following. Click Login to launch the browser for Device code login

Expand All @@ -41,6 +41,15 @@ To upload a policy

- Sign-in with your Azure AD B2C tenant admin account


### Policy preview

When you upload a single policy you can run the policy with a URL you reconfigure in the `aadb2c.previewUrl` settings key.

### Replace the 'yourtenant' with your tenant name

When you upload a single policy you can configure the Azure AD B2C extension to replace the 'yourtenant' tenant name that comes with the B2C samples with your tenant name. To change the settings, configure the `aadb2c.graph.replaceSamplesYourTenantWit` settings key.

## Upload all policies for an environment

The default environment name in the extension's settings needs to be configured before using 'Upload all policies' command. if this is not set then the extension will upload policies from the root working folder. Before uploading a specific environment run **B2C Policy Build** command.
Expand All @@ -50,3 +59,5 @@ The same process for logging in to Azure should be followed (refer to the "Uploa
To initiate the upload press `ALT`+`SHIFT`+`U` or launch the **B2C Upload all policies** command in the commands list (`CTRL`+`SHIFT`+`P`).

Once all policies are successfully uploaded a popup will display a success message stating the number of policies uploaded. An error message will be displayed for all failed uploads. If any of the policies have failed to upload the whole job will terminate immediately and an error message will be displayed.


0 comments on commit 129ad8b

Please sign in to comment.