mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-22 22:21:18 +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");
|
||||
|
||||
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);
|
||||
connect(host, port, auth, user, authState.getAccessToken(), factory);
|
||||
return authState.jsonSerializeString();
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
</provider>
|
||||
<!-- no IMAP IDLE -->
|
||||
<provider
|
||||
name="Yahoo!"
|
||||
name="Yahoo"
|
||||
appPassword="true"
|
||||
domain="yahoo\\..*"
|
||||
id="yahoo"
|
||||
|
@ -98,10 +98,11 @@
|
|||
port="465"
|
||||
starttls="false" />
|
||||
<oauth
|
||||
askAccount="true"
|
||||
authorizationEndpoint="https://api.login.yahoo.com/oauth2/request_auth"
|
||||
clientId="dj0yJmk9MUFMR2dpdnllTHdZJmQ9WVdrOWRraFJNVGwwTkcwbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWFl"
|
||||
clientSecret="054ceb7cc001a322126dd51b3399785604543f83"
|
||||
enabled="false"
|
||||
clientId="dj0yJmk9SWtNZm1vUFc2THJDJnM9Y29uc3VtZXJzZWNyZXQmc3Y9MCZ4PWRi"
|
||||
clientSecret="261a91fbbdb2852c4e80fdd3d1db4a8ebfa4c42b"
|
||||
enabled="true"
|
||||
pcke="true"
|
||||
redirectUri="https://oauth.faircode.eu/"
|
||||
scopes="mail-w"
|
||||
|
|
Loading…
Reference in a new issue