Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 12268e6

Browse files
author
Jim Crowley
authored
Merge pull request #10 from microsoftgraph/headerupdate
adding request header
2 parents 4c1fe75 + f56e006 commit 12268e6

File tree

2 files changed

+6454
-5409
lines changed

2 files changed

+6454
-5409
lines changed

Microsoft-Graph-Snippets-SDK/AuthenticationHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ public static GraphServiceClient GetAuthenticatedClient()
4545
{
4646
var token = await GetTokenForUserAsync();
4747
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("bearer", token);
48+
// This header has been added to identify our sample in the Microsoft Graph service. If extracting this code for your project please remove.
49+
requestMessage.Headers.Add("SampleID", "uwp-csharp-snippets-sample");
4850

4951
}));
5052
return graphClient;

0 commit comments

Comments
 (0)