mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
OAuth/PCKE is used by default
This commit is contained in:
@@ -281,7 +281,6 @@ public class EmailProvider implements Parcelable {
|
||||
provider.oauth.askAccount = getAttributeBooleanValue(xml, "askAccount", false);
|
||||
provider.oauth.clientId = xml.getAttributeValue(null, "clientId");
|
||||
provider.oauth.clientSecret = xml.getAttributeValue(null, "clientSecret");
|
||||
provider.oauth.pcke = getAttributeBooleanValue(xml, "pcke", false);
|
||||
provider.oauth.scopes = xml.getAttributeValue(null, "scopes").split(",");
|
||||
provider.oauth.authorizationEndpoint = xml.getAttributeValue(null, "authorizationEndpoint");
|
||||
provider.oauth.tokenEndpoint = xml.getAttributeValue(null, "tokenEndpoint");
|
||||
@@ -1306,7 +1305,6 @@ public class EmailProvider implements Parcelable {
|
||||
boolean askAccount;
|
||||
String clientId;
|
||||
String clientSecret;
|
||||
boolean pcke;
|
||||
String[] scopes;
|
||||
String authorizationEndpoint;
|
||||
String tokenEndpoint;
|
||||
|
||||
@@ -460,9 +460,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
authRequestBuilder.setLoginHint(address);
|
||||
}
|
||||
|
||||
if (provider.oauth.pcke)
|
||||
authRequestBuilder.setCodeVerifier(CodeVerifierUtil.generateRandomCodeVerifier());
|
||||
|
||||
if (!TextUtils.isEmpty(provider.oauth.prompt))
|
||||
authRequestBuilder.setPrompt(provider.oauth.prompt);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user