OAuth/PCKE is used by default

This commit is contained in:
M66B
2022-11-09 16:16:40 +01:00
parent 8c6714189d
commit a6f39a1fac
3 changed files with 0 additions and 7 deletions

View File

@@ -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;

View File

@@ -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);