mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 06:31:17 +00:00
Yahoo OAuth setup
This commit is contained in:
parent
9cb50456dc
commit
0c385d4e1d
2 changed files with 7 additions and 4 deletions
|
@ -314,6 +314,8 @@ public class EmailService implements AutoCloseable {
|
||||||
properties.put("mail." + protocol + ".auth.mechanisms", "XOAUTH2");
|
properties.put("mail." + protocol + ".auth.mechanisms", "XOAUTH2");
|
||||||
|
|
||||||
if (auth == AUTH_TYPE_OAUTH) {
|
if (auth == AUTH_TYPE_OAUTH) {
|
||||||
|
if ("imap.mail.yahoo.com".equals(host))
|
||||||
|
properties.put("mail." + protocol + ".yahoo.guid", "FAIRMAIL_V1");
|
||||||
AuthState authState = OAuthRefresh(context, provider, password);
|
AuthState authState = OAuthRefresh(context, provider, password);
|
||||||
connect(host, port, auth, user, authState.getAccessToken(), factory);
|
connect(host, port, auth, user, authState.getAccessToken(), factory);
|
||||||
return authState.jsonSerializeString();
|
return authState.jsonSerializeString();
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
</provider>
|
</provider>
|
||||||
<!-- no IMAP IDLE -->
|
<!-- no IMAP IDLE -->
|
||||||
<provider
|
<provider
|
||||||
name="Yahoo!"
|
name="Yahoo"
|
||||||
appPassword="true"
|
appPassword="true"
|
||||||
domain="yahoo\\..*"
|
domain="yahoo\\..*"
|
||||||
id="yahoo"
|
id="yahoo"
|
||||||
|
@ -98,10 +98,11 @@
|
||||||
port="465"
|
port="465"
|
||||||
starttls="false" />
|
starttls="false" />
|
||||||
<oauth
|
<oauth
|
||||||
|
askAccount="true"
|
||||||
authorizationEndpoint="https://api.login.yahoo.com/oauth2/request_auth"
|
authorizationEndpoint="https://api.login.yahoo.com/oauth2/request_auth"
|
||||||
clientId="dj0yJmk9MUFMR2dpdnllTHdZJmQ9WVdrOWRraFJNVGwwTkcwbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWFl"
|
clientId="dj0yJmk9SWtNZm1vUFc2THJDJnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWRi"
|
||||||
clientSecret="054ceb7cc001a322126dd51b3399785604543f83"
|
clientSecret="261a91fbbdb2852c4e80fdd3d1db4a8ebfa4c42b"
|
||||||
enabled="false"
|
enabled="true"
|
||||||
pcke="true"
|
pcke="true"
|
||||||
redirectUri="https://oauth.faircode.eu/"
|
redirectUri="https://oauth.faircode.eu/"
|
||||||
scopes="mail-w"
|
scopes="mail-w"
|
||||||
|
|
Loading…
Reference in a new issue