Skip to content

Commit c186ba0

Browse files
redirect uri must be localhost
1 parent 1d8fbf3 commit c186ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/time-series-insights/time-series-insights-manage-reference-data-csharp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Complete the following steps before you compile and run the sample code:
3030
| --- | --- |
3131
| uuid | String |
3232

33-
1. Configure your Azure Time Series Insights environment for Azure Active Directory as described in [Authentication and authorization](time-series-insights-authentication-and-authorization.md).
33+
1. Configure your Azure Time Series Insights environment for Azure Active Directory as described in [Authentication and authorization](time-series-insights-authentication-and-authorization.md). Use `http://localhost:8080/` as the **Redirect URI**.
3434

3535
1. Install the required project dependencies.
3636

@@ -110,7 +110,7 @@ namespace CsharpTsiMsalGaSample
110110
// Azure Active Directory application configuration
111111
internal static string AadClientApplicationId = "#PLACEHOLDER#";
112112
internal static string[] AadScopes = new string[] { "https://api.timeseries.azure.com//user_impersonation" };
113-
internal static string AadRedirectUri = "#PLACEHOLDER#";
113+
internal static string AadRedirectUri = "http://localhost:8080/";
114114
internal static string AadAuthenticationAuthority = "https://login.microsoftonline.com/microsoft.onmicrosoft.com/oauth2/authorize?resource=https://api.timeseries.azure.com/";
115115

116116
private static async Task<string> AcquireAccessTokenAsync()

0 commit comments

Comments
 (0)