Skip to content

Commit

Permalink
Merge pull request #17 from MicrosoftDocs/master
Browse files Browse the repository at this point in the history
Sync with source
  • Loading branch information
AzureMentor authored Jun 28, 2019
2 parents da91a5e + 719f18c commit fcbd012
Show file tree
Hide file tree
Showing 1,674 changed files with 33,656 additions and 20,895 deletions.
2 changes: 0 additions & 2 deletions .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
"MD035": false,
"MD036": false,
"MD037": false,
"MD038": false,
"MD039": false,
"MD040": false,
"MD041": false,
"MD042": false,
Expand Down
143 changes: 112 additions & 31 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
"source_path": "articles/best-practices-network-security.md",
"redirect_url": "https://docs.microsoft.com/azure/architecture/vdc/networking-virtual-datacenter",
"redirect_document_id": true
},
{
"source_path": "articles/active-directory/saas-apps/realtimeboard-tutorial.md",
"redirect_url": "/articles/active-directory/saas-apps/miro-tutorial",
"redirect_document_id": true
},
{
"source_path": "articles/virtual-network/virtual-networks-dmz-nsg-asm.md",
Expand Down Expand Up @@ -1491,8 +1496,8 @@
"redirect_document_id": true
},
{
"source_path": "articles/cosmos-db/sql-api-sql-query-reference.md",
"redirect_url": "/azure/cosmos-db/sql-api-query-reference",
"source_path": "articles/cosmos-db/sql-api-query-reference.md",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": true
},
{
Expand Down Expand Up @@ -1532,7 +1537,7 @@
},
{
"source_path": "articles/cosmos-db/sql-api-sql-query.md",
"redirect_url": "/azure/cosmos-db/how-to-sql-query",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": false
},
{
Expand All @@ -1545,6 +1550,31 @@
"redirect_url": "/azure/cosmos-db/high-availability",
"redirect_document_id": true
},
{
"source_path": "articles/search/search-fiddler.md",
"redirect_url": "/azure/search/search-get-started-postman",
"redirect_document_id": false
},
{
"source_path": "articles/search/search-create-index-rest-api.md",
"redirect_url": "/azure/search/search-get-started-powershell",
"redirect_document_id": false
},
{
"source_path": "articles/search/search-create-index-dotnet.md",
"redirect_url": "/azure/search/search-get-started-dotnet",
"redirect_document_id": false
},
{
"source_path": "articles/search/search-import-data-dotnet.md",
"redirect_url": "/azure/search/search-get-started-dotnet",
"redirect_document_id": false
},
{
"source_path": "articles/search/search-query-dotnet.md",
"redirect_url": "/azure/search/search-get-started-dotnet",
"redirect_document_id": false
},
{
"source_path": "articles/search/search-autosuggest-example.md",
"redirect_url": "/azure/search/search-autocomplete-tutorial",
Expand Down Expand Up @@ -4655,6 +4685,11 @@
"redirect_url": "/azure/app-service-mobile",
"redirect_document_id": false
},
{
"source_path": "articles/application-gateway/application-gateway-create-gateway-arm-template.md",
"redirect_url": "/azure/application-gateway/create-vmss-template",
"redirect_document_id": false
},
{
"source_path": "articles/application-gateway/application-gateway-webapplicationfirewall-overview.md",
"redirect_url": "/azure/application-gateway/application-gateway-web-application-firewall-overview",
Expand Down Expand Up @@ -11212,7 +11247,7 @@
},
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-scripts.md",
"redirect_url": "/azure/hdinsight/r-server/r-server-get-started",
"redirect_url": "/azure/hdinsight/r-server/r-server-overview",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -11277,7 +11312,7 @@
},
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-scripts-linux.md",
"redirect_url": "/azure/hdinsight/hdinsight-hadoop-r-server-get-started",
"redirect_url": "/azure/hdinsight/hdinsight-hadoop-r-server-overview",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -12157,7 +12192,7 @@
},
{
"source_path": "articles/cosmos-db/documentdb-sql-query-reference.md",
"redirect_url": "/azure/cosmos-db/sql-api-sql-query-reference",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -15100,16 +15135,6 @@
"redirect_url": "/azure/traffic-manager/traffic-manager-manage-endpoints",
"redirect_document_id": false
},
{
"source_path": "articles/virtual-machines/linux/autoscale.md",
"redirect_url": "/azure/virtual-machine-scale-sets/overview",
"redirect_document_id": false
},
{
"source_path": "articles/virtual-machines/windows/autoscale.md",
"redirect_url": "/azure/virtual-machine-scale-sets/overview",
"redirect_document_id": false
},
{
"source_path": "articles/virtual-machine-scale-sets/virtual-machine-scale-sets-advanced-autoscale.md",
"redirect_url": "/azure/monitoring-and-diagnostics/insights-advanced-autoscale-virtual-machine-scale-sets",
Expand Down Expand Up @@ -15375,6 +15400,11 @@
"redirect_url": "/azure/aks/networking-overview",
"redirect_document_id": false
},
{
"source_path": "articles/stream-analytics/stream-analytics-common-troubleshooting-issues.md",
"redirect_url": "/azure/stream-analytics/stream-analytics-troubleshoot-input",
"redirect_document_id": false
},
{
"source_path": "articles/stream-analytics/vs-code-how-to.md",
"redirect_url": "/azure/stream-analytics/vscode-explore-jobs",
Expand Down Expand Up @@ -19916,12 +19946,7 @@
},
{
"source_path": "articles/virtual-machines/virtual-machines-linux-mysql-install.md",
"redirect_url": "/azure/virtual-machines/linux/mysql-on-opensuse",
"redirect_document_id": false
},
{
"source_path": "articles/virtual-machines/linux/mysql-install.md",
"redirect_url": "/azure/virtual-machines/linux/mysql-on-opensuse",
"redirect_url": "/azure/virtual-machines/linux/mysql-install",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -22484,6 +22509,21 @@
"redirect_url": "/azure/vs-azure-tools-storage-explorer-relnotes",
"redirect_document_id": false
},
{
"source_path": "articles/cosmos-db/how-to-sql-query.md",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": false
},
{
"source_path": "articles/cosmos-db/sql-api-query-getting-started.md",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": false
},
{
"source_path": "articles/cosmos-db/sql-query-reference.md",
"redirect_url": "/azure/cosmos-db/sql-query-getting-started",
"redirect_document_id": false
},
{
"source_path": "articles/active-directory/secure-email-introduction.md",
"redirect_url": "https://docs.microsoft.com/microsoft-365-enterprise/microsoft-365-policies-configurations",
Expand Down Expand Up @@ -25831,8 +25871,8 @@
},
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-server-get-started.md",
"redirect_url": "/azure/hdinsight/r-server/r-server-get-started",
"redirect_document_id": true
"redirect_url": "/azure/hdinsight/r-server/r-server-overview",
"redirect_document_id": false
},
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-server-install-r-studio.md",
Expand All @@ -25842,7 +25882,7 @@
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-server-overview.md",
"redirect_url": "/azure/hdinsight/r-server/r-server-overview",
"redirect_document_id": true
"redirect_document_id": false
},
{
"source_path": "articles/hdinsight/hdinsight-hadoop-r-server-storage.md",
Expand Down Expand Up @@ -26161,7 +26201,12 @@
},
{
"source_path": "articles/hdinsight/r-server/r-server-install-r-studio.md",
"redirect_url": "/azure/hdinsight/r-server/r-server-get-started",
"redirect_url": "/azure/hdinsight/r-server/r-server-overview",
"redirect_document_id": false
},
{
"source_path": "articles/hdinsight/r-server/r-server-get-started.md",
"redirect_url": "/azure/hdinsight/r-server/r-server-overview",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -27148,6 +27193,11 @@
"source_path": "articles/backup/backup-azure-dpm-introduction-classic.md",
"redirect_url": "/azure/backup/backup-azure-dpm-introduction",
"redirect_document_id": false
},
{
"source_path": "articles/backup/backup-azure-monitor-vms.md",
"redirect_url": "/azure/backup/backup-azure-monitoring-built-in-monitor",
"redirect_document_id": false
},
{
"source_path": "articles/backup/backup-azure-manage-vms-classic.md",
Expand Down Expand Up @@ -30313,7 +30363,17 @@
"source_path": "articles/networking/index.md",
"redirect_url": "/azure/networking/networking-overview",
"redirect_document_id": false
},
},
{
"source_path": "articles/notification-hubs/configure-android-device-messaging.md",
"redirect_url": "/azure//notification-hubs/configure-google-firebase-cloud-messaging",
"redirect_document_id": false
},
{
"source_path": "articles/notification-hubs/notification-hubs-kindle-amazon-adm-push-notification.md",
"redirect_url": "/azure//notification-hubs/notification-hubs-android-push-notification-google-fcm-get-started",
"redirect_document_id": false
},
{
"source_path": "articles/security/blueprints/index.md",
"redirect_url": "/azure/security/index",
Expand Down Expand Up @@ -36608,6 +36668,17 @@
"redirect_url": "https://docs.microsoft.com/python/api/overview/azure/dataprep/intro?view=azure-dataprep-py",
"redirect_document_id": false
},
{
"source_path": "articles/machine-learning/service/how-to-create-dataset-snapshots.md",
"redirect_url": "https://docs.microsoft.com/python/api/azureml-core/azureml.data.dataset_snapshot.datasetsnapshot?view=azure-ml-py",
"redirect_document_id": false
},

{
"source_path": "articles/machine-learning/service/how-to-manage-dataset-definitions.md",
"redirect_url": "https://docs.microsoft.com/python/api/azureml-core/azureml.core.dataset?view=azure-ml-py",
"redirect_document_id": false
},
{
"source_path": "articles/governance/policy/samples/allowed-app-gate-sku.md",
"redirect_url": "/azure/governance/policy/samples/allowed-app-gateway-sku",
Expand Down Expand Up @@ -37499,7 +37570,12 @@
},
{
"source_path": "articles/hdinsight/hdinsight-analyze-flight-delay-data.md",
"redirect_url": "/azure/hdinsight/hdinsight-analyze-flight-delay-data-linux",
"redirect_url": "/azure/hdinsight/interactive-query/interactive-query-tutorial-analyze-flight-data",
"redirect_document_id": false
},
{
"source_path": "articles/hdinsight/hdinsight-analyze-flight-delay-data-linux.md",
"redirect_url": "/azure/hdinsight/interactive-query/interactive-query-tutorial-analyze-flight-data",
"redirect_document_id": false
},
{
Expand Down Expand Up @@ -39953,9 +40029,14 @@
"redirect_document_id": true
},
{
"source_path": "articles/sql-database/sql-database-auditing-and-dynamic-data-masking-downlevel-clients.md",
"redirect_url": "/azure/sql-database/sql-database-auditing",
"redirect_document_id": true
"source_path": "articles/cognitive-services/text-analytics/how-tos/text-analytics-how-to-use-container-instance.md",
"redirect_url": "/azure/cognitive-services/text-analytics/how-tos/use-language-detection-on-aks",
"redirect_document_id": false
},
{
"source_path": "articles/storage/blobs/data-lake-storage-use-hdi-cluster.md",
"redirect_url": "/azure/hdinsight/hdinsight-hadoop-use-data-lake-storage-gen2",
"redirect_document_id": false
}
]
}
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ Follow the instructions provided in the [Install content authoring tools](https:

## License

Please refer to [LICENSE](.github/LICENSE), [LICENSE-CODE](.github/LICENSE-CODE) and [ThirdPartyNotices](.github/ThirdPartyNotices.md) for all Licensing information.
Please refer to [LICENSE](LICENSE), [LICENSE-CODE](LICENSE-CODE) and [ThirdPartyNotices](ThirdPartyNotices.md) for all Licensing information.

## Code of Conduct

This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information, see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: REST API claims exchanges - Azure Active Directory B2C | Microsoft Docs
title: REST API claims exchanges - Azure Active Directory B2C
description: Add REST API claims exchanges to custom policies in Active Directory B2C.
services: active-directory-b2c
author: mmacy
Expand All @@ -24,7 +24,7 @@ The interaction includes a claims exchange of information between the REST API c
- Can be designed as an orchestration step.
- Can trigger an external action. For instance, it can log an event in an external database.
- Can be used to fetch a value and then store it in the user database.
- Can change the flow of execution.
- Can change the flow of execution.

The scenario that is represented in this article includes the following actions:

Expand All @@ -41,9 +41,16 @@ The scenario that is represented in this article includes the following actions:

In this section, you prepare the Azure function to receive a value for `email`, and then return the value for `city` that can be used by Azure AD B2C as a claim.

Change the run.csx file for the Azure function that you created to use the following code:
Change the run.csx file for the Azure function that you created to use the following code:

```csharp
#r "Newtonsoft.Json"

using System.Net;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using Newtonsoft.Json;

```
public static async Task<IActionResult> Run(HttpRequest req, ILogger log)
{
log.LogInformation("C# HTTP trigger function processed a request.");
Expand Down Expand Up @@ -73,9 +80,9 @@ public class ResponseContent

## Configure the claims exchange

A technical profile provides the configuration for the claim exchange.
A technical profile provides the configuration for the claim exchange.

Open the *TrustFrameworkExtensions.xml* file and add the following XML elements inside the **ClaimsProvider** element.
Open the *TrustFrameworkExtensions.xml* file and add the following **ClaimsProvider** XML element inside the **ClaimsProviders** element.

```XML
<ClaimsProvider>
Expand Down Expand Up @@ -130,7 +137,7 @@ Add a step to the profile edit user journey. After the user is authenticated (or
```XML
<OrchestrationStep Order="6" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="GetLoyaltyData" TechnicalProfileReferenceId="AzureFunctions-LookUpLoyaltyWebHook" />
<ClaimsExchange Id="GetLoyaltyData" TechnicalProfileReferenceId="AzureFunctions-WebHook" />
</ClaimsExchanges>
</OrchestrationStep>
```
Expand Down Expand Up @@ -184,7 +191,7 @@ The final XML for the user journey should look like this example:
<!-- Add a step 6 to the user journey before the JWT token is created-->
<OrchestrationStep Order="6" Type="ClaimsExchange">
<ClaimsExchanges>
<ClaimsExchange Id="GetLoyaltyData" TechnicalProfileReferenceId="AzureFunctions-LookUpLoyaltyWebHook" />
<ClaimsExchange Id="GetLoyaltyData" TechnicalProfileReferenceId="AzureFunctions-WebHook" />
</ClaimsExchanges>
</OrchestrationStep>
<OrchestrationStep Order="7" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="JwtIssuer" />
Expand All @@ -200,13 +207,15 @@ Edit the *ProfileEdit.xml* file and add `<OutputClaim ClaimTypeReferenceId="city
After you add the new claim, the technical profile looks like this example:

```XML
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub"/>
<OutputClaim ClaimTypeReferenceId="city" />
</OutputClaims>
<SubjectNamingInfo ClaimType="sub" />
<TechnicalProfile Id="PolicyProfile">
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<OutputClaims>
<OutputClaim ClaimTypeReferenceId="objectId" PartnerClaimType="sub"/>
<OutputClaim ClaimTypeReferenceId="tenantId" AlwaysUseDefaultValue="true" DefaultValue="{Policy:TenantObjectId}" />
<OutputClaim ClaimTypeReferenceId="city" />
</OutputClaims>
<SubjectNamingInfo ClaimType="sub" />
</TechnicalProfile>
```

Expand Down
Loading

0 comments on commit fcbd012

Please sign in to comment.