gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 25/153: auth: pick Bearer authentication whenever a


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 25/153: auth: pick Bearer authentication whenever a token is available
Date: Tue, 11 Sep 2018 12:51:36 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 6f5ef24f068a86d0f61ce39f674462128c1743d1
Author: Johannes Schindelin <address@hidden>
AuthorDate: Fri Jul 20 18:17:43 2018 +0200

    auth: pick Bearer authentication whenever a token is available
    
    So far, the code tries to pick an authentication method only if
    user/password credentials are available, which is not the case for
    Bearer authentictation...
    
    Signed-off-by: Johannes Schindelin <address@hidden>
    Closes #2754
---
 lib/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/http.c b/lib/http.c
index 34565590f..bc1f85850 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -520,7 +520,7 @@ CURLcode Curl_http_auth_act(struct connectdata *conn)
   if(data->state.authproblem)
     return data->set.http_fail_on_error?CURLE_HTTP_RETURNED_ERROR:CURLE_OK;
 
-  if(conn->bits.user_passwd &&
+  if((conn->bits.user_passwd || conn->oauth_bearer) &&
      ((data->req.httpcode == 401) ||
       (conn->bits.authneg && data->req.httpcode < 300))) {
     pickhost = pickoneauth(&data->state.authhost, authmask);

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]