From 99a4944d19bbe637618323c1e3a3e48fb528411d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Guessant?= Date: Sat, 6 Jan 2024 16:03:36 +0000 Subject: [PATCH] O365: prepare GCC-High/DoD endpoints support, fix regression git-svn-id: https://svn.code.sf.net/p/davmail/code/trunk@3512 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/auth/O365Token.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/auth/O365Token.java b/src/java/davmail/exchange/auth/O365Token.java index 196c8c2c..a68ccf53 100644 --- a/src/java/davmail/exchange/auth/O365Token.java +++ b/src/java/davmail/exchange/auth/O365Token.java @@ -63,7 +63,7 @@ public O365Token(String tenantId, String clientId, String redirectUri, String pa public O365Token(String tenantId, String clientId, String redirectUri, String code, String password) throws IOException { this.clientId = clientId; this.redirectUri = redirectUri; - this.tokenUrl = Settings.getO365Url() + tenantId + "/oauth2/token"; + this.tokenUrl = Settings.getO365LoginUrl() + tenantId + "/oauth2/token"; this.password = password; ArrayList parameters = new ArrayList<>();