1- //-------------------------------------------------------------------------------------------------
2- // <copyright file="Constants.cs" company="Microsoft">
3- // Copyright (c) Microsoft Corporation. All rights reserved.
4- // </copyright>
5- //
6- // <summary>
7- // Delta Query sample client.
8- //
9- // This source is subject to the Sample Client End User License Agreement
10- // included in this project.
11- // </summary>
12- //
13- // <remarks />
14- //
15- // <disclaimer>
16- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
17- // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
18- // WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
19- // </disclaimer>
20- //-------------------------------------------------------------------------------------------------
1+ /*
2+ The MIT License (MIT)
3+
4+ Copyright (c) 2019 Microsoft Corporation
5+
6+ Permission is hereby granted, free of charge, to any person obtaining a copy
7+ of this software and associated documentation files (the "Software"), to deal
8+ in the Software without restriction, including without limitation the rights
9+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+ copies of the Software, and to permit persons to whom the Software is
11+ furnished to do so, subject to the following conditions:
12+
13+ The above copyright notice and this permission notice shall be included in all
14+ copies or substantial portions of the Software.
15+
16+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+ SOFTWARE.
23+ */
2124
2225namespace DeltaQueryApplication
2326{
@@ -26,20 +29,6 @@ namespace DeltaQueryApplication
2629 /// </summary>
2730 internal static class Constants
2831 {
29- /// <summary>
30- /// Authorization header.
31- /// </summary>
32- public const string HeaderNameAuthorization = "Authorization" ;
33-
34- /// <summary>
35- /// deltaLink query parameter.
36- /// </summary>
37- public const string DeltaLinkQueryParameter = "deltatoken" ;
38-
39- /// <summary>
40- /// nextLink query parameter.
41- /// </summary>
42- public const string NextLinkQueryParameter = "skiptoken" ;
4332
4433 /// <summary>
4534 /// Feed annotation that represents a URI to be called immediately for more changes.
@@ -52,8 +41,8 @@ internal static class Constants
5241 public const string NextLinkFeedAnnotation = "@odata.nextLink" ;
5342
5443 /// <summary>
55- /// Format for getting STS endpoint.
44+ /// String url for the default scope in MS Graph
5645 /// </summary>
57- public const string AuthEndpoint = "https://login.windows.net/{0} " ;
46+ public const string DefaultScope = "https://graph.microsoft.com/.default " ;
5847 }
5948}
0 commit comments