Merge pull request #25 from wagonhq/fix-auth-bug-with-bigquery-service-accounts
Hack to fix a bug that caused BigQuery connections to fail.
commite64a993a7bae5b66c2dcf1e14303e9533baeef82
authorBrendan Hay <brendanhay@users.noreply.github.com>
dateSat 21 May 2016, 08:13 (10 years ago)
parentb5d64b4d801e77
gogol/src/Network/Google/Auth.hs+1−1
@@ -183,6 +183,6 @@ authorize rq s l m = bearer <$> getToken s l m
183183 bearer t = rq
184184 { Client.requestHeaders =
185185 ( hAuthorization
186− , toHeader (_tokenAccess t)
186+ , "Bearer " <> toHeader (_tokenAccess t)
187187 ) : Client.requestHeaders rq
188188 }
gogol/src/Network/Google/Internal/Auth.hs+1−1
@@ -178,7 +178,7 @@ newtype OAuthCode = OAuthCode Text
178178
179179instance ToHttpApiData OAuthCode where
180180 toQueryParam (OAuthCode c) = c
181− toHeader (OAuthCode c) = "Bearer " <> Text.encodeUtf8 c
181+ toHeader (OAuthCode c) = Text.encodeUtf8 c
182182
183183-- | An error thrown when attempting to read AuthN/AuthZ information.
184184data AuthError