File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ module Network.Wreq
87
87
, AWSAuthVersion (.. )
88
88
, Lens. auth
89
89
, basicAuth
90
+ , oauth1Auth
90
91
, oauth2Bearer
91
92
, oauth2Token
92
93
, awsAuth
@@ -460,6 +461,16 @@ basicAuth :: S.ByteString -- ^ Username.
460
461
-> Auth
461
462
basicAuth = BasicAuth
462
463
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
+
463
474
-- | An OAuth2 bearer token. This is treated by many services as the
464
475
-- equivalent of a username and password.
465
476
--
You can’t perform that action at this time.
0 commit comments