!idata->conn->ssf)
return IMAP_AUTH_UNAVAIL;
+ /* If they did not explicitly request or configure oauth then fail quietly */
+ if (!(method || (ImapOauthRefreshCmd && *ImapOauthRefreshCmd)))
+ return IMAP_AUTH_UNAVAIL;
+
mutt_message _("Authenticating (OAUTHBEARER)...");
/* We get the access token from the imap_oauth_refresh_command */
size_t auth_cmd_len;
int ret, len;
+ /* If they did not explicitly request or configure oauth then fail quietly */
+ if (!(method || (PopOauthRefreshCmd && *PopOauthRefreshCmd)))
+ return POP_A_UNAVAIL;
+
mutt_message _("Authenticating (OAUTHBEARER)...");
oauthbearer = mutt_account_getoauthbearer (&pop_data->conn->account);
while (authenticator->authenticate)
{
- ret = authenticator->authenticate (pop_data, authenticator->method);
+ ret = authenticator->authenticate (pop_data, NULL);
if (ret == POP_A_SOCKET)
switch (pop_connect (pop_data))
{
case 0:
{
- ret = authenticator->authenticate (pop_data, authenticator->method);
+ ret = authenticator->authenticate (pop_data, NULL);
break;
}
case -2: