From 16c89a6925eb94d9840d1bcb089d289951123059 Mon Sep 17 00:00:00 2001 From: Waldek Mastykarz Date: Wed, 12 Jun 2024 12:20:29 +0200 Subject: [PATCH] Switches to production minimal Graph permissions API. Closes #264 (#777) --- .../RequestLogs/MinimalPermissionsGuidancePlugin.cs | 2 +- dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dev-proxy-plugins/RequestLogs/MinimalPermissionsGuidancePlugin.cs b/dev-proxy-plugins/RequestLogs/MinimalPermissionsGuidancePlugin.cs index 881ed895..636ef6e8 100644 --- a/dev-proxy-plugins/RequestLogs/MinimalPermissionsGuidancePlugin.cs +++ b/dev-proxy-plugins/RequestLogs/MinimalPermissionsGuidancePlugin.cs @@ -275,7 +275,7 @@ private async Task EvaluateMinimalScopes(IEnumerable<(string method, string url) try { - var url = $"https://graphexplorerapi-staging.azurewebsites.net/permissions?scopeType={GetScopeTypeString(scopeType)}"; + var url = $"https://graphexplorerapi.azurewebsites.net/permissions?scopeType={GetScopeTypeString(scopeType)}"; using var client = new HttpClient(); var stringPayload = JsonSerializer.Serialize(payload, ProxyUtils.JsonSerializerOptions); Logger.LogDebug(string.Format("Calling {0} with payload{1}{2}", url, Environment.NewLine, stringPayload)); diff --git a/dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs b/dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs index f331d43f..26dc086e 100644 --- a/dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs +++ b/dev-proxy-plugins/RequestLogs/MinimalPermissionsPlugin.cs @@ -152,7 +152,7 @@ private string GetScopeTypeString() try { - var url = $"https://graphexplorerapi-staging.azurewebsites.net/permissions?scopeType={GetScopeTypeString()}"; + var url = $"https://graphexplorerapi.azurewebsites.net/permissions?scopeType={GetScopeTypeString()}"; using var client = new HttpClient(); var stringPayload = JsonSerializer.Serialize(payload, ProxyUtils.JsonSerializerOptions); Logger.LogDebug("Calling {url} with payload\r\n{stringPayload}", url, stringPayload);