This repository has been archived by the owner on Jul 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
StringConstants.cs
43 lines (32 loc) · 1.74 KB
/
StringConstants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Microsoft.WindowsAzure.ActiveDirectory.GraphClient
{
public class StringConstants
{
// resource that is used to request a token for
public const string Resource = "https://graph.windows.net";
//this is the STS endpoint for Windows Azure AD
public const string AuthenticationEndpoint = "https://login.microsoftonline.com/";
// The URL of Graph service endpoint
public const string BaseGraphUri = "https://graph.windows.net/";
// Graph API version
public const string ApiVersion = "api-version=1.21-preview";
// Graph API preview version
public const string ApiVersionPreview = "api-version=1.21-preview";
// Next section is tenant and application specific configuraiton.
// Your tenant objectId or tenant domain name – this can be any of a tenant's verified domain
public static string Tenant = "dxtest.onmicrosoft.com";
// Config for OAuth client credentials (2-legged OAuth, S2S Authn flow)
public static string ClientId = "eeed6b47-a902-4c40-94ae-76d30e26a5ef";
public static string AppObjectId = "a4eff3a2-2a90-494a-9db4-497958a0319f";
public static string ClientSecret = "WzeIRPCwE54thByEV1a8+uambXJkuCRB1xH/fcGhOmM=";
// FIXTHIS: Config for OAuth Authorization Code grant flow (3-legged OAuth Auth flow - includes user authentication)
//public const string clientIdForUserAuthn = "7318ca25-0f32-4d77-8843-2c4bc2a44326"; //for user_impersonation
public const string RedirectUri = "https://localhost";
public const string LogFile = "AADGraph.log";
}
}