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
40
40
41
41
/// <summary>
42
42
/// 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.
44
45
/// </summary>
45
- const string scopeRequiredByAPI = "user_impersonation" ;
46
+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
46
47
47
48
// GET: api/values
48
49
[ HttpGet ]
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ public TodoListController(ITokenAcquisition tokenAcquisition)
57
57
58
58
/// <summary>
59
59
/// 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.
61
62
/// </summary>
62
- const string scopeRequiredByAPI = "user_impersonation" ;
63
+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
63
64
64
65
// GET: api/values
65
66
[ HttpGet ]
Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ public TodoListController(ITokenAcquisition tokenAcquisition)
57
57
58
58
/// <summary>
59
59
/// 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.
61
62
/// </summary>
62
- const string scopeRequiredByAPI = "user_impersonation" ;
63
+ static string [ ] scopeRequiredByAPI = new string [ ] { "user_impersonation" , "access_as_user" } ;
63
64
64
65
// GET: api/values
65
66
[ HttpGet ]
You can’t perform that action at this time.
0 commit comments