Skip to content

Commit

Permalink
revert: "fix: Request permissions to allow events to be created on sh…
Browse files Browse the repository at this point in the history
…ared Office365/Outlook calendars (#17760)" (#18111)

This reverts commit 1680cba.
  • Loading branch information
keithwillcode authored Dec 11, 2024
1 parent 7d2523e commit 0eb72d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions packages/app-store/office365calendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@ import { WEBAPP_URL_FOR_OAUTH } from "@calcom/lib/constants";
import getAppKeysFromSlug from "../../_utils/getAppKeysFromSlug";
import { encodeOAuthState } from "../../_utils/oauth/encodeOAuthState";

const scopes = [
"User.Read",
"Calendars.Read",
"Calendars.ReadWrite",
"Calendars.ReadWrite.Shared",
"offline_access",
];
const scopes = ["User.Read", "Calendars.Read", "Calendars.ReadWrite", "offline_access"];

let client_id = "";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default class Office365CalendarService implements Calendar {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({
scope: "User.Read Calendars.Read Calendars.ReadWrite Calendars.ReadWrite.Shared",
scope: "User.Read Calendars.Read Calendars.ReadWrite",
client_id,
refresh_token: refreshToken,
grant_type: "refresh_token",
Expand Down

0 comments on commit 0eb72d6

Please sign in to comment.