OAuthSwiftAlamofire icon indicating copy to clipboard operation
OAuthSwiftAlamofire copied to clipboard

Question: how to make an Alamofire request without the consumerSecret?

Open garyhooper opened this issue 5 years ago • 0 comments

Today, I am using SessionManager to make my OAuth1 URL requests via Alamofire.

sessionManager = SessionManager( configuration: .default )
sessionManager?.adapter = oauth!.requestAdapter
sessionManager?.request( ... ) ...

This works just fine, except that it requires the consumerSecret to create my OAuth1 object/requestAdapter, even though the OAuth1-authenticated API request only needs the consumerKey and token in the headers.

Is there a straightforward way to create an Alamofire/OAuth1 request without the consumerSecret?

garyhooper avatar Feb 15 '20 23:02 garyhooper