Skip to content

Commit 60fd2e0

Browse files
committed
Use dynamic GraphBaseUrl for scope URL construction
Replaced hardcoded "https://graph.microsoft.com/" with graph.GraphBaseUrl when building Microsoft Graph scope URLs. This improves flexibility and allows support for different Graph API base URLs.
1 parent 6c117db commit 60fd2e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BatchPermissionsOrchestrator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ internal static class BatchPermissionsOrchestrator
185185
logger.LogWarning("Re-run 'a365 setup admin' to retry once propagation is complete.");
186186
var graphScopes = specs
187187
.Where(s => s.ResourceAppId == AuthenticationConstants.MicrosoftGraphResourceAppId)
188-
.SelectMany(s => s.Scopes.Select(scope => $"https://graph.microsoft.com/{scope}"))
188+
.SelectMany(s => s.Scopes.Select(scope => $"{graph.GraphBaseUrl}/{scope}"))
189189
.Distinct(StringComparer.OrdinalIgnoreCase)
190190
.ToList();
191191
var retryConsentUrl = graphScopes.Count > 0

0 commit comments

Comments
 (0)