-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwellknown.go
94 lines (91 loc) · 3.03 KB
/
wellknown.go
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
package azureimposter
type AzAuthInfo struct {
Name string
ClientId string
RedirectURI string
Scope string
Resource string
OtherParams map[string]string
}
var (
WellKnownClients = map[string]AzAuthInfo{
"Graph": {
Name: "Graph",
ClientId: "1b730954-1685-4b74-9bfd-dac224a7b894",
RedirectURI: "https://login.microsoftonline.com/common/oauth2/nativeclient",
// RedirectURI: "urn:ietf:wg:oauth:2.0:oob",
Scope: "https://graph.microsoft.com//.default",
},
"Az": {
Name: "Az",
ClientId: "1950a258-227b-4e31-a9cf-717495945fc2",
Scope: "https://management.core.windows.net//.default openid profile offline_access",
},
"IAM": {
Name: "IAM",
ClientId: "d3590ed6-52b3-4102-aeff-aad2292ab01c",
RedirectURI: "urn:ietf:wg:oauth:2.0:oob",
Resource: "74658136-14ec-4630-ad9b-26e160ff0fc6",
Scope: "openid profile",
// Scope: "https://main.iam.ad.ext.azure.com//.default",
},
// Not at all tested below here
"Teams": {
Name: "Teams",
ClientId: "1fec8e78-bce4-4aaf-ab1b-5451cc387264",
RedirectURI: "https://login.microsoftonline.com/common/oauth2/nativeclient",
},
"SPO": {
Name: "SPO",
ClientId: "9bc3ab49-b65d-410a-85ad-de819febfddc",
RedirectURI: "https://oauth.spops.microsoft.com/",
},
"AzureAdmin": {
Name: "AzureAdmin",
ClientId: "c44b4083-3bb0-49c1-b47d-974e53cbdf3c",
RedirectURI: "https://portal.azure.com/signin/index/?feature.prefetchtokens=true&feature.showservicehealthalerts=true&feature.usemsallogin=true",
},
"AzureAD": {
Name: "AzureAD",
ClientId: "0000000c-0000-0000-c000-000000000000",
RedirectURI: "https://account.activedirectory.windowsazure.com/",
Scope: "https://graph.windows.net//user_impersonation",
},
"MySignIns": {
Name: "MySignIns",
ClientId: "19db86c3-b2b9-44cc-b339-36da233a3be2",
RedirectURI: "https://mysignins.microsoft.com",
},
"AzureADJoin": {
Name: "AzureADJoin",
ClientId: "29d9ed98-a469-4536-ade2-f981bc1d605e", // not for resource "https://enrollment.manage.microsoft.com/"
RedirectURI: "ms-aadj-redir://auth/drs",
},
"AzureAndroidApp": {
Name: "AzureAndroidApp",
ClientId: "0c1307d4-29d6-4389-a11c-5cbe7f65d7fa",
RedirectURI: "https://azureapp",
},
"OneDriveWeb": {
Name: "OneDriveWeb",
ClientId: "33be1cef-03fb-444b-8fd3-08ca1b4d803f",
RedirectURI: "https://admin.onedrive.com",
},
"OneDriveNative": {
Name: "OneDriveNative",
ClientId: "ab9b8c07-8f02-4f72-87fa-80105867a763",
RedirectURI: "https://login.windows.net/common/oauth2/nativeclient",
},
"MSCommerce": {
Name: "MSCommerce",
ClientId: "3d5cffa9-04da-4657-8cab-c7f074657cad",
RedirectURI: "http://localhost/m365/commerce",
},
"Office": {
Name: "Office",
ClientId: "d3590ed6-52b3-4102-aeff-aad2292ab01c",
RedirectURI: "urn:ietf:wg:oauth:2.0:oob",
Scope: "https://management.core.windows.net//user_impersonation",
},
}
)