From ca63496d69386d4f44d876db4727fe258ad8927e Mon Sep 17 00:00:00 2001 From: William Le Date: Tue, 26 Apr 2022 19:46:00 +0800 Subject: [PATCH] feat(placeos/calendar): support MS Graph API scopes, for Delgated permissions --- drivers/place/calendar.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/place/calendar.cr b/drivers/place/calendar.cr index eba40dc3656..6974376f5c0 100644 --- a/drivers/place/calendar.cr +++ b/drivers/place/calendar.cr @@ -26,7 +26,8 @@ class Place::Calendar < PlaceOS::Driver tenant: "", client_id: "", client_secret: "", - conference_type: nil, # This can be set to "teamsForBusiness" to add a Teams link to EVERY created Event + scope: "calendars.readwrite calendars.readwrite.shared group.read.all user.read.all", + conference_type: nil, # This can be set to "teamsForBusiness" to automatically add a Teams link to EVERY created Event }, rate_limit: 5, @@ -50,6 +51,7 @@ class Place::Calendar < PlaceOS::Driver tenant: String, client_id: String, client_secret: String, + scope: String, conference_type: String | Nil, )