mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 05:15:13 +02:00
Debug OAuth
This commit is contained in:
@@ -305,8 +305,11 @@ public class EmailProvider implements Parcelable {
|
||||
provider.pop.port = getAttributeIntValue(xml, "port", 0);
|
||||
provider.pop.starttls = getAttributeBooleanValue(xml, "starttls", false);
|
||||
} else if ("oauth".equals(name)) {
|
||||
String val = xml.getAttributeValue(null, "enabled");
|
||||
boolean enabled = ("debug".equals(val) ? BuildConfig.DEBUG : Boolean.parseBoolean(val));
|
||||
|
||||
provider.oauth = new OAuth();
|
||||
provider.oauth.enabled = getAttributeBooleanValue(xml, "enabled", false);
|
||||
provider.oauth.enabled = enabled;
|
||||
provider.oauth.askAccount = getAttributeBooleanValue(xml, "askAccount", false);
|
||||
provider.oauth.clientId = xml.getAttributeValue(null, "clientId");
|
||||
provider.oauth.clientSecret = xml.getAttributeValue(null, "clientSecret");
|
||||
|
||||
@@ -467,7 +467,7 @@
|
||||
askAccount="true"
|
||||
authorizationEndpoint="https://api.fastmail.com/oauth/authorize"
|
||||
clientId="353941ae"
|
||||
enabled="false"
|
||||
enabled="debug"
|
||||
privacy="https://www.fastmail.com/features/privacy/"
|
||||
redirectUri="http://localhost:49491/"
|
||||
scopes="https://www.fastmail.com/dev/protocol-imap,https://www.fastmail.com/dev/protocol-smtp,https://www.fastmail.com/dev/protocol-pop"
|
||||
|
||||
Reference in New Issue
Block a user