@azure/msal-common 14.0.1 → 14.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist/account/AuthToken.d.ts +14 -17
  2. package/dist/account/AuthToken.d.ts.map +1 -1
  3. package/dist/account/AuthToken.mjs +48 -39
  4. package/dist/account/AuthToken.mjs.map +1 -1
  5. package/dist/account/CcsCredential.mjs +1 -1
  6. package/dist/account/CcsCredential.mjs.map +1 -1
  7. package/dist/account/ClientInfo.d.ts.map +1 -1
  8. package/dist/account/ClientInfo.mjs +3 -4
  9. package/dist/account/ClientInfo.mjs.map +1 -1
  10. package/dist/authority/Authority.d.ts +1 -0
  11. package/dist/authority/Authority.d.ts.map +1 -1
  12. package/dist/authority/Authority.mjs +4 -2
  13. package/dist/authority/Authority.mjs.map +1 -1
  14. package/dist/authority/AuthorityFactory.d.ts +1 -0
  15. package/dist/authority/AuthorityFactory.d.ts.map +1 -1
  16. package/dist/authority/AuthorityFactory.mjs +3 -3
  17. package/dist/authority/AuthorityFactory.mjs.map +1 -1
  18. package/dist/authority/AuthorityMetadata.mjs +1 -1
  19. package/dist/authority/AuthorityMetadata.mjs.map +1 -1
  20. package/dist/authority/AuthorityOptions.mjs +1 -1
  21. package/dist/authority/AuthorityOptions.mjs.map +1 -1
  22. package/dist/authority/AuthorityType.mjs +1 -1
  23. package/dist/authority/AuthorityType.mjs.map +1 -1
  24. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  25. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs.map +1 -1
  26. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  27. package/dist/authority/CloudInstanceDiscoveryResponse.mjs.map +1 -1
  28. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  29. package/dist/authority/OpenIdConfigResponse.mjs.map +1 -1
  30. package/dist/authority/ProtocolMode.mjs +1 -1
  31. package/dist/authority/ProtocolMode.mjs.map +1 -1
  32. package/dist/authority/RegionDiscovery.mjs +1 -1
  33. package/dist/authority/RegionDiscovery.mjs.map +1 -1
  34. package/dist/cache/CacheManager.d.ts +2 -0
  35. package/dist/cache/CacheManager.d.ts.map +1 -1
  36. package/dist/cache/CacheManager.mjs +7 -5
  37. package/dist/cache/CacheManager.mjs.map +1 -1
  38. package/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -1
  39. package/dist/cache/entities/AccessTokenEntity.mjs +4 -7
  40. package/dist/cache/entities/AccessTokenEntity.mjs.map +1 -1
  41. package/dist/cache/entities/AccountEntity.d.ts +1 -0
  42. package/dist/cache/entities/AccountEntity.d.ts.map +1 -1
  43. package/dist/cache/entities/AccountEntity.mjs +3 -4
  44. package/dist/cache/entities/AccountEntity.mjs.map +1 -1
  45. package/dist/cache/entities/AppMetadataEntity.mjs +1 -1
  46. package/dist/cache/entities/AppMetadataEntity.mjs.map +1 -1
  47. package/dist/cache/entities/AuthorityMetadataEntity.d.ts +1 -0
  48. package/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -1
  49. package/dist/cache/entities/AuthorityMetadataEntity.mjs +2 -1
  50. package/dist/cache/entities/AuthorityMetadataEntity.mjs.map +1 -1
  51. package/dist/cache/entities/CacheRecord.d.ts +1 -0
  52. package/dist/cache/entities/CacheRecord.d.ts.map +1 -1
  53. package/dist/cache/entities/CacheRecord.mjs +2 -1
  54. package/dist/cache/entities/CacheRecord.mjs.map +1 -1
  55. package/dist/cache/entities/CredentialEntity.mjs +1 -1
  56. package/dist/cache/entities/CredentialEntity.mjs.map +1 -1
  57. package/dist/cache/entities/IdTokenEntity.mjs +1 -1
  58. package/dist/cache/entities/IdTokenEntity.mjs.map +1 -1
  59. package/dist/cache/entities/RefreshTokenEntity.mjs +1 -1
  60. package/dist/cache/entities/RefreshTokenEntity.mjs.map +1 -1
  61. package/dist/cache/entities/ServerTelemetryEntity.mjs +1 -1
  62. package/dist/cache/entities/ServerTelemetryEntity.mjs.map +1 -1
  63. package/dist/cache/entities/ThrottlingEntity.mjs +1 -1
  64. package/dist/cache/entities/ThrottlingEntity.mjs.map +1 -1
  65. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  66. package/dist/cache/persistence/TokenCacheContext.mjs.map +1 -1
  67. package/dist/cache/utils/CacheTypes.d.ts +7 -0
  68. package/dist/cache/utils/CacheTypes.d.ts.map +1 -1
  69. package/dist/client/AuthorizationCodeClient.d.ts +1 -0
  70. package/dist/client/AuthorizationCodeClient.d.ts.map +1 -1
  71. package/dist/client/AuthorizationCodeClient.mjs +11 -39
  72. package/dist/client/AuthorizationCodeClient.mjs.map +1 -1
  73. package/dist/client/BaseClient.d.ts +2 -1
  74. package/dist/client/BaseClient.d.ts.map +1 -1
  75. package/dist/client/BaseClient.mjs +9 -2
  76. package/dist/client/BaseClient.mjs.map +1 -1
  77. package/dist/client/RefreshTokenClient.d.ts +1 -0
  78. package/dist/client/RefreshTokenClient.d.ts.map +1 -1
  79. package/dist/client/RefreshTokenClient.mjs +3 -11
  80. package/dist/client/RefreshTokenClient.mjs.map +1 -1
  81. package/dist/client/SilentFlowClient.d.ts +1 -0
  82. package/dist/client/SilentFlowClient.d.ts.map +1 -1
  83. package/dist/client/SilentFlowClient.mjs +8 -7
  84. package/dist/client/SilentFlowClient.mjs.map +1 -1
  85. package/dist/config/ClientConfiguration.d.ts +2 -0
  86. package/dist/config/ClientConfiguration.d.ts.map +1 -1
  87. package/dist/config/ClientConfiguration.mjs +1 -1
  88. package/dist/config/ClientConfiguration.mjs.map +1 -1
  89. package/dist/crypto/ICrypto.mjs +1 -1
  90. package/dist/crypto/ICrypto.mjs.map +1 -1
  91. package/dist/crypto/JoseHeader.d.ts +1 -0
  92. package/dist/crypto/JoseHeader.d.ts.map +1 -1
  93. package/dist/crypto/JoseHeader.mjs +2 -1
  94. package/dist/crypto/JoseHeader.mjs.map +1 -1
  95. package/dist/crypto/PopTokenGenerator.d.ts +1 -0
  96. package/dist/crypto/PopTokenGenerator.d.ts.map +1 -1
  97. package/dist/crypto/PopTokenGenerator.mjs +2 -1
  98. package/dist/crypto/PopTokenGenerator.mjs.map +1 -1
  99. package/dist/error/AuthError.mjs +1 -1
  100. package/dist/error/AuthError.mjs.map +1 -1
  101. package/dist/error/ClientAuthError.mjs +1 -1
  102. package/dist/error/ClientAuthError.mjs.map +1 -1
  103. package/dist/error/ClientConfigurationError.mjs +1 -1
  104. package/dist/error/ClientConfigurationError.mjs.map +1 -1
  105. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  106. package/dist/error/InteractionRequiredAuthError.mjs.map +1 -1
  107. package/dist/error/JoseHeaderError.mjs +1 -1
  108. package/dist/error/JoseHeaderError.mjs.map +1 -1
  109. package/dist/error/ServerError.mjs +1 -1
  110. package/dist/error/ServerError.mjs.map +1 -1
  111. package/dist/index.cjs +1926 -1826
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.ts +4 -3
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.mjs +5 -3
  116. package/dist/index.mjs.map +1 -1
  117. package/dist/logger/Logger.d.ts.map +1 -1
  118. package/dist/logger/Logger.mjs +2 -12
  119. package/dist/logger/Logger.mjs.map +1 -1
  120. package/dist/network/INetworkModule.mjs +1 -1
  121. package/dist/network/INetworkModule.mjs.map +1 -1
  122. package/dist/network/NetworkManager.d.ts +1 -0
  123. package/dist/network/NetworkManager.d.ts.map +1 -1
  124. package/dist/network/NetworkManager.mjs +2 -1
  125. package/dist/network/NetworkManager.mjs.map +1 -1
  126. package/dist/network/ThrottlingUtils.d.ts +1 -0
  127. package/dist/network/ThrottlingUtils.d.ts.map +1 -1
  128. package/dist/network/ThrottlingUtils.mjs +2 -1
  129. package/dist/network/ThrottlingUtils.mjs.map +1 -1
  130. package/dist/packageMetadata.d.ts +1 -1
  131. package/dist/packageMetadata.mjs +2 -2
  132. package/dist/packageMetadata.mjs.map +1 -1
  133. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  134. package/dist/request/AuthenticationHeaderParser.mjs.map +1 -1
  135. package/dist/request/RequestParameterBuilder.d.ts +1 -0
  136. package/dist/request/RequestParameterBuilder.d.ts.map +1 -1
  137. package/dist/request/RequestParameterBuilder.mjs +7 -7
  138. package/dist/request/RequestParameterBuilder.mjs.map +1 -1
  139. package/dist/request/RequestValidator.d.ts.map +1 -1
  140. package/dist/request/RequestValidator.mjs +4 -6
  141. package/dist/request/RequestValidator.mjs.map +1 -1
  142. package/dist/request/ScopeSet.mjs +4 -4
  143. package/dist/request/ScopeSet.mjs.map +1 -1
  144. package/dist/response/AuthenticationResult.d.ts +3 -1
  145. package/dist/response/AuthenticationResult.d.ts.map +1 -1
  146. package/dist/response/ResponseHandler.d.ts +5 -3
  147. package/dist/response/ResponseHandler.d.ts.map +1 -1
  148. package/dist/response/ResponseHandler.mjs +58 -39
  149. package/dist/response/ResponseHandler.mjs.map +1 -1
  150. package/dist/response/ServerAuthorizationTokenResponse.d.ts +2 -0
  151. package/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -1
  152. package/dist/telemetry/performance/IPerformanceClient.d.ts +4 -4
  153. package/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -1
  154. package/dist/telemetry/performance/PerformanceClient.d.ts +2 -2
  155. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  156. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  157. package/dist/telemetry/performance/PerformanceClient.mjs.map +1 -1
  158. package/dist/telemetry/performance/PerformanceEvent.d.ts +8 -1
  159. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  160. package/dist/telemetry/performance/PerformanceEvent.mjs +9 -1
  161. package/dist/telemetry/performance/PerformanceEvent.mjs.map +1 -1
  162. package/dist/telemetry/performance/StubPerformanceClient.d.ts +3 -3
  163. package/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -1
  164. package/dist/telemetry/performance/StubPerformanceClient.mjs +23 -3
  165. package/dist/telemetry/performance/StubPerformanceClient.mjs.map +1 -1
  166. package/dist/telemetry/server/ServerTelemetryManager.d.ts +1 -0
  167. package/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -1
  168. package/dist/telemetry/server/ServerTelemetryManager.mjs +4 -4
  169. package/dist/telemetry/server/ServerTelemetryManager.mjs.map +1 -1
  170. package/dist/url/UrlString.d.ts.map +1 -1
  171. package/dist/url/UrlString.mjs +10 -12
  172. package/dist/url/UrlString.mjs.map +1 -1
  173. package/dist/utils/Constants.d.ts +10 -0
  174. package/dist/utils/Constants.d.ts.map +1 -1
  175. package/dist/utils/Constants.mjs +11 -2
  176. package/dist/utils/Constants.mjs.map +1 -1
  177. package/dist/utils/FunctionWrappers.d.ts +28 -0
  178. package/dist/utils/FunctionWrappers.d.ts.map +1 -0
  179. package/dist/utils/FunctionWrappers.mjs +90 -0
  180. package/dist/utils/FunctionWrappers.mjs.map +1 -0
  181. package/dist/utils/ProtocolUtils.d.ts.map +1 -1
  182. package/dist/utils/ProtocolUtils.mjs +4 -7
  183. package/dist/utils/ProtocolUtils.mjs.map +1 -1
  184. package/dist/utils/StringUtils.d.ts +0 -13
  185. package/dist/utils/StringUtils.d.ts.map +1 -1
  186. package/dist/utils/StringUtils.mjs +3 -34
  187. package/dist/utils/StringUtils.mjs.map +1 -1
  188. package/dist/utils/TimeUtils.mjs +1 -1
  189. package/dist/utils/TimeUtils.mjs.map +1 -1
  190. package/package.json +6 -4
  191. package/src/account/AccountInfo.ts +44 -0
  192. package/src/account/AuthToken.ts +70 -0
  193. package/src/account/CcsCredential.ts +16 -0
  194. package/src/account/ClientCredentials.ts +20 -0
  195. package/src/account/ClientInfo.ts +64 -0
  196. package/src/account/TokenClaims.ts +70 -0
  197. package/src/authority/Authority.ts +1225 -0
  198. package/src/authority/AuthorityFactory.ts +106 -0
  199. package/src/authority/AuthorityMetadata.ts +953 -0
  200. package/src/authority/AuthorityOptions.ts +40 -0
  201. package/src/authority/AuthorityType.ts +15 -0
  202. package/src/authority/AzureRegion.ts +7 -0
  203. package/src/authority/AzureRegionConfiguration.ts +16 -0
  204. package/src/authority/CloudDiscoveryMetadata.ts +10 -0
  205. package/src/authority/CloudInstanceDiscoveryErrorResponse.ts +26 -0
  206. package/src/authority/CloudInstanceDiscoveryResponse.ts +21 -0
  207. package/src/authority/ImdsOptions.ts +10 -0
  208. package/src/authority/OIDCOptions.ts +14 -0
  209. package/src/authority/OpenIdConfigResponse.ts +24 -0
  210. package/src/authority/ProtocolMode.ts +13 -0
  211. package/src/authority/RegionDiscovery.ts +193 -0
  212. package/src/authority/RegionDiscoveryMetadata.ts +15 -0
  213. package/src/broker/nativeBroker/INativeBrokerPlugin.ts +29 -0
  214. package/src/cache/CacheManager.ts +1619 -0
  215. package/src/cache/entities/AccessTokenEntity.ts +162 -0
  216. package/src/cache/entities/AccountEntity.ts +309 -0
  217. package/src/cache/entities/AppMetadataEntity.ts +91 -0
  218. package/src/cache/entities/AuthorityMetadataEntity.ts +112 -0
  219. package/src/cache/entities/CacheRecord.ts +33 -0
  220. package/src/cache/entities/CredentialEntity.ts +215 -0
  221. package/src/cache/entities/IdTokenEntity.ts +74 -0
  222. package/src/cache/entities/RefreshTokenEntity.ts +78 -0
  223. package/src/cache/entities/ServerTelemetryEntity.ts +38 -0
  224. package/src/cache/entities/ThrottlingEntity.ts +36 -0
  225. package/src/cache/interface/ICacheManager.ts +218 -0
  226. package/src/cache/interface/ICachePlugin.ts +11 -0
  227. package/src/cache/interface/ISerializableTokenCache.ts +9 -0
  228. package/src/cache/persistence/TokenCacheContext.ts +39 -0
  229. package/src/cache/utils/CacheTypes.ts +93 -0
  230. package/src/client/AuthorizationCodeClient.ts +714 -0
  231. package/src/client/BaseClient.ts +205 -0
  232. package/src/client/RefreshTokenClient.ts +442 -0
  233. package/src/client/SilentFlowClient.ts +186 -0
  234. package/src/config/AppTokenProvider.ts +47 -0
  235. package/src/config/ClientConfiguration.ts +287 -0
  236. package/src/crypto/ICrypto.ts +127 -0
  237. package/src/crypto/IGuidGenerator.ts +9 -0
  238. package/src/crypto/JoseHeader.ts +55 -0
  239. package/src/crypto/PopTokenGenerator.ts +155 -0
  240. package/src/crypto/SignedHttpRequest.ts +16 -0
  241. package/src/error/AuthError.ts +85 -0
  242. package/src/error/ClientAuthError.ts +738 -0
  243. package/src/error/ClientConfigurationError.ts +396 -0
  244. package/src/error/InteractionRequiredAuthError.ts +134 -0
  245. package/src/error/JoseHeaderError.ts +52 -0
  246. package/src/error/ServerError.ts +18 -0
  247. package/src/index.ts +215 -0
  248. package/src/logger/Logger.ts +272 -0
  249. package/src/network/INetworkModule.ts +57 -0
  250. package/src/network/NetworkManager.ts +76 -0
  251. package/src/network/RequestThumbprint.ts +22 -0
  252. package/src/network/ThrottlingUtils.ts +156 -0
  253. package/src/packageMetadata.ts +3 -0
  254. package/src/request/AuthenticationHeaderParser.ts +89 -0
  255. package/src/request/BaseAuthRequest.ts +46 -0
  256. package/src/request/CommonAuthorizationCodeRequest.ts +33 -0
  257. package/src/request/CommonAuthorizationUrlRequest.ts +56 -0
  258. package/src/request/CommonClientCredentialRequest.ts +23 -0
  259. package/src/request/CommonDeviceCodeRequest.ts +31 -0
  260. package/src/request/CommonEndSessionRequest.ts +27 -0
  261. package/src/request/CommonOnBehalfOfRequest.ts +19 -0
  262. package/src/request/CommonRefreshTokenRequest.ts +25 -0
  263. package/src/request/CommonSilentFlowRequest.ts +24 -0
  264. package/src/request/CommonUsernamePasswordRequest.ts +23 -0
  265. package/src/request/NativeRequest.ts +25 -0
  266. package/src/request/NativeSignOutRequest.ts +10 -0
  267. package/src/request/RequestParameterBuilder.ts +606 -0
  268. package/src/request/RequestValidator.ts +103 -0
  269. package/src/request/ScopeSet.ts +230 -0
  270. package/src/request/StoreInCache.ts +16 -0
  271. package/src/response/AuthenticationResult.ts +47 -0
  272. package/src/response/AuthorizationCodePayload.ts +18 -0
  273. package/src/response/DeviceCodeResponse.ts +31 -0
  274. package/src/response/ExternalTokenResponse.ts +24 -0
  275. package/src/response/IMDSBadResponse.ts +9 -0
  276. package/src/response/ResponseHandler.ts +614 -0
  277. package/src/response/ServerAuthorizationCodeResponse.ts +33 -0
  278. package/src/response/ServerAuthorizationTokenResponse.ts +54 -0
  279. package/src/telemetry/performance/IPerformanceClient.ts +71 -0
  280. package/src/telemetry/performance/IPerformanceMeasurement.ts +10 -0
  281. package/src/telemetry/performance/PerformanceClient.ts +635 -0
  282. package/src/telemetry/performance/PerformanceEvent.ts +542 -0
  283. package/src/telemetry/performance/StubPerformanceClient.ts +101 -0
  284. package/src/telemetry/server/ServerTelemetryManager.ts +274 -0
  285. package/src/telemetry/server/ServerTelemetryRequest.ts +13 -0
  286. package/src/url/IUri.ts +17 -0
  287. package/src/url/UrlString.ts +363 -0
  288. package/src/utils/Constants.ts +436 -0
  289. package/src/utils/FunctionWrappers.ts +105 -0
  290. package/src/utils/MsalTypes.ts +9 -0
  291. package/src/utils/ProtocolUtils.ts +124 -0
  292. package/src/utils/StringUtils.ts +106 -0
  293. package/src/utils/TimeUtils.ts +51 -0
  294. package/dist/account/DecodedAuthToken.d.ts +0 -9
  295. package/dist/account/DecodedAuthToken.d.ts.map +0 -1
@@ -0,0 +1,953 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ export const rawMetdataJSON = {
7
+ endpointMetadata: {
8
+ "https://login.microsoftonline.com/common/": {
9
+ token_endpoint:
10
+ "https://login.microsoftonline.com/common/oauth2/v2.0/token",
11
+ token_endpoint_auth_methods_supported: [
12
+ "client_secret_post",
13
+ "private_key_jwt",
14
+ "client_secret_basic",
15
+ ],
16
+ jwks_uri:
17
+ "https://login.microsoftonline.com/common/discovery/v2.0/keys",
18
+ response_modes_supported: ["query", "fragment", "form_post"],
19
+ subject_types_supported: ["pairwise"],
20
+ id_token_signing_alg_values_supported: ["RS256"],
21
+ response_types_supported: [
22
+ "code",
23
+ "id_token",
24
+ "code id_token",
25
+ "id_token token",
26
+ ],
27
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
28
+ issuer: "https://login.microsoftonline.com/{tenantid}/v2.0",
29
+ request_uri_parameter_supported: false,
30
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
31
+ authorization_endpoint:
32
+ "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
33
+ device_authorization_endpoint:
34
+ "https://login.microsoftonline.com/common/oauth2/v2.0/devicecode",
35
+ http_logout_supported: true,
36
+ frontchannel_logout_supported: true,
37
+ end_session_endpoint:
38
+ "https://login.microsoftonline.com/common/oauth2/v2.0/logout",
39
+ claims_supported: [
40
+ "sub",
41
+ "iss",
42
+ "cloud_instance_name",
43
+ "cloud_instance_host_name",
44
+ "cloud_graph_host_name",
45
+ "msgraph_host",
46
+ "aud",
47
+ "exp",
48
+ "iat",
49
+ "auth_time",
50
+ "acr",
51
+ "nonce",
52
+ "preferred_username",
53
+ "name",
54
+ "tid",
55
+ "ver",
56
+ "at_hash",
57
+ "c_hash",
58
+ "email",
59
+ ],
60
+ kerberos_endpoint:
61
+ "https://login.microsoftonline.com/common/kerberos",
62
+ tenant_region_scope: null,
63
+ cloud_instance_name: "microsoftonline.com",
64
+ cloud_graph_host_name: "graph.windows.net",
65
+ msgraph_host: "graph.microsoft.com",
66
+ rbac_url: "https://pas.windows.net",
67
+ },
68
+ "https://login.chinacloudapi.cn/common/": {
69
+ token_endpoint:
70
+ "https://login.chinacloudapi.cn/common/oauth2/v2.0/token",
71
+ token_endpoint_auth_methods_supported: [
72
+ "client_secret_post",
73
+ "private_key_jwt",
74
+ "client_secret_basic",
75
+ ],
76
+ jwks_uri:
77
+ "https://login.chinacloudapi.cn/common/discovery/v2.0/keys",
78
+ response_modes_supported: ["query", "fragment", "form_post"],
79
+ subject_types_supported: ["pairwise"],
80
+ id_token_signing_alg_values_supported: ["RS256"],
81
+ response_types_supported: [
82
+ "code",
83
+ "id_token",
84
+ "code id_token",
85
+ "id_token token",
86
+ ],
87
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
88
+ issuer: "https://login.partner.microsoftonline.cn/{tenantid}/v2.0",
89
+ request_uri_parameter_supported: false,
90
+ userinfo_endpoint:
91
+ "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",
92
+ authorization_endpoint:
93
+ "https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize",
94
+ device_authorization_endpoint:
95
+ "https://login.chinacloudapi.cn/common/oauth2/v2.0/devicecode",
96
+ http_logout_supported: true,
97
+ frontchannel_logout_supported: true,
98
+ end_session_endpoint:
99
+ "https://login.chinacloudapi.cn/common/oauth2/v2.0/logout",
100
+ claims_supported: [
101
+ "sub",
102
+ "iss",
103
+ "cloud_instance_name",
104
+ "cloud_instance_host_name",
105
+ "cloud_graph_host_name",
106
+ "msgraph_host",
107
+ "aud",
108
+ "exp",
109
+ "iat",
110
+ "auth_time",
111
+ "acr",
112
+ "nonce",
113
+ "preferred_username",
114
+ "name",
115
+ "tid",
116
+ "ver",
117
+ "at_hash",
118
+ "c_hash",
119
+ "email",
120
+ ],
121
+ kerberos_endpoint: "https://login.chinacloudapi.cn/common/kerberos",
122
+ tenant_region_scope: null,
123
+ cloud_instance_name: "partner.microsoftonline.cn",
124
+ cloud_graph_host_name: "graph.chinacloudapi.cn",
125
+ msgraph_host: "microsoftgraph.chinacloudapi.cn",
126
+ rbac_url: "https://pas.chinacloudapi.cn",
127
+ },
128
+ "https://login.microsoftonline.us/common/": {
129
+ token_endpoint:
130
+ "https://login.microsoftonline.us/common/oauth2/v2.0/token",
131
+ token_endpoint_auth_methods_supported: [
132
+ "client_secret_post",
133
+ "private_key_jwt",
134
+ "client_secret_basic",
135
+ ],
136
+ jwks_uri:
137
+ "https://login.microsoftonline.us/common/discovery/v2.0/keys",
138
+ response_modes_supported: ["query", "fragment", "form_post"],
139
+ subject_types_supported: ["pairwise"],
140
+ id_token_signing_alg_values_supported: ["RS256"],
141
+ response_types_supported: [
142
+ "code",
143
+ "id_token",
144
+ "code id_token",
145
+ "id_token token",
146
+ ],
147
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
148
+ issuer: "https://login.microsoftonline.us/{tenantid}/v2.0",
149
+ request_uri_parameter_supported: false,
150
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
151
+ authorization_endpoint:
152
+ "https://login.microsoftonline.us/common/oauth2/v2.0/authorize",
153
+ device_authorization_endpoint:
154
+ "https://login.microsoftonline.us/common/oauth2/v2.0/devicecode",
155
+ http_logout_supported: true,
156
+ frontchannel_logout_supported: true,
157
+ end_session_endpoint:
158
+ "https://login.microsoftonline.us/common/oauth2/v2.0/logout",
159
+ claims_supported: [
160
+ "sub",
161
+ "iss",
162
+ "cloud_instance_name",
163
+ "cloud_instance_host_name",
164
+ "cloud_graph_host_name",
165
+ "msgraph_host",
166
+ "aud",
167
+ "exp",
168
+ "iat",
169
+ "auth_time",
170
+ "acr",
171
+ "nonce",
172
+ "preferred_username",
173
+ "name",
174
+ "tid",
175
+ "ver",
176
+ "at_hash",
177
+ "c_hash",
178
+ "email",
179
+ ],
180
+ kerberos_endpoint:
181
+ "https://login.microsoftonline.us/common/kerberos",
182
+ tenant_region_scope: null,
183
+ cloud_instance_name: "microsoftonline.us",
184
+ cloud_graph_host_name: "graph.windows.net",
185
+ msgraph_host: "graph.microsoft.com",
186
+ rbac_url: "https://pasff.usgovcloudapi.net",
187
+ },
188
+ "https://login.microsoftonline.com/consumers/": {
189
+ token_endpoint:
190
+ "https://login.microsoftonline.com/consumers/oauth2/v2.0/token",
191
+ token_endpoint_auth_methods_supported: [
192
+ "client_secret_post",
193
+ "private_key_jwt",
194
+ "client_secret_basic",
195
+ ],
196
+ jwks_uri:
197
+ "https://login.microsoftonline.com/consumers/discovery/v2.0/keys",
198
+ response_modes_supported: ["query", "fragment", "form_post"],
199
+ subject_types_supported: ["pairwise"],
200
+ id_token_signing_alg_values_supported: ["RS256"],
201
+ response_types_supported: [
202
+ "code",
203
+ "id_token",
204
+ "code id_token",
205
+ "id_token token",
206
+ ],
207
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
208
+ issuer: "https://login.microsoftonline.com/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",
209
+ request_uri_parameter_supported: false,
210
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
211
+ authorization_endpoint:
212
+ "https://login.microsoftonline.com/consumers/oauth2/v2.0/authorize",
213
+ device_authorization_endpoint:
214
+ "https://login.microsoftonline.com/consumers/oauth2/v2.0/devicecode",
215
+ http_logout_supported: true,
216
+ frontchannel_logout_supported: true,
217
+ end_session_endpoint:
218
+ "https://login.microsoftonline.com/consumers/oauth2/v2.0/logout",
219
+ claims_supported: [
220
+ "sub",
221
+ "iss",
222
+ "cloud_instance_name",
223
+ "cloud_instance_host_name",
224
+ "cloud_graph_host_name",
225
+ "msgraph_host",
226
+ "aud",
227
+ "exp",
228
+ "iat",
229
+ "auth_time",
230
+ "acr",
231
+ "nonce",
232
+ "preferred_username",
233
+ "name",
234
+ "tid",
235
+ "ver",
236
+ "at_hash",
237
+ "c_hash",
238
+ "email",
239
+ ],
240
+ kerberos_endpoint:
241
+ "https://login.microsoftonline.com/consumers/kerberos",
242
+ tenant_region_scope: null,
243
+ cloud_instance_name: "microsoftonline.com",
244
+ cloud_graph_host_name: "graph.windows.net",
245
+ msgraph_host: "graph.microsoft.com",
246
+ rbac_url: "https://pas.windows.net",
247
+ },
248
+ "https://login.chinacloudapi.cn/consumers/": {
249
+ token_endpoint:
250
+ "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/token",
251
+ token_endpoint_auth_methods_supported: [
252
+ "client_secret_post",
253
+ "private_key_jwt",
254
+ "client_secret_basic",
255
+ ],
256
+ jwks_uri:
257
+ "https://login.chinacloudapi.cn/consumers/discovery/v2.0/keys",
258
+ response_modes_supported: ["query", "fragment", "form_post"],
259
+ subject_types_supported: ["pairwise"],
260
+ id_token_signing_alg_values_supported: ["RS256"],
261
+ response_types_supported: [
262
+ "code",
263
+ "id_token",
264
+ "code id_token",
265
+ "id_token token",
266
+ ],
267
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
268
+ issuer: "https://login.partner.microsoftonline.cn/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",
269
+ request_uri_parameter_supported: false,
270
+ userinfo_endpoint:
271
+ "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",
272
+ authorization_endpoint:
273
+ "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/authorize",
274
+ device_authorization_endpoint:
275
+ "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/devicecode",
276
+ http_logout_supported: true,
277
+ frontchannel_logout_supported: true,
278
+ end_session_endpoint:
279
+ "https://login.chinacloudapi.cn/consumers/oauth2/v2.0/logout",
280
+ claims_supported: [
281
+ "sub",
282
+ "iss",
283
+ "cloud_instance_name",
284
+ "cloud_instance_host_name",
285
+ "cloud_graph_host_name",
286
+ "msgraph_host",
287
+ "aud",
288
+ "exp",
289
+ "iat",
290
+ "auth_time",
291
+ "acr",
292
+ "nonce",
293
+ "preferred_username",
294
+ "name",
295
+ "tid",
296
+ "ver",
297
+ "at_hash",
298
+ "c_hash",
299
+ "email",
300
+ ],
301
+ kerberos_endpoint:
302
+ "https://login.chinacloudapi.cn/consumers/kerberos",
303
+ tenant_region_scope: null,
304
+ cloud_instance_name: "partner.microsoftonline.cn",
305
+ cloud_graph_host_name: "graph.chinacloudapi.cn",
306
+ msgraph_host: "microsoftgraph.chinacloudapi.cn",
307
+ rbac_url: "https://pas.chinacloudapi.cn",
308
+ },
309
+ "https://login.microsoftonline.us/consumers/": {
310
+ token_endpoint:
311
+ "https://login.microsoftonline.us/consumers/oauth2/v2.0/token",
312
+ token_endpoint_auth_methods_supported: [
313
+ "client_secret_post",
314
+ "private_key_jwt",
315
+ "client_secret_basic",
316
+ ],
317
+ jwks_uri:
318
+ "https://login.microsoftonline.us/consumers/discovery/v2.0/keys",
319
+ response_modes_supported: ["query", "fragment", "form_post"],
320
+ subject_types_supported: ["pairwise"],
321
+ id_token_signing_alg_values_supported: ["RS256"],
322
+ response_types_supported: [
323
+ "code",
324
+ "id_token",
325
+ "code id_token",
326
+ "id_token token",
327
+ ],
328
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
329
+ issuer: "https://login.microsoftonline.us/9188040d-6c67-4c5b-b112-36a304b66dad/v2.0",
330
+ request_uri_parameter_supported: false,
331
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
332
+ authorization_endpoint:
333
+ "https://login.microsoftonline.us/consumers/oauth2/v2.0/authorize",
334
+ device_authorization_endpoint:
335
+ "https://login.microsoftonline.us/consumers/oauth2/v2.0/devicecode",
336
+ http_logout_supported: true,
337
+ frontchannel_logout_supported: true,
338
+ end_session_endpoint:
339
+ "https://login.microsoftonline.us/consumers/oauth2/v2.0/logout",
340
+ claims_supported: [
341
+ "sub",
342
+ "iss",
343
+ "cloud_instance_name",
344
+ "cloud_instance_host_name",
345
+ "cloud_graph_host_name",
346
+ "msgraph_host",
347
+ "aud",
348
+ "exp",
349
+ "iat",
350
+ "auth_time",
351
+ "acr",
352
+ "nonce",
353
+ "preferred_username",
354
+ "name",
355
+ "tid",
356
+ "ver",
357
+ "at_hash",
358
+ "c_hash",
359
+ "email",
360
+ ],
361
+ kerberos_endpoint:
362
+ "https://login.microsoftonline.us/consumers/kerberos",
363
+ tenant_region_scope: null,
364
+ cloud_instance_name: "microsoftonline.us",
365
+ cloud_graph_host_name: "graph.windows.net",
366
+ msgraph_host: "graph.microsoft.com",
367
+ rbac_url: "https://pasff.usgovcloudapi.net",
368
+ },
369
+ "https://login.microsoftonline.com/organizations/": {
370
+ token_endpoint:
371
+ "https://login.microsoftonline.com/organizations/oauth2/v2.0/token",
372
+ token_endpoint_auth_methods_supported: [
373
+ "client_secret_post",
374
+ "private_key_jwt",
375
+ "client_secret_basic",
376
+ ],
377
+ jwks_uri:
378
+ "https://login.microsoftonline.com/organizations/discovery/v2.0/keys",
379
+ response_modes_supported: ["query", "fragment", "form_post"],
380
+ subject_types_supported: ["pairwise"],
381
+ id_token_signing_alg_values_supported: ["RS256"],
382
+ response_types_supported: [
383
+ "code",
384
+ "id_token",
385
+ "code id_token",
386
+ "id_token token",
387
+ ],
388
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
389
+ issuer: "https://login.microsoftonline.com/{tenantid}/v2.0",
390
+ request_uri_parameter_supported: false,
391
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
392
+ authorization_endpoint:
393
+ "https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize",
394
+ device_authorization_endpoint:
395
+ "https://login.microsoftonline.com/organizations/oauth2/v2.0/devicecode",
396
+ http_logout_supported: true,
397
+ frontchannel_logout_supported: true,
398
+ end_session_endpoint:
399
+ "https://login.microsoftonline.com/organizations/oauth2/v2.0/logout",
400
+ claims_supported: [
401
+ "sub",
402
+ "iss",
403
+ "cloud_instance_name",
404
+ "cloud_instance_host_name",
405
+ "cloud_graph_host_name",
406
+ "msgraph_host",
407
+ "aud",
408
+ "exp",
409
+ "iat",
410
+ "auth_time",
411
+ "acr",
412
+ "nonce",
413
+ "preferred_username",
414
+ "name",
415
+ "tid",
416
+ "ver",
417
+ "at_hash",
418
+ "c_hash",
419
+ "email",
420
+ ],
421
+ kerberos_endpoint:
422
+ "https://login.microsoftonline.com/organizations/kerberos",
423
+ tenant_region_scope: null,
424
+ cloud_instance_name: "microsoftonline.com",
425
+ cloud_graph_host_name: "graph.windows.net",
426
+ msgraph_host: "graph.microsoft.com",
427
+ rbac_url: "https://pas.windows.net",
428
+ },
429
+ "https://login.chinacloudapi.cn/organizations/": {
430
+ token_endpoint:
431
+ "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/token",
432
+ token_endpoint_auth_methods_supported: [
433
+ "client_secret_post",
434
+ "private_key_jwt",
435
+ "client_secret_basic",
436
+ ],
437
+ jwks_uri:
438
+ "https://login.chinacloudapi.cn/organizations/discovery/v2.0/keys",
439
+ response_modes_supported: ["query", "fragment", "form_post"],
440
+ subject_types_supported: ["pairwise"],
441
+ id_token_signing_alg_values_supported: ["RS256"],
442
+ response_types_supported: [
443
+ "code",
444
+ "id_token",
445
+ "code id_token",
446
+ "id_token token",
447
+ ],
448
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
449
+ issuer: "https://login.partner.microsoftonline.cn/{tenantid}/v2.0",
450
+ request_uri_parameter_supported: false,
451
+ userinfo_endpoint:
452
+ "https://microsoftgraph.chinacloudapi.cn/oidc/userinfo",
453
+ authorization_endpoint:
454
+ "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/authorize",
455
+ device_authorization_endpoint:
456
+ "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/devicecode",
457
+ http_logout_supported: true,
458
+ frontchannel_logout_supported: true,
459
+ end_session_endpoint:
460
+ "https://login.chinacloudapi.cn/organizations/oauth2/v2.0/logout",
461
+ claims_supported: [
462
+ "sub",
463
+ "iss",
464
+ "cloud_instance_name",
465
+ "cloud_instance_host_name",
466
+ "cloud_graph_host_name",
467
+ "msgraph_host",
468
+ "aud",
469
+ "exp",
470
+ "iat",
471
+ "auth_time",
472
+ "acr",
473
+ "nonce",
474
+ "preferred_username",
475
+ "name",
476
+ "tid",
477
+ "ver",
478
+ "at_hash",
479
+ "c_hash",
480
+ "email",
481
+ ],
482
+ kerberos_endpoint:
483
+ "https://login.chinacloudapi.cn/organizations/kerberos",
484
+ tenant_region_scope: null,
485
+ cloud_instance_name: "partner.microsoftonline.cn",
486
+ cloud_graph_host_name: "graph.chinacloudapi.cn",
487
+ msgraph_host: "microsoftgraph.chinacloudapi.cn",
488
+ rbac_url: "https://pas.chinacloudapi.cn",
489
+ },
490
+ "https://login.microsoftonline.us/organizations/": {
491
+ token_endpoint:
492
+ "https://login.microsoftonline.us/organizations/oauth2/v2.0/token",
493
+ token_endpoint_auth_methods_supported: [
494
+ "client_secret_post",
495
+ "private_key_jwt",
496
+ "client_secret_basic",
497
+ ],
498
+ jwks_uri:
499
+ "https://login.microsoftonline.us/organizations/discovery/v2.0/keys",
500
+ response_modes_supported: ["query", "fragment", "form_post"],
501
+ subject_types_supported: ["pairwise"],
502
+ id_token_signing_alg_values_supported: ["RS256"],
503
+ response_types_supported: [
504
+ "code",
505
+ "id_token",
506
+ "code id_token",
507
+ "id_token token",
508
+ ],
509
+ scopes_supported: ["openid", "profile", "email", "offline_access"],
510
+ issuer: "https://login.microsoftonline.us/{tenantid}/v2.0",
511
+ request_uri_parameter_supported: false,
512
+ userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo",
513
+ authorization_endpoint:
514
+ "https://login.microsoftonline.us/organizations/oauth2/v2.0/authorize",
515
+ device_authorization_endpoint:
516
+ "https://login.microsoftonline.us/organizations/oauth2/v2.0/devicecode",
517
+ http_logout_supported: true,
518
+ frontchannel_logout_supported: true,
519
+ end_session_endpoint:
520
+ "https://login.microsoftonline.us/organizations/oauth2/v2.0/logout",
521
+ claims_supported: [
522
+ "sub",
523
+ "iss",
524
+ "cloud_instance_name",
525
+ "cloud_instance_host_name",
526
+ "cloud_graph_host_name",
527
+ "msgraph_host",
528
+ "aud",
529
+ "exp",
530
+ "iat",
531
+ "auth_time",
532
+ "acr",
533
+ "nonce",
534
+ "preferred_username",
535
+ "name",
536
+ "tid",
537
+ "ver",
538
+ "at_hash",
539
+ "c_hash",
540
+ "email",
541
+ ],
542
+ kerberos_endpoint:
543
+ "https://login.microsoftonline.us/organizations/kerberos",
544
+ tenant_region_scope: null,
545
+ cloud_instance_name: "microsoftonline.us",
546
+ cloud_graph_host_name: "graph.windows.net",
547
+ msgraph_host: "graph.microsoft.com",
548
+ rbac_url: "https://pasff.usgovcloudapi.net",
549
+ },
550
+ },
551
+ instanceDiscoveryMetadata: {
552
+ "https://login.microsoftonline.com/common/": {
553
+ tenant_discovery_endpoint:
554
+ "https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration",
555
+ "api-version": "1.1",
556
+ metadata: [
557
+ {
558
+ preferred_network: "login.microsoftonline.com",
559
+ preferred_cache: "login.windows.net",
560
+ aliases: [
561
+ "login.microsoftonline.com",
562
+ "login.windows.net",
563
+ "login.microsoft.com",
564
+ "sts.windows.net",
565
+ ],
566
+ },
567
+ {
568
+ preferred_network: "login.partner.microsoftonline.cn",
569
+ preferred_cache: "login.partner.microsoftonline.cn",
570
+ aliases: [
571
+ "login.partner.microsoftonline.cn",
572
+ "login.chinacloudapi.cn",
573
+ ],
574
+ },
575
+ {
576
+ preferred_network: "login.microsoftonline.de",
577
+ preferred_cache: "login.microsoftonline.de",
578
+ aliases: ["login.microsoftonline.de"],
579
+ },
580
+ {
581
+ preferred_network: "login.microsoftonline.us",
582
+ preferred_cache: "login.microsoftonline.us",
583
+ aliases: [
584
+ "login.microsoftonline.us",
585
+ "login.usgovcloudapi.net",
586
+ ],
587
+ },
588
+ {
589
+ preferred_network: "login-us.microsoftonline.com",
590
+ preferred_cache: "login-us.microsoftonline.com",
591
+ aliases: ["login-us.microsoftonline.com"],
592
+ },
593
+ ],
594
+ },
595
+ "https://login.chinacloudapi.cn/common/": {
596
+ tenant_discovery_endpoint:
597
+ "https://login.chinacloudapi.cn/common/v2.0/.well-known/openid-configuration",
598
+ "api-version": "1.1",
599
+ metadata: [
600
+ {
601
+ preferred_network: "login.microsoftonline.com",
602
+ preferred_cache: "login.windows.net",
603
+ aliases: [
604
+ "login.microsoftonline.com",
605
+ "login.windows.net",
606
+ "login.microsoft.com",
607
+ "sts.windows.net",
608
+ ],
609
+ },
610
+ {
611
+ preferred_network: "login.partner.microsoftonline.cn",
612
+ preferred_cache: "login.partner.microsoftonline.cn",
613
+ aliases: [
614
+ "login.partner.microsoftonline.cn",
615
+ "login.chinacloudapi.cn",
616
+ ],
617
+ },
618
+ {
619
+ preferred_network: "login.microsoftonline.de",
620
+ preferred_cache: "login.microsoftonline.de",
621
+ aliases: ["login.microsoftonline.de"],
622
+ },
623
+ {
624
+ preferred_network: "login.microsoftonline.us",
625
+ preferred_cache: "login.microsoftonline.us",
626
+ aliases: [
627
+ "login.microsoftonline.us",
628
+ "login.usgovcloudapi.net",
629
+ ],
630
+ },
631
+ {
632
+ preferred_network: "login-us.microsoftonline.com",
633
+ preferred_cache: "login-us.microsoftonline.com",
634
+ aliases: ["login-us.microsoftonline.com"],
635
+ },
636
+ ],
637
+ },
638
+ "https://login.microsoftonline.us/common/": {
639
+ tenant_discovery_endpoint:
640
+ "https://login.microsoftonline.us/common/v2.0/.well-known/openid-configuration",
641
+ "api-version": "1.1",
642
+ metadata: [
643
+ {
644
+ preferred_network: "login.microsoftonline.com",
645
+ preferred_cache: "login.windows.net",
646
+ aliases: [
647
+ "login.microsoftonline.com",
648
+ "login.windows.net",
649
+ "login.microsoft.com",
650
+ "sts.windows.net",
651
+ ],
652
+ },
653
+ {
654
+ preferred_network: "login.partner.microsoftonline.cn",
655
+ preferred_cache: "login.partner.microsoftonline.cn",
656
+ aliases: [
657
+ "login.partner.microsoftonline.cn",
658
+ "login.chinacloudapi.cn",
659
+ ],
660
+ },
661
+ {
662
+ preferred_network: "login.microsoftonline.de",
663
+ preferred_cache: "login.microsoftonline.de",
664
+ aliases: ["login.microsoftonline.de"],
665
+ },
666
+ {
667
+ preferred_network: "login.microsoftonline.us",
668
+ preferred_cache: "login.microsoftonline.us",
669
+ aliases: [
670
+ "login.microsoftonline.us",
671
+ "login.usgovcloudapi.net",
672
+ ],
673
+ },
674
+ {
675
+ preferred_network: "login-us.microsoftonline.com",
676
+ preferred_cache: "login-us.microsoftonline.com",
677
+ aliases: ["login-us.microsoftonline.com"],
678
+ },
679
+ ],
680
+ },
681
+ "https://login.microsoftonline.com/consumers/": {
682
+ tenant_discovery_endpoint:
683
+ "https://login.microsoftonline.com/consumers/v2.0/.well-known/openid-configuration",
684
+ "api-version": "1.1",
685
+ metadata: [
686
+ {
687
+ preferred_network: "login.microsoftonline.com",
688
+ preferred_cache: "login.windows.net",
689
+ aliases: [
690
+ "login.microsoftonline.com",
691
+ "login.windows.net",
692
+ "login.microsoft.com",
693
+ "sts.windows.net",
694
+ ],
695
+ },
696
+ {
697
+ preferred_network: "login.partner.microsoftonline.cn",
698
+ preferred_cache: "login.partner.microsoftonline.cn",
699
+ aliases: [
700
+ "login.partner.microsoftonline.cn",
701
+ "login.chinacloudapi.cn",
702
+ ],
703
+ },
704
+ {
705
+ preferred_network: "login.microsoftonline.de",
706
+ preferred_cache: "login.microsoftonline.de",
707
+ aliases: ["login.microsoftonline.de"],
708
+ },
709
+ {
710
+ preferred_network: "login.microsoftonline.us",
711
+ preferred_cache: "login.microsoftonline.us",
712
+ aliases: [
713
+ "login.microsoftonline.us",
714
+ "login.usgovcloudapi.net",
715
+ ],
716
+ },
717
+ {
718
+ preferred_network: "login-us.microsoftonline.com",
719
+ preferred_cache: "login-us.microsoftonline.com",
720
+ aliases: ["login-us.microsoftonline.com"],
721
+ },
722
+ ],
723
+ },
724
+ "https://login.chinacloudapi.cn/consumers/": {
725
+ tenant_discovery_endpoint:
726
+ "https://login.chinacloudapi.cn/consumers/v2.0/.well-known/openid-configuration",
727
+ "api-version": "1.1",
728
+ metadata: [
729
+ {
730
+ preferred_network: "login.microsoftonline.com",
731
+ preferred_cache: "login.windows.net",
732
+ aliases: [
733
+ "login.microsoftonline.com",
734
+ "login.windows.net",
735
+ "login.microsoft.com",
736
+ "sts.windows.net",
737
+ ],
738
+ },
739
+ {
740
+ preferred_network: "login.partner.microsoftonline.cn",
741
+ preferred_cache: "login.partner.microsoftonline.cn",
742
+ aliases: [
743
+ "login.partner.microsoftonline.cn",
744
+ "login.chinacloudapi.cn",
745
+ ],
746
+ },
747
+ {
748
+ preferred_network: "login.microsoftonline.de",
749
+ preferred_cache: "login.microsoftonline.de",
750
+ aliases: ["login.microsoftonline.de"],
751
+ },
752
+ {
753
+ preferred_network: "login.microsoftonline.us",
754
+ preferred_cache: "login.microsoftonline.us",
755
+ aliases: [
756
+ "login.microsoftonline.us",
757
+ "login.usgovcloudapi.net",
758
+ ],
759
+ },
760
+ {
761
+ preferred_network: "login-us.microsoftonline.com",
762
+ preferred_cache: "login-us.microsoftonline.com",
763
+ aliases: ["login-us.microsoftonline.com"],
764
+ },
765
+ ],
766
+ },
767
+ "https://login.microsoftonline.us/consumers/": {
768
+ tenant_discovery_endpoint:
769
+ "https://login.microsoftonline.us/consumers/v2.0/.well-known/openid-configuration",
770
+ "api-version": "1.1",
771
+ metadata: [
772
+ {
773
+ preferred_network: "login.microsoftonline.com",
774
+ preferred_cache: "login.windows.net",
775
+ aliases: [
776
+ "login.microsoftonline.com",
777
+ "login.windows.net",
778
+ "login.microsoft.com",
779
+ "sts.windows.net",
780
+ ],
781
+ },
782
+ {
783
+ preferred_network: "login.partner.microsoftonline.cn",
784
+ preferred_cache: "login.partner.microsoftonline.cn",
785
+ aliases: [
786
+ "login.partner.microsoftonline.cn",
787
+ "login.chinacloudapi.cn",
788
+ ],
789
+ },
790
+ {
791
+ preferred_network: "login.microsoftonline.de",
792
+ preferred_cache: "login.microsoftonline.de",
793
+ aliases: ["login.microsoftonline.de"],
794
+ },
795
+ {
796
+ preferred_network: "login.microsoftonline.us",
797
+ preferred_cache: "login.microsoftonline.us",
798
+ aliases: [
799
+ "login.microsoftonline.us",
800
+ "login.usgovcloudapi.net",
801
+ ],
802
+ },
803
+ {
804
+ preferred_network: "login-us.microsoftonline.com",
805
+ preferred_cache: "login-us.microsoftonline.com",
806
+ aliases: ["login-us.microsoftonline.com"],
807
+ },
808
+ ],
809
+ },
810
+ "https://login.microsoftonline.com/organizations/": {
811
+ tenant_discovery_endpoint:
812
+ "https://login.microsoftonline.com/organizations/v2.0/.well-known/openid-configuration",
813
+ "api-version": "1.1",
814
+ metadata: [
815
+ {
816
+ preferred_network: "login.microsoftonline.com",
817
+ preferred_cache: "login.windows.net",
818
+ aliases: [
819
+ "login.microsoftonline.com",
820
+ "login.windows.net",
821
+ "login.microsoft.com",
822
+ "sts.windows.net",
823
+ ],
824
+ },
825
+ {
826
+ preferred_network: "login.partner.microsoftonline.cn",
827
+ preferred_cache: "login.partner.microsoftonline.cn",
828
+ aliases: [
829
+ "login.partner.microsoftonline.cn",
830
+ "login.chinacloudapi.cn",
831
+ ],
832
+ },
833
+ {
834
+ preferred_network: "login.microsoftonline.de",
835
+ preferred_cache: "login.microsoftonline.de",
836
+ aliases: ["login.microsoftonline.de"],
837
+ },
838
+ {
839
+ preferred_network: "login.microsoftonline.us",
840
+ preferred_cache: "login.microsoftonline.us",
841
+ aliases: [
842
+ "login.microsoftonline.us",
843
+ "login.usgovcloudapi.net",
844
+ ],
845
+ },
846
+ {
847
+ preferred_network: "login-us.microsoftonline.com",
848
+ preferred_cache: "login-us.microsoftonline.com",
849
+ aliases: ["login-us.microsoftonline.com"],
850
+ },
851
+ ],
852
+ },
853
+ "https://login.chinacloudapi.cn/organizations/": {
854
+ tenant_discovery_endpoint:
855
+ "https://login.chinacloudapi.cn/organizations/v2.0/.well-known/openid-configuration",
856
+ "api-version": "1.1",
857
+ metadata: [
858
+ {
859
+ preferred_network: "login.microsoftonline.com",
860
+ preferred_cache: "login.windows.net",
861
+ aliases: [
862
+ "login.microsoftonline.com",
863
+ "login.windows.net",
864
+ "login.microsoft.com",
865
+ "sts.windows.net",
866
+ ],
867
+ },
868
+ {
869
+ preferred_network: "login.partner.microsoftonline.cn",
870
+ preferred_cache: "login.partner.microsoftonline.cn",
871
+ aliases: [
872
+ "login.partner.microsoftonline.cn",
873
+ "login.chinacloudapi.cn",
874
+ ],
875
+ },
876
+ {
877
+ preferred_network: "login.microsoftonline.de",
878
+ preferred_cache: "login.microsoftonline.de",
879
+ aliases: ["login.microsoftonline.de"],
880
+ },
881
+ {
882
+ preferred_network: "login.microsoftonline.us",
883
+ preferred_cache: "login.microsoftonline.us",
884
+ aliases: [
885
+ "login.microsoftonline.us",
886
+ "login.usgovcloudapi.net",
887
+ ],
888
+ },
889
+ {
890
+ preferred_network: "login-us.microsoftonline.com",
891
+ preferred_cache: "login-us.microsoftonline.com",
892
+ aliases: ["login-us.microsoftonline.com"],
893
+ },
894
+ ],
895
+ },
896
+ "https://login.microsoftonline.us/organizations/": {
897
+ tenant_discovery_endpoint:
898
+ "https://login.microsoftonline.us/organizations/v2.0/.well-known/openid-configuration",
899
+ "api-version": "1.1",
900
+ metadata: [
901
+ {
902
+ preferred_network: "login.microsoftonline.com",
903
+ preferred_cache: "login.windows.net",
904
+ aliases: [
905
+ "login.microsoftonline.com",
906
+ "login.windows.net",
907
+ "login.microsoft.com",
908
+ "sts.windows.net",
909
+ ],
910
+ },
911
+ {
912
+ preferred_network: "login.partner.microsoftonline.cn",
913
+ preferred_cache: "login.partner.microsoftonline.cn",
914
+ aliases: [
915
+ "login.partner.microsoftonline.cn",
916
+ "login.chinacloudapi.cn",
917
+ ],
918
+ },
919
+ {
920
+ preferred_network: "login.microsoftonline.de",
921
+ preferred_cache: "login.microsoftonline.de",
922
+ aliases: ["login.microsoftonline.de"],
923
+ },
924
+ {
925
+ preferred_network: "login.microsoftonline.us",
926
+ preferred_cache: "login.microsoftonline.us",
927
+ aliases: [
928
+ "login.microsoftonline.us",
929
+ "login.usgovcloudapi.net",
930
+ ],
931
+ },
932
+ {
933
+ preferred_network: "login-us.microsoftonline.com",
934
+ preferred_cache: "login-us.microsoftonline.com",
935
+ aliases: ["login-us.microsoftonline.com"],
936
+ },
937
+ ],
938
+ },
939
+ },
940
+ };
941
+
942
+ export const EndpointMetadata = rawMetdataJSON.endpointMetadata;
943
+ export const InstanceDiscoveryMetadata =
944
+ rawMetdataJSON.instanceDiscoveryMetadata;
945
+
946
+ export const InstanceDiscoveryMetadataAliases: Set<String> = new Set();
947
+ for (const key in InstanceDiscoveryMetadata) {
948
+ for (const metadata of InstanceDiscoveryMetadata[key].metadata) {
949
+ for (const alias of metadata.aliases) {
950
+ InstanceDiscoveryMetadataAliases.add(alias);
951
+ }
952
+ }
953
+ }