Skip to content

Commit b7bc8e4

Browse files
author
Juan Pablo Santos
committed
Correct oauth1 constructor
1 parent 68b7bb2 commit b7bc8e4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Network/Wreq.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ module Network.Wreq
8787
, AWSAuthVersion(..)
8888
, Lens.auth
8989
, basicAuth
90+
, oauth1Auth
9091
, oauth2Bearer
9192
, oauth2Token
9293
, awsAuth
@@ -460,6 +461,16 @@ basicAuth :: S.ByteString -- ^ Username.
460461
-> Auth
461462
basicAuth = BasicAuth
462463

464+
-- | OAuth1 authentication. This consists of a consumer token,
465+
-- a consumer secret, a token and a token secret
466+
oauth1Auth :: S.ByteString -- ^ Consumer token
467+
-> S.ByteString -- ^ Consumer secret
468+
-> S.ByteString -- ^ OAuth token
469+
-> S.ByteString -- ^ OAuth token secret
470+
-> Auth
471+
oauth1Auth = OAuth1
472+
473+
463474
-- | An OAuth2 bearer token. This is treated by many services as the
464475
-- equivalent of a username and password.
465476
--

0 commit comments

Comments
 (0)