This repository was archived by the owner on Nov 14, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ public partial class MainWindow : Window
3333 // The Client ID is used by the application to uniquely identify itself to Azure AD.
3434 // The Tenant is the name of the Azure AD tenant in which this application is registered.
3535 // The AAD Instance is the instance of Azure, for example public Azure or Azure China.
36+ // The Redirect URI is the URI where Azure AD will return OAuth responses.
3637 // The Authority is the sign-in URL of the tenant.
3738 //
3839 const string aadInstance = "https://login.windows.net/{0}" ;
@@ -50,7 +51,7 @@ public partial class MainWindow : Window
5051 const string todoListBaseAddress = "https://localhost:44321" ;
5152
5253 private HttpClient httpClient = new HttpClient ( ) ;
53- private AuthenticationContext authContext = new AuthenticationContext ( authority ) ;
54+ private AuthenticationContext authContext = null ;
5455
5556 public MainWindow ( )
5657 {
@@ -125,7 +126,7 @@ private async void GetTodoList()
125126 // Once the token has been returned by ADAL, add it to the http authorization header, before making the call to access the To Do list service.
126127 httpClient . DefaultRequestHeaders . Authorization = new AuthenticationHeaderValue ( "Bearer" , result . AccessToken ) ;
127128
128- // Call the To Do list web api
129+ // Call the To Do list service.
129130 HttpResponseMessage response = await httpClient . GetAsync ( todoListBaseAddress + "/api/todolist" ) ;
130131
131132 if ( response . IsSuccessStatusCode )
You can’t perform that action at this time.
0 commit comments