Skip to content

Commit c4f9528

Browse files
Merge pull request #5145 from MicrosoftDocs/alvinashcraft/main-maui-graph-api-url-fix
Fix localhost redirecturi
2 parents c708818 + db709d6 commit c4f9528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hub/apps/windows-dotnet-maui/tutorial-graph-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Under **Manage**, select **Authentication**.
8282

8383
Select **Add a platform > Mobile and desktop applications**.
8484

85-
In the **Redirect URIs** section, select `https://login.microsoftonline.com/common/oauth2/nativeclient` and in **Custom redirect URIs** add `https://localhost`.
85+
In the **Redirect URIs** section, select `https://login.microsoftonline.com/common/oauth2/nativeclient` and in **Custom redirect URIs** add `http://localhost`.
8686

8787
Select **Configure**.
8888

@@ -143,7 +143,7 @@ private void Initialize()
143143
TenantId = TenantId,
144144
ClientId = ClientId,
145145
AuthorityHost = AzureAuthorityHosts.AzurePublicCloud,
146-
RedirectUri = new Uri("https://localhost"),
146+
RedirectUri = new Uri("http://localhost"),
147147
};
148148

149149
InteractiveBrowserCredential interactiveCredential = new(options);

0 commit comments

Comments
 (0)