mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-03 19:34:15 +01:00
Split Outlook and Office365
"OAuth2 support for IMAP, POP, SMTP protocols is not supported for Outlook.com users"
This commit is contained in:
@@ -282,7 +282,7 @@ public class FragmentOAuth extends FragmentBase {
|
||||
if ("gmail".equals(provider.id))
|
||||
authRequestBuilder.setPrompt("consent");
|
||||
|
||||
if ("outlook".equals(provider.id))
|
||||
if ("office365".equals(provider.id))
|
||||
authRequestBuilder.setPrompt("select_account");
|
||||
|
||||
AuthorizationRequest authRequest = authRequestBuilder.build();
|
||||
@@ -383,7 +383,7 @@ public class FragmentOAuth extends FragmentBase {
|
||||
if (askAccount) {
|
||||
primaryEmail = address;
|
||||
identities.add(new Pair<>(address, personal));
|
||||
} else if ("outlook".equals(id)) {
|
||||
} else if ("office365".equals(id)) {
|
||||
// https://docs.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0&tabs=http#http-request
|
||||
URL url = new URL("https://graph.microsoft.com/v1.0/me?$select=displayName,otherMails");
|
||||
Log.i("Fetching " + url);
|
||||
|
||||
Reference in New Issue
Block a user