Debug OAuth

pull/216/head
M66B 1 year ago
parent 51e8782160
commit 8699cb680f

@ -305,8 +305,11 @@ public class EmailProvider implements Parcelable {
provider.pop.port = getAttributeIntValue(xml, "port", 0); provider.pop.port = getAttributeIntValue(xml, "port", 0);
provider.pop.starttls = getAttributeBooleanValue(xml, "starttls", false); provider.pop.starttls = getAttributeBooleanValue(xml, "starttls", false);
} else if ("oauth".equals(name)) { } 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 = new OAuth();
provider.oauth.enabled = getAttributeBooleanValue(xml, "enabled", false); provider.oauth.enabled = enabled;
provider.oauth.askAccount = getAttributeBooleanValue(xml, "askAccount", false); provider.oauth.askAccount = getAttributeBooleanValue(xml, "askAccount", false);
provider.oauth.clientId = xml.getAttributeValue(null, "clientId"); provider.oauth.clientId = xml.getAttributeValue(null, "clientId");
provider.oauth.clientSecret = xml.getAttributeValue(null, "clientSecret"); provider.oauth.clientSecret = xml.getAttributeValue(null, "clientSecret");

@ -467,7 +467,7 @@
askAccount="true" askAccount="true"
authorizationEndpoint="https://api.fastmail.com/oauth/authorize" authorizationEndpoint="https://api.fastmail.com/oauth/authorize"
clientId="353941ae" clientId="353941ae"
enabled="false" enabled="debug"
privacy="https://www.fastmail.com/features/privacy/" privacy="https://www.fastmail.com/features/privacy/"
redirectUri="http://localhost:49491/" 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" scopes="https://www.fastmail.com/dev/protocol-imap,https://www.fastmail.com/dev/protocol-smtp,https://www.fastmail.com/dev/protocol-pop"

Loading…
Cancel
Save