mirror of https://github.com/M66B/FairEmail.git
Debug: OAuth Outlook/Office 365 (alt)
This commit is contained in:
parent
6df0d39647
commit
67ade5cc9c
|
@ -227,7 +227,12 @@ public class EmailProvider implements Parcelable {
|
||||||
provider.description = xml.getAttributeValue(null, "description");
|
provider.description = xml.getAttributeValue(null, "description");
|
||||||
if (provider.description == null)
|
if (provider.description == null)
|
||||||
provider.description = provider.name;
|
provider.description = provider.name;
|
||||||
provider.enabled = getAttributeBooleanValue(xml, "enabled", true);
|
|
||||||
|
String enabled = xml.getAttributeValue(null, "enabled");
|
||||||
|
if ("debug".equals(enabled))
|
||||||
|
provider.enabled = BuildConfig.DEBUG;
|
||||||
|
else
|
||||||
|
provider.enabled = getAttributeBooleanValue(xml, "enabled", true);
|
||||||
|
|
||||||
String domain = xml.getAttributeValue(null, "domain");
|
String domain = xml.getAttributeValue(null, "domain");
|
||||||
if (domain != null)
|
if (domain != null)
|
||||||
|
|
|
@ -187,8 +187,8 @@
|
||||||
</provider>
|
</provider>
|
||||||
<provider
|
<provider
|
||||||
name="Outlook"
|
name="Outlook"
|
||||||
description="Outlook"
|
description="Outlook/Office 365 (alt)"
|
||||||
enabled="false"
|
enabled="debug"
|
||||||
id="outlook"
|
id="outlook"
|
||||||
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
link="https://github.com/M66B/FairEmail/blob/master/FAQ.md#user-content-faq14"
|
||||||
maxtls="1.2"
|
maxtls="1.2"
|
||||||
|
@ -204,11 +204,10 @@
|
||||||
host="smtp.office365.com"
|
host="smtp.office365.com"
|
||||||
port="587"
|
port="587"
|
||||||
starttls="true" />
|
starttls="true" />
|
||||||
<!--pop
|
<pop
|
||||||
host="outlook.office365.com"
|
host="outlook.office365.com"
|
||||||
port="995"
|
port="995"
|
||||||
starttls="false" /-->
|
starttls="false" />
|
||||||
<!-- https://outlook.office.com/POP.AccessAsUser.All -->
|
|
||||||
<oauth
|
<oauth
|
||||||
askAccount="true"
|
askAccount="true"
|
||||||
authorizationEndpoint="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize"
|
authorizationEndpoint="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/authorize"
|
||||||
|
@ -217,7 +216,7 @@
|
||||||
privacy="https://privacy.microsoft.com/privacystatement"
|
privacy="https://privacy.microsoft.com/privacystatement"
|
||||||
prompt="login"
|
prompt="login"
|
||||||
redirectUri="msauth.eu.faircode.email://auth"
|
redirectUri="msauth.eu.faircode.email://auth"
|
||||||
scopes="openid,email,offline_access,https://outlook.office.com/IMAP.AccessAsUser.All,https://outlook.office.com/SMTP.Send"
|
scopes="profile,openid,email,offline_access,https://outlook.office.com/IMAP.AccessAsUser.All,https://outlook.office.com/SMTP.Send,https://outlook.office.com/POP.AccessAsUser.All"
|
||||||
tokenEndpoint="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token"
|
tokenEndpoint="https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token"
|
||||||
tokenScopes="true" />
|
tokenScopes="true" />
|
||||||
</provider>
|
</provider>
|
||||||
|
|
Loading…
Reference in New Issue