Replaced MSAL by OAuth

This commit is contained in:
M66B
2019-12-20 13:54:05 +01:00
parent f496a0fa6c
commit 1dc56ae41c
6 changed files with 247 additions and 250 deletions

View File

@@ -132,6 +132,7 @@ public class EmailProvider {
provider.smtp.starttls = xml.getAttributeBooleanValue(null, "starttls", false);
} else if ("oauth".equals(name)) {
provider.oauth = new OAuth();
provider.oauth.enabled = xml.getAttributeBooleanValue(null, "enabled", false);
provider.oauth.clientId = xml.getAttributeValue(null, "clientId");
provider.oauth.clientSecret = xml.getAttributeValue(null, "clientSecret");
provider.oauth.scopes = xml.getAttributeValue(null, "scopes").split(",");
@@ -661,6 +662,7 @@ public class EmailProvider {
}
public static class OAuth {
boolean enabled;
String clientId;
String clientSecret;
String[] scopes;