mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 09:03:56 +02:00
Replaced MSAL by OAuth
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user