File tree Expand file tree Collapse file tree 3 files changed +9
-6
lines changed
1. Desktop app calls Web API/TodoListService/Controllers
2. Web API now calls Microsoft Graph/TodoListService/Controllers
3.-Web-api-call-Microsoft-graph-for-personal-accounts/TodoListService/Controllers Expand file tree Collapse file tree 3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,10 @@ public class TodoListController : Controller
4040
4141 /// <summary>
4242 /// The Web API will only accept tokens 1) for users, 2) having the user_impersonation scope for
43- /// this API
43+ /// this API (if you created the app using the App creation script) or 'access_as_user' if you created
44+ /// it following the README.md.
4445 /// </summary>
45- const string scopeRequiredByAPI = "user_impersonation" ;
46+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
4647
4748 // GET: api/values
4849 [ HttpGet ]
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ public TodoListController(ITokenAcquisition tokenAcquisition)
5757
5858 /// <summary>
5959 /// The Web API will only accept tokens 1) for users, 2) having the user_impersonation scope for
60- /// this API
60+ /// this API (if you created the app using the App creation script) or 'access_as_user' if you created
61+ /// it following the README.md.
6162 /// </summary>
62- const string scopeRequiredByAPI = "user_impersonation" ;
63+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
6364
6465 // GET: api/values
6566 [ HttpGet ]
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ public TodoListController(ITokenAcquisition tokenAcquisition)
5757
5858 /// <summary>
5959 /// The Web API will only accept tokens 1) for users, 2) having the user_impersonation scope for
60- /// this API
60+ /// this API (if you created the app using the App creation script) or 'access_as_user' if you created
61+ /// it following the README.md.
6162 /// </summary>
62- const string scopeRequiredByAPI = "user_impersonation" ;
63+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
6364
6465 // GET: api/values
6566 [ HttpGet ]
You can’t perform that action at this time.
0 commit comments