Beispiel #1
0
 /**
  * Update query and header parameters based on authentication settings.
  *
  * @param authNames The authentications to apply
  * @param queryParams List of query parameters
  * @param headerParams Map of header parameters
  * @param cookieParams Map of cookie parameters
  * @param method HTTP method (e.g. POST)
  * @param uri HTTP URI
  */
 protected void UpdateParamsForAuth(string[] authNames, List <Pair> queryParams, Dictionary <string, string> headerParams,
                                    Dictionary <string, string> cookieParams, string payload, string method, Uri uri)
 {
     foreach (string authName in authNames)
     {
         IAuthentication auth = authentications[authName];
         if (auth == null)
         {
             continue;
         }
         auth.ApplyToParams(queryParams, headerParams, cookieParams, payload, method, uri);
     }
 }