From 1f82df91468a1e0634fae5119677c4b5f91d473d Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 12 Nov 2015 19:45:24 +0000 Subject: sasl: Re-introduced XOAUTH2 in the default enabled authentication mechanism Following the fix in commit d6d58dd558 it is necessary to re-introduce XOAUTH2 in the default enabled authentication mechanism, which was removed in commit 7b2012f262, otherwise users will have to specify AUTH=XOAUTH2 in the URL. Note: OAuth 2.0 will only be used when the bearer is specified. --- lib/curl_sasl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/curl_sasl.c') diff --git a/lib/curl_sasl.c b/lib/curl_sasl.c index dd2b6bef3..ad6b6090f 100644 --- a/lib/curl_sasl.c +++ b/lib/curl_sasl.c @@ -1455,8 +1455,7 @@ CURLcode Curl_sasl_start(struct SASL *sasl, struct connectdata *conn, } else #endif - if((enabledmechs & SASL_MECH_XOAUTH2) && ((conn->oauth_bearer) || - (!conn->passwd))) { + if((enabledmechs & SASL_MECH_XOAUTH2) && conn->oauth_bearer) { mech = SASL_MECH_STRING_XOAUTH2; state1 = SASL_OAUTH2; sasl->authused = SASL_MECH_XOAUTH2; -- cgit v1.2.3