Skip to content

Commit af386e9

Browse files
committed
O365: revert authenticator scope change
git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3720 3d1905a2-6b24-0410-a738-b14d5a86fcbd
1 parent 8db6d5d commit af386e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java/davmail/exchange/auth/O365Authenticator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public static String buildAuthorizeUrl(String tenantId, String clientId, String
9090
//.addParameter("scope", "openid profile offline_access Mail.ReadWrite Calendars.ReadWrite MailboxSettings.Read Mail.ReadWrite.Shared Contacts.ReadWrite Mail.Send");
9191
// return scopes with 00000003-0000-0000-c000-000000000000 scopes
9292
//.addParameter("scope", "openid profile offline_access .default");
93-
.addParameter("scope", "openid profile offline_access "+Settings.getGraphUrl()+"/.default Mail.ReadWrite.Shared");
93+
.addParameter("scope", "openid profile offline_access "+Settings.getGraphUrl()+"/.default");
9494
//.addParameter("scope", "openid " + Settings.getOutlookUrl() + "/EWS.AccessAsUser.All AuditLog.Read.All Calendar.ReadWrite Calendars.Read.Shared Calendars.ReadWrite Contacts.ReadWrite DataLossPreventionPolicy.Evaluate Directory.AccessAsUser.All Directory.Read.All Files.Read Files.Read.All Files.ReadWrite.All Group.Read.All Group.ReadWrite.All InformationProtectionPolicy.Read Mail.ReadWrite Mail.Send Notes.Create Organization.Read.All People.Read People.Read.All Printer.Read.All PrintJob.ReadWriteBasic SensitiveInfoType.Detect SensitiveInfoType.Read.All SensitivityLabel.Evaluate Tasks.ReadWrite TeamMember.ReadWrite.All TeamsTab.ReadWriteForChat User.Read.All User.ReadBasic.All User.ReadWrite Users.Read");
9595
} else {
9696
// Outlook desktop relies on classic authorize endpoint

0 commit comments

Comments
 (0)