Skip to content

Commit da64202

Browse files
authored
Merge pull request #164445 from cephalin/pr#76924
#76924
2 parents a75359e + e20d00d commit da64202

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

articles/app-service/configure-authentication-oauth-tokens.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ From your server code, the provider-specific tokens are injected into the reques
2121
| Twitter | `X-MS-TOKEN-TWITTER-ACCESS-TOKEN` <br/> `X-MS-TOKEN-TWITTER-ACCESS-TOKEN-SECRET` |
2222
|||
2323

24+
> [!NOTE]
25+
> Different language frameworks may present these headers to the app code in different formats, such as lowercase or title case.
26+
2427
From your client code (such as a mobile app or in-browser JavaScript), send an HTTP `GET` request to `/.auth/me` ([token store](overview-authentication-authorization.md#token-store) must be enabled). The returned JSON has the provider-specific tokens.
2528

2629
> [!NOTE]

articles/app-service/configure-authentication-user-identities.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ For all language frameworks, App Service makes the claims in the incoming token
1818

1919
Code that is written in any language or framework can get the information that it needs from these headers.
2020

21+
> [!NOTE]
22+
> Different language frameworks may present these headers to the app code in different formats, such as lowercase or title case.
23+
2124
For ASP.NET 4.6 apps, App Service populates [ClaimsPrincipal.Current](/dotnet/api/system.security.claims.claimsprincipal.current) with the authenticated user's claims, so you can follow the standard .NET code pattern, including the `[Authorize]` attribute. Similarly, for PHP apps, App Service populates the `_SERVER['REMOTE_USER']` variable. For Java apps, the claims are [accessible from the Tomcat servlet](configure-language-java.md#authenticate-users-easy-auth).
2225

2326
For [Azure Functions](../azure-functions/functions-overview.md), `ClaimsPrincipal.Current` is not populated for .NET code, but you can still find the user claims in the request headers, or get the `ClaimsPrincipal` object from the request context or even through a binding parameter. See [working with client identities in Azure Functions](../azure-functions/functions-bindings-http-webhook-trigger.md#working-with-client-identities) for more information.

0 commit comments

Comments
 (0)